Komic
MChem
- Joined
- Jun 8, 2007
- Messages
- 359
- Reaction score
- 51
This gives a PKer an item to show who've they killed and at what level. Much like on Diablo II
fragreward.lua
and in creaturescripts.xml
fragreward.lua
Code:
function onPrepareDeath(cid, killer)
loot = 5943
item = doPlayerAddItem(killer,loot,1)
doSetItemSpecialDescription(item,"This is the "..getItemName(loot).." of "..getPlayerName(cid).." at Level "..getPlayerLevel(cid)..".")
end
and in creaturescripts.xml
Code:
<event type="preparedeath" name="FragReward" script="fragreward.lua" />