this script is for "Sin Devourer" creature from "Ferumbras Ascendant Quest" when you use a crystal life on him , he disappear and crystal life too, the problem is that when used crystal life in anywhere site, he disappears, for example if i use crystal life in Carlin and the monster are on Thais... he disappears, i need he disappear when i used the crystal life on him... i leave my script here in case anyone can help me
function onUse(cid, item, target)
if(item.itemid == 25354) and Creature("Sin Devourer") then
doSendMagicEffect(getCreaturePosition("Sin Devourer"), CONST_ME_HOLYAREA)
doCreatureSay("Sin Devourer", "The Sin Devourer has been driven out!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
doRemoveCreature ("Sin Devourer", getCreaturePosition(cid))
end
return true
end
if(item.itemid == 25354) and Creature("Sin Devourer") then
doSendMagicEffect(getCreaturePosition("Sin Devourer"), CONST_ME_HOLYAREA)
doCreatureSay("Sin Devourer", "The Sin Devourer has been driven out!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
doRemoveCreature ("Sin Devourer", getCreaturePosition(cid))
end
return true
end
Last edited: