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

Lua Forever aol with rs and bless Losses items when they die..

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey i my forever aol with rs and bless dosent work for 0.4
and i need one now i can show you mine and you can rebuild or tell me what is wrong with it!
added in creature event!
Or make me 1 that works:)

script:
Code:
function onDeath(cid, lastHitKiller, mostDamageKiller)
	if(isPlayer(cid) and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 115) then
		for i = 1, 5 do
			doPlayerAddBlessing(cid, i)
		end
		doCreatureSetDropLoot(cid, false)      
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
		doCreatureSay(cid, "Forever Aol!!", TALKTYPE_ORANGE_1)
	end
	return true
end

xml:
Code:
	<event type="death" name="noaol" event="script" value="noaol.lua"/>

login.lua:
Code:
	registerCreatureEvent(cid, "noaol")
¨

Items.xml:
Code:
<item id="115" name="Donated necklace V2">
	    <attribute key="description" value="You feel a surging energyflow, it greatly improves allot!"/>
	    <attribute key="weight" value="700"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="absorbPercentAll" value="25"/>
		<attribute key="magicpoints" value="20"/>
		<attribute key="preventDrop" value="1"/>
        	<attribute key="charges" value="5"/>
		<attribute key="showattributes" value="-1"/>
	</item>

This thread might help http://otland.net/f82/prevent-lose-items-without-aol-83130/
 
Last edited:
Back
Top