Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doRemoveItemByIdAndPos(itemid, pos, count, limit) -- By Byerne XTibia
- local itempos, c, max = pos, 0, limit or 255
- for stackpos=1,max do
- itempos.stackpos, i = stackpos, getThingFromPos(itempos)
- if i.itemid == itemid then
- doRemoveItem(i.uid, i.type)
- c = c+1
- if (count and count == c) then
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement