samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 447
- Solutions
- 3
- Reaction score
- 49
- 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
it's like that xml
do not know if you have to
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" />