Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- StartHunting:
- walk
- through
- cave
- nodes
- CheckCap:
- GotoDepot:
- walk
- to
- depot
- nodes
- DepositItems:
- stand backwards one tile to clear windows
- WithdrawItems:
- GotoHunt:
- walk
- back
- to
- hunt
- ]]
- registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
- function onWalkerSelectLabel(labelName)
- if (labelName == 'CheckCap') then
- if (Self.Cap() < 720) then
- gotoLabel("GotoDepot")
- else
- gotoLabel("StartHunting")
- end
- elseif (labelName == 'DepositItems') then
- -- itemid or {itemid, depot backpack}
- Self.DepositItems(3031, {3035, 0})
- elseif (labelName == 'WithdrawItems') then
- -- slot, item1, item2, etc. (item can be a table like {itemid, backpack slot, count} or just itemid)
- Self.WithdrawItems(0, 3507, {3350, 1, 4})
- gotoLabel("StartHunting")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement