I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).
I'm looking for a way to make a quest box "explode". The chest does not have to be removed after using I just want the effect on it after I use it.
So when you get the fire dmg i also want the explosive effect on the chest itself. (tried copying a couple things from my spells but that didn't work out
)
Also the effect I would like to have is the following: 'MagicEffect - firearea' (the same as hells core spell)
Thanks in advance.
I'm looking for a way to make a quest box "explode". The chest does not have to be removed after using I just want the effect on it after I use it.
Code:
elseif item.uid == 5567 then
if getPlayerStorageValue(cid, 7007) == -1 then
doTargetCombatHealth(0, cid, COMBAT_FIREDAMAGE, -50, -50, CONST_ME_NONE)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"I told you not to touch it.")
setPlayerStorageValue(cid,7007,1)
elseif getPlayerStorageValue(cid, 7007) == 1 and getPlayerStorageValue(cid, 7008) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You stole XXX his treasure.")
doPlayerAddItem(cid,8602,1) -- jagged sword
setPlayerStorageValue(cid,7000,1)
setPlayerStorageValue(cid,7008,1)
end
So when you get the fire dmg i also want the explosive effect on the chest itself. (tried copying a couple things from my spells but that didn't work out
Also the effect I would like to have is the following: 'MagicEffect - firearea' (the same as hells core spell)
Thanks in advance.