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

[Help] Aol dont work on tfs 0.3.2

Swimmi

♥Inactive♥
Joined
Jan 15, 2008
Messages
791
Reaction score
2
Location
Germany
hi my aol in tfs 0.3.2 dosent work who can help me :)?

Code:
</item>
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventLoss" value="1"/>


rep+
 
Easy fix.
To prevent item's to drop upon death
In items.xml change it to this:
Code:
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventDrop" value="1"/>
		<attribute key="charges" value="1"/>
	</item>

To remove AoL upon death
Go to:
/data/creaturescripts/scripts/ and open playerdeath.lua

Under:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
Add:
Code:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
So it looks like
This:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
 
Back
Top