• 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 Infinite Aol.

Betoo

Centurion OT Chaos Era
Joined
Jul 24, 2007
Messages
128
Reaction score
1
Location
Mexico
Well Im using TFS crying damson.
NORMAL AOL IS INFINITE.
i searched on server folder (using notepad++) for item id 2173..
theres no script were i get aol to be infinite. so i was wondering and looking for solutions. and found that maybe a script that will take away the aol when player dies.
please i know alittle of lua. but not to much to make a script.
REP!!
Basicaly.
1 script that removes aol when player dies.
or another solution

Yours Betoo
 
Enter items.xml
search
ID 2173
Now find something so
Code:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420" />
		<attribute key="slotType" value="necklace" />
		<attribute key="charges" value="1" />
		<attribute key="preventDrop" value="1" />
	</item>

Edit this part
Code:
<attribute key="charges" value="1" />
"Charges" value="" <-- How much charge have 1000? 9999? or dont know :)
 
This amulet of loss is red skull protected though.

items.xml
Code:
<attribute key="preventDrop" value="1"/>

creaturescripts.xml
Code:
<event type="preparedeath" name="forever amulet" event="script" value="foreveramulet.lua"/>

foreveramulet.lua
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid)  >= 4) then
	if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
		doCreatureSetDropLoot(cid, false)      
	end
	return true
	end
	return true
	end

creaturescripts/scripts/login.lua
Code:
	registerCreatureEvent(cid, "forever amulet")
 
Back
Top