Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local itemToUse = 65487 -- ItemID or "Item Name" of the item you want to use on the ground
- local idToUseOn = {13866, 13865} -- ID Array of corpses or tiles you want to use items on, can be 1, doesnt matter.
- local checkrange = 5 -- Range to check
- for i = -checkrange,checkrange do
- for j = -checkrange,checkrange do
- for k = 1,#idToUseOn do
- if toptileitem(posx+i, posy+j, posz) == idToUseOn[k] then
- pausewalking(10000)
- useitemon(itemToUse, posx+i, posy+j, posz)
- wait(500,800)
- pausewalking(10)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement