function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2160
item = doPlayerAddItem(cid,loot,1)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,1)
else
doPlayerAddExperience(cid, -500000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="0"/>
<attribute key="preventDrop" value="1"/>
</item>