Darad
New Member
- Joined
- Jun 23, 2009
- Messages
- 119
- Reaction score
- 1
Hey guys,
I need a forever aol for latest version of TFS, been trying a lot of things with ondeath events but all it resulted in was either have loot drop or a player running around with 0 hp.
Any idea's?
ID of the amulet is 2196
creatureEvent script
(putting this code in preparedeath resulted into an invincible character)
I need a forever aol for latest version of TFS, been trying a lot of things with ondeath events but all it resulted in was either have loot drop or a player running around with 0 hp.
Any idea's?
ID of the amulet is 2196
creatureEvent script
PHP:
function onDeath(cid)
doSendAnimatedText(getCreaturePosition(cid), "DEADED!", TEXTCOLOR_YELLOW)
if getPlayerSlotItem(cid, 2) == 2196 then
for i = PLAYERLOSS_CONTAINERS, PLAYERLOSS_ITEMS do
doPlayerSetLossPercent(cid, i, 0)
end
end
return TRUE
end
(putting this code in preparedeath resulted into an invincible character)