fernandon
New Member
- Joined
- Feb 16, 2008
- Messages
- 22
- Reaction score
- 0
How to put a delay, after an X time the wall will reappear again consequently the lever also back
how do I change this?
else, someone has the action on the part of the holy tible in the pits of inferno (second part of quest) ?
how do I change this?
Code:
local pos = {
[2025] = {x = 1023, y = 1204, z = 11},
[2026] = {x = 1025, y = 1204, z = 11},
[2027] = {x = 1027, y = 1204, z = 11},
[2028] = {x = 1029, y = 1204, z = 11}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 1945) then
doRemoveItem(getTileItemById(pos[item.uid], 6289).uid, 1)
doSendMagicEffect(pos[item.uid], CONST_ME_FIRE)
else
doCreateItem(6289, 1, pos[item.uid])
doSendMagicEffect(pos[item.uid], CONST_ME_FIRE)
return true
end
if (item.itemid == 1945) then
doTransformItem(item.uid, item.itemid + 1)
else
doTransformItem(item.uid, item.itemid - 1)
end
return true
end
else, someone has the action on the part of the holy tible in the pits of inferno (second part of quest) ?