• 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 just goes away when die:S

Status
Not open for further replies.

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hello!
My forever aol just go away when you die how come?
creature script with bless and red skulle protection so you dont lose when you die!
I can also suddenly diseper!
using 0.4 dev TFS!

scripts:
Code:
	<event type="preparedeath" name="onPrepareDeath" event="script" value="forever aol.lua"/>

Script with bless and rs protect!
Code:
function onPrepareDeath(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
Items:
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="showattributes" value="1"/>
	</item>
 
Last edited:
Well, it works for me. And I made it in Items with out any more scripts.

Code:
<item id="2198" article="an" name="Forever Aol">
        <attribute key="weight" value="420"/>
        <attribute key="slotType" value="necklace"/>
        [COLOR="RoyalBlue"]<attribute key="charges" value="1"/>[/COLOR]
        [COLOR="Red"]<attribute key="preventDrop" value="-1"/>[/COLOR]
	</item>
 
Status
Not open for further replies.
Back
Top