destroyer667
Member
- Joined
- Nov 21, 2007
- Messages
- 290
- Reaction score
- 6
im trying to get my switch to reset back so people can use it again for the quest but it wont go back!
Works perfect use this script if you want to! + rep
LUA:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=33314, y=31592, z=15, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 4560 and item.itemid == 1945 and getgate.itemid == 1355 then
doRemoveItem(getgate.uid,1)
addEvent(doTransformItem, 10*60*1000, item.uid, 1945)
addEvent(onTimer5, 10*60*1000)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendCancel(cid,"Sorry you must wait for the switch to reset.")
end
return 1
end
function onTimer5()
wallnewpos = {x=33314, y=31592, z=15}
doCreateItem(1355,1,wallnewpos)
end
Works perfect use this script if you want to! + rep
Last edited: