Zashalio
05-03-2014, 01:17 AM
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]]--
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]]--