popitox
Member
- Joined
- Jul 8, 2008
- Messages
- 63
- Reaction score
- 8
i need a hand with a script that im trying to use, its working at 100%, the only thing i want is to know how to add a delay to use it again.
thank you so much <3
thank you so much <3
Lua:
local doorPos = {x=, y=, z=}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1946 then
local v = getTileItemById(doorPos, 1219)
if v.itemid == 1219 then
doRelocate(doorPos, {x=doorPos.x+1, y=doorPos.y, z=doorPos.z})
doTransformItem(v.uid, 1220)
end
else
local v = getTileItemByType(doorPos, ITEM_TYPE_DOOR)
if v.itemid == 1219 or v.itemid == 1220 then
doTransformItem(v.uid, 1219)
end
end
return doTransformItem(item.uid, item.itemid == 1946 and 1945 or 1946)
end
Last edited by a moderator: