Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local item = {2650, 2382, 2509, 2050, 2182, 8819, 8820}
- -- local itemPos = {x=32370, y=32245, z=7}
- function onThink(interval, lastExecution)
- for i = 1, 255 do
- local getItem = getTileThingByPos({x=32370, y=32245, z=7, stackpos=i})
- if getItem.uid > 1 then
- addEvent(doRemoveItem, 500, getItem.uid, 1)
- break
- end
- end
- addEvent(doCreateItem, 1000, item[math.random(3)], 1, itemPos)
- return 1
- end
Advertisement
Add Comment
Please, Sign In to add comment