XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Another scripting problem :/

  1. #1
    Zashalio's Avatar
    Join Date
    Jun 2012
    Location
    Anywhere
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Another scripting problem :/

    Well my plan was to make a script to do the tarantula task, to lazy to check if one already exists for free so heres the problem

    02:12 XenoScript Error:
    Script: TarantulasMage.lua
    Line #: 30
    Chunk: C:\Users\User\Documents\XenoBot\Scripts\Tarantulas Mage.lua
    Error: nesting of [[...]] is deprecated near '['
    This is an error with user-input and should not be reported as a bug with XenoBot.

    Here is code

    local MinMana = 30
    local MaxMana = 150
    local ManaId = 268
    local MinCap = 50

    local GoldBp = 8860
    local LootBp = 2869

    local Creat = "Tarantula"
    local CreatAmt = 5

    --[[Label Manager]]--
    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
    function onWalkerSelectLabel(labelName)
    local func = loadstring(labelName)
    if(func)then func()
    end
    end

    --[[KillCounter]--
    function KilledAmt()
    Self.GetCreatureKills((Creat))
    if ((Self.GetCreatureKills(Creat) >= CreatAmt)) then
    gotoLabel ("KillHide")
    else
    gotoLabel("Hunt")
    end
    end

    --[[ResetCounter]]-- <<---Problem around this area I believe.
    function ResetKills()
    Self.ResetCreatureKills(Creat)
    end

    --[[Grizzly2Task]]--
    function GrizzlyTask()
    Walker.Stop()
    Self.SayToNpc({"Hi", "Tasks", "Tasks", "Tarantulas", "Yes",}, 65)
    wait(1000,2000)
    Walker.Start()
    end

    --[[EnoughSupplies]]--
    function GoHunt()
    gotoLabel ("Hunt")
    end

    --[[GetManaPotions]]--
    function BuyPotions()
    Walker.Stop()
    Self.SayToNpc({"Hi", "Trade"}, 65)
    wait(1000,2000)
    Self.ShopBuyItemsUpTo(ManaId, MaxMana)
    wait(1000,2000)
    Walker.Start()
    end

    --[[CheckSupplies]]--
    function CheckStuff()
    delayWalker(3000)
    if ((Self.ItemCount(ManaId) <= MinMana) or (Self.Cap() <= MinCap)) then
    gotoLabel("Refill")
    end
    end

    --[[Backpacks]]--
    function Backpacks()
    Self.CloseContainers()
    wait(200,400)
    Self.OpenMainBackpack(true):OpenChildren({LootBp, true}, {GoldBp, true})
    wait(200,400)
    end

    --[[DepositDepot]]--
    function DepositItems()
    wait(1000,2000)
    Self.DepositItems({5894, 0})
    wait(1000,2000)
    end

    --[[LastOfFunctions]]--

  2. #2
    Zashalio's Avatar
    Join Date
    Jun 2012
    Location
    Anywhere
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lool thanx bro xD realised 5 mins after making the post

  3. #3
    Senior Member Knuda's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,014
    Mentioned
    122 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Zashalio View Post
    Lool thanx bro xD realised 5 mins after making the post
    you suck so hard
    Veni, Vidi, Vici

    I Came, I Saw, I Conquered


  4. #4
    Zashalio's Avatar
    Join Date
    Jun 2012
    Location
    Anywhere
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not as hard as you

Posting Permissions

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