destroyer667
Member
- Joined
- Nov 21, 2007
- Messages
- 290
- Reaction score
- 6
I've done some searching on the forums and all i could find was "Stepin tile create ladder Stepout remove ladder" Scripts so i tried creating my own script and i was unsuccessful so now im looking for some help ik it's something small in the script but i cant figure it out.
EDIT: using Avesta 7.6
EDIT: using Avesta 7.6
LUA:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=32854, y=32321, z=11, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 7509 and item.itemid == 1945 and getgate.itemid == 1386 then
doCreateItem(getgate.uid,1)
addEvent(doTransformItem, 5*60*1000, item.uid, 1945)
addEvent(onTimer5, 5*60*1000)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendCancel(cid,"HURRY!!")
end
return 1
end
function onTimer5()
wallnewpos = {x=32854, y=32321, z=11}
doRemoveItem(1386,1,wallnewpos)
end
Last edited: