Lava Titan
Developer
Could someone turn me this into a mod?
Ill rep++
eace:
Ill rep++
Code:
<item id="2196" article="a" name="Forever Aol">
<attribute key="description" value="This aol is infinite you never lose it even if you got redskull it protects you!" />
<attribute key="weight" value="500" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="999999" />
<attribute key="preventDrop" value="999999" />
</item>
Code:
<event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/>
Code:
registerCreatureEvent(cid, "onPrepareDeath")
LUA:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return true
end
end
return true
end