• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MOD Forever AOL TFS 0.4

Rossii

Member
Joined
Mar 27, 2012
Messages
366
Reaction score
6
Location
England
Yo i know there's probably loads of these scripts here.

And i was just putting this out here because i was searching for ForeverAOL MOD and i couldn't find one so I'm sharing this with you..

I don't know who the credits should go to but on the script it says NAXTIE


Sooo if you know. Post here..

ForeverAOL
PHP:
<?xml version="1.0" encoding="UTF-8"?> 
<mod name="Forever Aol" version="1.0" author="Naxtie" contact="[email protected]" enabled="yes"> 
        <description><![CDATA[ 
                Skyddar mot redskull och blackskull..
        ]]></description> 

        <item id="12461" article="a" name="Forever Aol" override="yes"/> 

        <event type="login" name="ForeverAol_Login" event="buffer"><![CDATA[ 
                registerCreatureEvent(cid, "ForeverAol_Login") 
        ]]></event> 

        <event type="death" name="ForeverAol_Login" event="script"><![CDATA[ 
                function onDeath(cid, corpse, deathList) 
                        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 12461) then 
                                if (getCreatureSkullType(cid) == SKULL_RED, SKULL_BLACK) then 
                                        doCreatureSetDropLoot(cid, false) 
                                end 
                        end 
                        return true 
                end 
        ]]></event> 
</mod>


Tested and works on TFS 0.4
 
Code:
>>> Loading Faol.xml ...[Error - LuaInterface::loadBuffer] [string "Lu
aInterface::loadBuffer"]:4: ')' expected near ','
[Error - Event::checkScript] Cannot load script (
                function onDeath(cid, corpse, deathList)
                        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid =
= 12461) then
                                if (getCreatureSkullType(cid) == SKULL_RED, SKUL
L_BLACK) then
                                        doCreatureSetDropLoot(cid, false)
                                end
                        end
                        return true
                end
        )
[string "LuaInterface::loadBuffer"]:4: ')' expected near ','
 (done).

I've used
if (getCreatureSkullType(cid) == SKULL_RED or getCreatureSkullType(cid) == SKULL_BLACK) then
instead, still doesn't work

it seems in 0.3.7 they changed something in c++ and droploot is executed before script, but it still doesn't explain why it didn't worked for onPrepareDeath either

I've used movement instead, worked for me
Code:
	<movevent event="Equip" itemid="2196" slot="necklace" script="faol.lua" />
    <movevent event="DeEquip" itemid="2196" slot="necklace" script="faol.lua" />
Lua:
function onEquip(cid, item, pos)
doCreatureSetDropLoot(cid, false)
return true
end

function onDeEquip(cid, item, pos)
doCreatureSetDropLoot(cid, true)
return true
end
 
Last edited:
Back
Top