PDA

View Full Version : Need help with depositing lua.



dnalyks
03-29-2015, 12:14 PM
I need a small script that would just deposit 1 item when the bot is depositing in a whole. Im sure this is really easy just need someone to actually pass a working lua loll

I tried this but doesn't want to work,

(labelName == "Deposit") then
setWalkerEnabled(false)
Self.ReachDepot()
Self.DepositItems(
{7452, RareDP})

Nakuu
03-29-2015, 12:21 PM
registerEventListener(WALKER_SELECTLABEL, "onLabel")

function onLabel(label)
if (label == "Deposit2") then
Self.DepositItems({7452, 0})
end
end

Create new lua file with this code. Execute it. And in the script add label "Deposit2" right after first deposit label.

Nakuu
03-29-2015, 12:21 PM
Double post...

dnalyks
03-29-2015, 12:38 PM
registerEventListener(WALKER_SELECTLABEL, "onLabel")

function onLabel(label)
if (label == "Deposit2") then
Self.DepositItems({7452, 0})
end
end

Create new lua file with this code. Execute it. And in the script add label "Deposit2" right after first deposit label.

Thanks,

shadowart
03-29-2015, 12:40 PM
An extra labelhandler slows down the script at every single label. Better to just add Self.DepositItems({7452, 0}) as a one-liner after the first deposit label.

Nakuu
03-29-2015, 12:45 PM
An extra labelhandler slows down the script at every single label. Better to just add Self.DepositItems({7452, 0}) as a one-liner after the first deposit label.

True :D Totally forgot about one-liners :D