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

Lua -=|TFS|=- 0.4 8.60 Need Script Protect White Skull Black Skull Red Skull Skill Without Missing The AOL INFINITE

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
-=|TFS|=- 0.4 8.60 Need Script Protect White Skull Black Skull Red Skull Skill Without Missing The AOL INFINITE
DON'T LOSE ANYTHING

It would be amulet for these ids
7890, 11387


Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid)  >= 4) then
    if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
        doCreatureSetDropLoot(cid, false)   
    end
    return true
    end
    return true
    end
 
Lua:
if isInArray({2196, 7890, 11387}, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid) then
Lua:
doCreatureSetDropLoot(cid, false)
doPlayerSetLossSkill(cid, false)
 
@Xikini So he's dropping the items, I want a script that doesn't drop anything even with white and red and black HELP PLEASE ON CREATE SCRIPT FOR ID OF AMULET 7890, 11387
best way source edit but u can do it by lua script
if (getCreatureSkullType(cid) >= 4) then
this line mean if skull = red or black u can change it to be like
if (getCreatureSkullType(cid) <= 5) then
now its will work with all skulls
and use xikini code
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid)  <=5) then
    if isInArray({2196, 7890, 11387}, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossSkill(cid, false)
    end
    return true
    end
    return true
    end
 
@Elgenady it's true?
Lua:
<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" />
       <attribute key="charges" value="999999999999999999999" />
        <attribute key="preventDrop" value="1" />
 
@Elgenady it's true?
Lua:
<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" />
       <attribute key="charges" value="999999999999999999999" />
        <attribute key="preventDrop" value="1" />
remove
<attribute key="charges" value="999999999999999999999" />
<attribute key="preventDrop" value="1" />
 
Back
Top