Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- depotBackpack = 0, -- which depot backpack to deposit spears in (default is the first slot in depot)
- capacityLimit = 100, -- when capacity is below this it will trigger the walk to the bank and depot
- moneyLimit = 1000, -- having gold above this amount will trigger a walk to the bank and depot even if the other limits aren't exceeded
- spearLimit = 30 -- having spears above this limit will trigger a walk to the bank even if the other limits aren't exceeded
- }
- registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
- function onWalkerSelectLabel(labelName)
- if (labelName == 'CutGrass1') then
- Self.CutGrass(32968, 32174, 7)
- print('Cutting jungle grass...')
- elseif (labelName == 'CutGrass2') then
- Self.CutGrass(32967, 32178, 7)
- print('Cutting jungle grass...')
- elseif (labelName == 'CutGrass3') then
- Self.CutGrass(32978, 32215, 7)
- print('Cutting jungle grass...')
- elseif (labelName == 'CheckStatus') then
- if((Self.Cap() < config.capacityLimit) or (Self.Money() > config.moneyLimit) or (Self.ItemCount(3277) > config.spearLimit)) then
- print('Walking to town to deposit spears and gold...')
- else
- gotoLabel('ContinueHunt')
- end
- elseif (labelName == 'Depot') then
- Self.DepositItems({3277, config.depotBackpack})
- elseif (labelName == 'Bank') then
- Self.DepositMoney('all')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement