Its A Easy Script But how i said i'm learning a lua.
Then u press on item A Will By A Effect Fire And will by deleted a wall after 5 min wall will stands in same position.
If u like it Please Rep++ Me
Then u press on item A Will By A Effect Fire And will by deleted a wall after 5 min wall will stands in same position.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local gatePosition = {x=1090, y=807, z=7, stackpos=1}
local getGate = getThingFromPos(gatePosition)
if(item.uid == 50012) then
if(item.itemid == 8268 and getGate.itemid == 1546) then
doSendMagicEffect(fromPosition, CONST_ME_FIREAREA)
doRemoveItem(getGate.uid, 1)
addEvent(onTimer4, 5*60*1000)
else
doPlayerSendCancel(cid, "Sorry not possible.")
end
end
return 1
end
function onTimer4()
wallnewpos = {x=1090, y=807, z=7}
doCreateItem(1546,1,wallnewpos)
end
If u like it Please Rep++ Me
Last edited: