markitos
03-18-2016, 11:22 AM
Hello everyone, can anyone help me with that script plz, i would like to have it with : If low cap go to "Gobank" label.
Im totaly nob and dont know how to do it, at this moment only works checking the gold (if count(3031) >= 1500 then).
So its posible to change that item count (gold) for cap count?
Thx in advance.
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
dofile("SyntaxLuaLib.lua")
function onWalkerSelectLabel(labelName)
if (labelName == "Check") then
delayWalker(3000)
if count(3031) >= 1500 then
gotoLabel("Gobank")
else
gotoLabel("Start")
end
elseif (labelName == "Deposit") then
delayWalker(3000)
Self.Say("Hi")
sleep(math.random(700, 1400))
Self.SayToNpc("Deposit all")
sleep(math.random(700, 1400))
Self.SayToNpc("Yes")
elseif (labelName == "End") then
delayWalker(3000)
gotoLabel("Start")
end
end
Im totaly nob and dont know how to do it, at this moment only works checking the gold (if count(3031) >= 1500 then).
So its posible to change that item count (gold) for cap count?
Thx in advance.
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
dofile("SyntaxLuaLib.lua")
function onWalkerSelectLabel(labelName)
if (labelName == "Check") then
delayWalker(3000)
if count(3031) >= 1500 then
gotoLabel("Gobank")
else
gotoLabel("Start")
end
elseif (labelName == "Deposit") then
delayWalker(3000)
Self.Say("Hi")
sleep(math.random(700, 1400))
Self.SayToNpc("Deposit all")
sleep(math.random(700, 1400))
Self.SayToNpc("Yes")
elseif (labelName == "End") then
delayWalker(3000)
gotoLabel("Start")
end
end