Hello Otlanders, I need help with a script, when i use a lever, it will make a lever in pos 1000 1000 7, and it will dissapear in 1 minute. Rep++ for helping.
I use this now:
I use this now:
I use dev 0.4function onUse(cid, item, frompos, item2, topos)
wall1 = {x=1001, y=1001, z=4, stackpos=1}
getwall1 = getThingfromPos(wall1)
if item.uid == 1833 and item.itemid == 1945 then
doCreateItem(1052,1,wall1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 1833 and item.itemid == 1946 then
doRemoveItem(getwall1.uid,1)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end