ond
Veteran OT User
LUA:
function onUse(cid, item, frompos, item2, topos)
ground1 = {x=32225, y=32276, z=8, stackpos=0}
if item.itemid == 1945 and item.uid == 1001 then
doTransformItem(item.uid,item.itemid+1)
doCreateItem(369,1,ground1)
elseif item.itemid == 1946 and item.uid == 1001 then
doTransformItem(item.uid,item.itemid-1)
doCreateItem(351,1,ground1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
369 = Traphole
351 = Dirtground
Problem: The dirtground falls down the existing traphole
Should be like: trapholes appears, but after pulling the lever a second time, the traphole should dissapear and id 351 come back again.