• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Custom Infinite AOLs

Infernum

Senator
Joined
Feb 14, 2015
Messages
5,640
Solutions
559
Reaction score
3,976
[TFS] 0.3.6 V8 Edit by Cyko
[Client] 8.6

I'd like a script that when you die, you don't lose the amulet, for multiple amulet ids
I don't want to use charges because monsters remove charges when hit
Yes, I have looked with search function on all pages and couldn't find what I need.

The amulet ids are: 2170, 2196, 2198, 2133, 2200, 2197, 7890
 
Search again
I have, I keep finding either this script
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2173) then 
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Forever Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
or people saying to put charges in the items XML.
 
As I said, these won't work because they use charges in items.xml and creaturescripts script that adds charge onPrepareDeath.
The amulets I have can't have charges because they will get taken away by monster hits because i have protection all % attribute on them.
 
As I said, these won't work because they use charges in items.xml and creaturescripts script that adds charge onPrepareDeath.
The amulets I have can't have charges because they will get taken away by monster hits because i have protection all % attribute on them.
use an amulet with charges and oncombat add a charge
 
Back
Top