Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DIRECTIONS = {
- {$posx, $posy, $posz}, -- C
- {$posx, $posy-1, $posz}, -- N
- {$posx+1, $posy-1, $posz}, -- NE
- {$posx+1, $posy, $posz}, -- E
- {$posx+1, $posy+1, $posz}, -- SE
- {$posx, $posy+1, $posz}, -- S
- {$posx-1, $posy+1, $posz}, -- SW
- {$posx-1, $posy, $posz}, -- W
- {$posx-1, $posy-1, $posz} -- NW
- }
- auto(500)
- local CAP = 40
- local BP = "red backpack"
- local GOLD_COUNT, HEAVY_COUNT = {0,0}, {0,0}
- if $cap >= CAP then
- GOLD_COUNT[1] = itemcount("gold coin")
- for _, DIR in ipairs(DIRECTIONS) do
- moveitems("gold coin", BP, ground(DIR[1],DIR[2],DIR[3]), 100)
- end
- GOLD_COUNT[2] = itemcount("gold coin")
- if (GOLD_COUNT[2] > GOLD_COUNT[1]) then
- increaseamountlooted("gold coin", GOLD_COUNT[2]-GOLD_COUNT[1])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement