perfection
FATAL DAMAGE
- Joined
- Aug 27, 2011
- Messages
- 196
- Reaction score
- 8
in creaturescripts/scripts/preparedeath.lua
and in creaturescripts/scripts/login.lua add
and add in creaturescripts.xml
NOW to change the name of the item
in items.xml
change:
to:
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if(getPlayerSlotItem(cid, 2).itemid == 2196) and getPlayerSkullType(cid) >= 0 then
doCreatureSetDropLoot(cid, false)
end
return true
end
and in creaturescripts/scripts/login.lua add
Lua:
registerCreatureEvent(cid, "onPrepareDeath")
and add in creaturescripts.xml
Lua:
<event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/>
NOW to change the name of the item
in items.xml
change:
Lua:
<item id="2196" article="a" name="broken amulet">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
</item>
to:
Lua:
<item id="2196" article="a" name="Forever Amulet">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
</item>