• 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!

Forever Amulet of Loss

Joined
Jun 19, 2009
Messages
1,852
Reaction score
5
Hello!

I am requesting a code(c++/script or w/e :p) for forever amulet of loss. In LUA - in my opinion, is not good.

Well, I want that if a player wears forever aol (ID 2196), he won't drop anything. Even if he is redskulled. However, he will still lose exp just like the others


Thanks!
 
Rep++ plx?

Put on Mods folder:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Forever Aol" version="1.0" author="Lava Titan" contact="[email protected]" enabled="yes">

	<event type="preparedeath" name="Forever_Aol" event="script"><![CDATA[
	function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
    if isPlayer(cid) == true then
        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
                doCreatureSetDropLoot(cid, false)       
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) 
        return true
        end
    end
    return true
	end
	]]></event>
	
	<event type="login" name="Login_Aol" event="script"><![CDATA[
	registerCreatureEvent(cid, "Forever_Aol")
	]]></event>
</mod>
 
Back
Top Bottom