bpm91
Advanced OT User
- Joined
- May 23, 2019
- Messages
- 1,031
- Solutions
- 7
- Reaction score
- 165
- Location
- Brazil
- YouTube
- caruniawikibr
hello, as the title says, want to know how do I kick monsters and items from the position where items respawn when pulling the lever that removes the item
LUA:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=32095, y=32173, z=8, stackpos=1}
getgate = getThingfromPos(gatepos)
dumppos = {x=32095, y=32174, z=8}
if item.itemid == 1945 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.itemid == 1946 then
doCreateItem(1026,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end