amulet inf.lua
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if (getPlayerSlotItem(cid, 2).itemid == 10719) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return TRUE
end
end
registerCreatureEvent(cid, "Amulet Inf")
return TRUE
end
creaturescript.xml
<event type="preparedeath" name="Amulet Inf" event="script" value="amulet inf.lua"/>
items.xml
<item id="10719" article="an" name="infinito amulet">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="absorbPercentAll" value="30" />
</item>




info
Group: Campones
Joined: 14/08/10
Posts: 45
Reputation: +3
Tipo do script: Creaturescripts
Protocolo (versão do Tibia): 8.60
Servidor utilizado: TFS 0.4
Nível de experiência: medio
Adicionais/Informações: Como voces vao ver no script abaixo eu tenho um amuleto que nao dropa loot e ele é infinito, POREM quando voce morre RED SKULL com ele DROPA TUDO, porem quando voce RE-LOGA so ta o amuleto no corpo ... tem como tirar esse bug?
amulet inf.lua > EM script/creaturescripts
EM creaturescripts.xml
MEU AMULETO na pasta ITEMS.XML
<item id="10719" article="an" name="infinito amulet"> <attribute key="weight" value="420" /> <attribute key="absorbPercentAll" value="30" /> <attribute key="preventDrop" value="1" /> <attribute key="slotType" value="necklace" /> <attribute key="showattributes" value="1" /> </item>Edited Outubro 26 by Baiakuda