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

AOL problem on latest TFS

gashka

New Member
Joined
Mar 22, 2009
Messages
17
Reaction score
0
Hi! I just started to use the newest TFS (8.41) and the aols inst working at all.. They stick in your amulet slot even after you have died and doesn't prevent drops of eq..
 
Hi! I just started to use the newest TFS (8.41) and the aols inst working at all.. They stick in your amulet slot even after you have died and doesn't prevent drops of eq..

It's not the AOL script.

Go to /data/items/ and open items.xml
Find your Amulet Of Loss and add:
Code:
  <attribute key="preventDrop" value="1"/>
  <attribute key="charges" value="1"/>
 
It's not the AOL script.

Go to /data/items/ and open items.xml
Find your Amulet Of Loss and add:
Code:
  <attribute key="preventDrop" value="1"/>
  <attribute key="charges" value="1"/>

That worked in a way.. I didn't drop items, though the aol didn't disappear :/
 
That worked in a way.. I didn't drop items, though the aol didn't disappear :/

Go to your /data/creaturescripts/scripts/ and open playerdeath.lua

Under
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)

Insert:
Code:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end

It should look like this:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end

Save and reload, that will work. I guarantee.
 
Go to your /data/creaturescripts/scripts/ and open playerdeath.lua

Under
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)

Insert:
Code:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end

It should look like this:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end

Save and reload, that will work. I guarantee.

Thanks guys for the help! it works 100% now. (Especially thanks to Exiber, Bro this is the second time you helped me! Would give you more rep if possible!
 
Back
Top