• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

-=| TFS |=- 0.4 8.60 AOL INFINITE

samuel157

/root
Joined
Mar 19, 2010
Messages
269
Solutions
2
Reaction score
25
Location
São Paulo, Brazil
GitHub
Samuel10M
however if it turns red or black it looses the loot if it runs out of skull everything drops in the end everything is falling, please help me

even with this script it drops everything from the set I don't know if it's the script or something else

Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid)  <=5) then
    if isInArray({7890, 11387}, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid,experience, 0)
doPlayerSetLossSkill(cid, false)
    end
    return true
    end
    return true
    end

it's like that xml

XML:
    <item id="7890" article="a" name="AOL Infinito">
<attribute key="description" value="Protege você de seus loots e te da atributos." />
        <attribute key="weight" value="3500" />
        <attribute key="slotType" value="necklace" />

do not know if you have to

Lua:
    <attribute key="charges" value="1" />
        <attribute key="preventDrop" value="1" />
 
Solution
however if it turns red or black it looses the loot if it runs out of skull everything drops in the end everything is falling, please help me

even with this script it drops everything from the set I don't know if it's the script or something else

Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid)  <=5) then
    if isInArray({7890, 11387}, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid,experience, 0)
doPlayerSetLossSkill(cid, false)
    end
    return true
    end
    return true
    end

it's like that xml

XML:
    <item id="7890" article="a" name="AOL Infinito">
<attribute key="description" value="Protege você de...

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,625
Solutions
34
Reaction score
329
Lua:
function onPrepareDeath(cid,deathList)
    if (isPlayer(cid) and getCreatureSkullType(cid)  <=5) then
    if isInArray({7890, 11387}, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid,experience, 0)
doPlayerSetLossSkill(cid, false)
    end
    return true
    end
    return true
    end
and what source do you use?
and u have to add it in creature.xml and register in login.lua
 

Xikini

I whore myself out for likes
Senator
Joined
Nov 17, 2010
Messages
6,245
Solutions
545
Reaction score
4,488
If I remember correctly, 0.4 red and black skull dropLoot stuff is hard-coded in the source.

So no matter what you do script-wise, it won't stop them from dropping their loot.

tldr; pretty sure this requires a source edit.
 

helviio

Member
Joined
Apr 30, 2019
Messages
51
Solutions
2
Reaction score
9
however if it turns red or black it looses the loot if it runs out of skull everything drops in the end everything is falling, please help me

even with this script it drops everything from the set I don't know if it's the script or something else

Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid)  <=5) then
    if isInArray({7890, 11387}, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid,experience, 0)
doPlayerSetLossSkill(cid, false)
    end
    return true
    end
    return true
    end

it's like that xml

XML:
    <item id="7890" article="a" name="AOL Infinito">
<attribute key="description" value="Protege você de seus loots e te da atributos." />
        <attribute key="weight" value="3500" />
        <attribute key="slotType" value="necklace" />

do not know if you have to

Lua:
    <attribute key="charges" value="1" />
        <attribute key="preventDrop" value="1" />



Step 1 :
create a script inside the "data/creaturescript/script" folder called removeaol.lua

step 2 :
paste this script into removeaol.lua

Lua:
function onDeath(cid, corpse, deathList)

       if isPlayer(cid) and (getPlayerSlotItem(cid, 2).itemid == 2173) then

       doPlayerRemoveItem(cid, 2173, 1)

end

       return true

    end
step 3 :

inside the folder data/creaturescripts/scripts open the login.lua script and paste this inside

Lua:
registerCreatureEvent(cid, "RemoveAol")

step 4 :
inside the folder data/creaturescripts/
open the file creaturescript.xml
and paste this

Lua:
<event type="death" name="RemoveAol" event="script" value="removeaol.lua"/>



Credits for the VODKART script! TibiaKing ...
 
Last edited:
Solution
Top