PDA

View Full Version : Bug in walker



manllo
11-09-2015, 08:36 PM
Hello, I had a bug in the walker today, here is the error code:

14:34 XenoScript Error:
Script: [Port Hope][New GS Cave?.lua
Line #: 91
Chunk: ...:?Users?gerar?DOCUME?1?XenoBot?Scripts??_PORTH? 1.LUA
Error: 'luaGotoLabel' called with invalid number of arguments [1 supplied, 2 required]!
This is an error with user-input and should not be reported as a bug with XenoBot.

Apparently, the bot will check for the manas/healths/cap tresholds and will refuse to go to label if there is still enough supplies/cap, and instead go to depot again.

Here is the script


registerEventListener(WALKER_SELECTLABEL, 'onWalkerSelectLabel')
function onWalkerSelectLabel(labelName)

if (labelName == 'Softbzero5') then
if ((Self.ItemCount(ManaName) < ManaMin)) or ((Self.ItemCount(HealthName) < HealthMin)) or (Self.Cap() < CapMin) then
gotoLabel("Softbzero4")
end

elseif (labelName == "Softbzero2") then
setWalkerEnabled(false)
delayWalker(5000)
Self.Say("hi")
sleep(math.random(700, 1400))
Self.SayToNpc("deposit all")
sleep(math.random(300, 1000))
Self.SayToNpc("yes")
sleep(math.random(700, 1400))
Self.WithdrawMoney((ManaCost*(ManaMax-Self.ItemCount(ManaName))))
sleep(math.random(700, 1400))
Self.WithdrawMoney((HealthCost*(HealthMax-Self.ItemCount(HealthName))))
sleep(math.random(700, 1400))
Self.WithdrawMoney(100)
sleep(math.random(700, 1400))
Self.SayToNpc("yes")
setWalkerEnabled(true)


elseif (labelName == "Softbzero3") then
Walker.Stop()
wait(500,700)
Self.SayToNpc("hi")
wait(1900,2400)
Self.SayToNpc("trade")
wait(1800,2400)
Self.ShopBuyItemsUpTo(HealthName, HealthMax)
wait(1900,2300)
Self.ShopBuyItemsUpTo(ManaName, ManaMax)
wait(1900,2300)
Walker.Start()


elseif (labelName == "Softbzero1") then
Walker.Stop()
Self.CloseContainers()
wait(2000,2500)
Self.OpenMainBackpack(true):OpenChildren({Item.Get ID(RareBP), true},{Item.GetID(StackBP), true}, {Item.GetID(GoldBP), true}, {Item.GetID(SuppBP), true})
wait(2000,2500)
Walker.Start()
Targeting.Start()
Looter.Start()

elseif (labelName == 'Softbzero7') then
gotoLabel("Softbzero8")

elseif (labelName == "SoftbzeroT1") then
Walker.Stop()
wait(500,700)
Self.SayToNpc("hi")
wait(1900,2400)
Self.SayToNpc("isle of strife")
wait(1800,2400)
Self.SayToNpc("yes")
wait(1900,2300)
Walker.Start()

elseif (labelName == "SoftbzeroT2") then
Walker.Stop()
wait(500,700)
Self.SayToNpc("hi")
wait(1900,2400)
Self.SayToNpc("heliar")
wait(1800,2400)
Self.SayToNpc("yes")
wait(1900,2300)
Walker.Start()

elseif (labelName == "TOFF") then
Targeting.Stop()
Self.Cast(haste, 70)

elseif (labelName == "TON") then
Targeting.Start()




end

end

Any help would be appreciated!

EDIT: I am using the latest update, XenoBot Binary v15.11.10.1092

Nakuu
11-09-2015, 08:37 PM
Read message on top of the forums.

If you're seeing issues with your hotkeys or your scripts are giving errors about luaGotoLabel, you need to close all of your Tibia clients and restart the bot.

Also if it didn't help then simply replace all gotoLabel with Walker.Goto.

manllo
11-09-2015, 09:36 PM
Yeah I did restart but it didn't do anything. Still, I noticed there is a free script for that same respawn on the settings downloads, so I just downloaded that. SICK SCRIPT. Thanks though!