xexam
New Member
- Joined
- Aug 3, 2010
- Messages
- 172
- Reaction score
- 1
Hello
here's my script
when you push a lever, a dragon statue disappear. and i want to make a magic effect (fire damage effect) on dragon's place (pos). So when you push the lever dragon statue disappear and fire damage effect comes out of a dragon statue place
i added this line doSendMagicEffect(topos,15) but it doesnt work.
someone will help me?
here's my script
function onUse(cid, item, fromPosition, itemEx, toPosition)
local stone_id = 7824
local pos = {x = 1031, y = 1373, z = 13}
local stone = getTileItemById(pos, stone_id)
if stone.uid > 0 then
doRemoveItem(stone.uid)
doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
addEvent(function() doCreateItem(stone_id, 1, pos) end, 5*1000)
doCreatureSay(cid, "FCHHHHHHHH!", TALKTYPE_ORANGE_1)
return true
else
return doPlayerSendCancel(cid,"Sorry, not possible.")
end
end
when you push a lever, a dragon statue disappear. and i want to make a magic effect (fire damage effect) on dragon's place (pos). So when you push the lever dragon statue disappear and fire damage effect comes out of a dragon statue place
i added this line doSendMagicEffect(topos,15) but it doesnt work.
someone will help me?