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..
<attribute key="preventDrop" value="1"/>
<attribute key="charges" value="1"/>
aol script.
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 :/
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerRemoveItem(cid, 2173, 1)
end
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerRemoveItem(cid, 2173, 1)
end
Use the script in tfs 0.2 for client 8.4 for the new tfs
Go to your /data/creaturescripts/scripts/ and open playerdeath.lua
UnderCode: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.
just update your items.xml
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!