XenoBot Forums - Powered by vBulletin

User Tag List

Page 8 of 8 FirstFirst ... 678
Results 71 to 75 of 75

Thread: Introducing OX Scripts - The Official XenoBot Scripting Service [BETA]

  1. #71

    Join Date
    Jul 2015
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi, Could someone explain me why is bot going to NPC bank but not saying anything?
    -- Functions --
    function onLabel(label)
    if (label == "Backpacks") then
    CS.OpenBackpacks()
    elseif (label == "Deposit") then
    -- non stackables
    dofile("Forgee.lua")
    function onWalkerSelectLabel(labelName)

    if (labelName == "Checker1") then
    delayWalker(1000)
    setWalkerEnabled(false)
    if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(HPotID) <= MinHPots) then
    setWalkerEnabled(true)
    gotoLabel("Start")
    else
    setWalkerEnabled(true)
    gotoLabel("Go Hunt")
    end

    elseif (labelName == "Checker2") then
    delayWalker(1000)
    setWalkerEnabled(false)
    if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(HPotID) <= MinHPots) then
    setWalkerEnabled(true)
    gotoLabel("Finish Hunting")
    else
    setWalkerEnabled(true)
    gotoLabel("Keep Hunting")
    end
    elseif (labelName == "Reach Depot") then
    dofile("Forgee.lua")
    Self.ReachDepot()

    elseif (labelName == "Bank") then
    setWalkerEnabled(false)
    NpcConv("hi","deposit all","yes","balance")
    wait(900, 1200)
    Self.WithdrawMoney((MPotprice*(MPots-Self.ItemCount(MPotID))))
    wait(900, 1200)
    Self.SayToNpc("yes")
    wait(900, 1200)
    Self.WithdrawMoney((HPotprice*(HPots-Self.ItemCount(HPotID))))
    wait(900, 1200)
    Self.SayToNpc("yes")
    wait(900,1200)
    Self.SayToNpc("withdraw 500", "yes")
    wait(3000,5000)
    setWalkerEnabled(true)

    elseif (labelName == "Deposit") then
    setWalkerEnabled(false)
    local dprandomise = (math.random(1,2))
    Self.DepositItems({10281, 0}, {5902, 0}, {3053, 1})
    wait(1500,1900)
    if StaminaLogout and Self.Stamina() < 1080 then
    gotoLabel("Logout")
    else
    setWalkerEnabled(true)
    end

    elseif (labelName == "Supplies") then
    setWalkerEnabled(false)
    wait(900, 1200)
    Self.SayToNpc({"Hi", "flasks", "yes", "yes", "yes", "Trade"}, 65)
    wait(900, 1200)
    buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(MPotID , (MPots-Self.ItemCount(MPotID)))
    wait(900, 1200)
    buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(HPotID , (HPots-Self.ItemCount(HPotID)))
    wait(900, 1200)
    setWalkerEnabled(true)
    Maybe script is wrong ty for help.

  2. #72
    shadowseka's Avatar
    Join Date
    May 2013
    Location
    mexico
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    @Kaliki
    Change this part
    HTML Code:
    NpcConv("hi","deposit all","yes","balance")
    to this
    HTML Code:
    Self.SayToNpc("hi","deposit all","yes","balance")
    Quote Originally Posted by Kaliki View Post
    Hi, Could someone explain me why is bot going to NPC bank but not saying anything?
    -- Functions --
    function onLabel(label)
    if (label == "Backpacks") then
    CS.OpenBackpacks()
    elseif (label == "Deposit") then
    -- non stackables
    dofile("Forgee.lua")
    function onWalkerSelectLabel(labelName)

    if (labelName == "Checker1") then
    delayWalker(1000)
    setWalkerEnabled(false)
    if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(HPotID) <= MinHPots) then
    setWalkerEnabled(true)
    gotoLabel("Start")
    else
    setWalkerEnabled(true)
    gotoLabel("Go Hunt")
    end

    elseif (labelName == "Checker2") then
    delayWalker(1000)
    setWalkerEnabled(false)
    if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(HPotID) <= MinHPots) then
    setWalkerEnabled(true)
    gotoLabel("Finish Hunting")
    else
    setWalkerEnabled(true)
    gotoLabel("Keep Hunting")
    end
    elseif (labelName == "Reach Depot") then
    dofile("Forgee.lua")
    Self.ReachDepot()

    elseif (labelName == "Bank") then
    setWalkerEnabled(false)
    NpcConv("hi","deposit all","yes","balance")
    wait(900, 1200)
    Self.WithdrawMoney((MPotprice*(MPots-Self.ItemCount(MPotID))))
    wait(900, 1200)
    Self.SayToNpc("yes")
    wait(900, 1200)
    Self.WithdrawMoney((HPotprice*(HPots-Self.ItemCount(HPotID))))
    wait(900, 1200)
    Self.SayToNpc("yes")
    wait(900,1200)
    Self.SayToNpc("withdraw 500", "yes")
    wait(3000,5000)
    setWalkerEnabled(true)

    elseif (labelName == "Deposit") then
    setWalkerEnabled(false)
    local dprandomise = (math.random(1,2))
    Self.DepositItems({10281, 0}, {5902, 0}, {3053, 1})
    wait(1500,1900)
    if StaminaLogout and Self.Stamina() < 1080 then
    gotoLabel("Logout")
    else
    setWalkerEnabled(true)
    end

    elseif (labelName == "Supplies") then
    setWalkerEnabled(false)
    wait(900, 1200)
    Self.SayToNpc({"Hi", "flasks", "yes", "yes", "yes", "Trade"}, 65)
    wait(900, 1200)
    buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(MPotID , (MPots-Self.ItemCount(MPotID)))
    wait(900, 1200)
    buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(HPotID , (HPots-Self.ItemCount(HPotID)))
    wait(900, 1200)
    setWalkerEnabled(true)
    Maybe script is wrong ty for help.
    Succesful Trades:
    Bought 18kk from @PunkGT
    Bought a Knight 310 from @Alexisdarks

  3. #73

    Join Date
    Jul 2013
    Posts
    48
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    is this project down now? Got problems with the Earth elemental script when it tries to buy manas it just standing there until someone kills me

  4. #74
    Senior Member iMike's Avatar
    Join Date
    Dec 2011
    Posts
    1,020
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Matildabot View Post
    is this project down now? Got problems with the Earth elemental script when it tries to buy manas it just standing there until someone kills me
    Yeah, not updating anymore :/
    SUCCESSFUL TRADES

    Sold an Elder Druid to: Pixels
    Sold an Elder Druid to: Turk
    Sold an Elder Druid to: Yumicks
    Sold an Elite Knight to: Yumicks
    Sold a Royal Paladin to: saga3180
    Sold a Knight to: Felipx
    Sold a Knight to: Alanthil
    Sold a Knight to: Spyke
    Sold a Knight to: Kamikaze Kid

    Sold some Vouchers to: ronay
    Sold some Gold to: nacho123
    Bought some Gold from: PunktG/Pidek098/Joshwa534/Y2Quakepc2/Nato12/markus28/seh
    Bought Dice Script from: Nakuu

  5. #75
    XenoBot Scripts Developer Joshwa534's Avatar
    Join Date
    May 2012
    Location
    Texas, USA
    Posts
    4,890
    Mentioned
    517 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Matildabot View Post
    is this project down now? Got problems with the Earth elemental script when it tries to buy manas it just standing there until someone kills me
    It'll be patched soon.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •