c coloca iso <attribute key="charges" value="0" /> ou <attribute key="charges" value="999999999" />
- Forums
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Amuleto Infinito Como Aol !
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

creaturescript
nome do seu script.lua
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if isInArray({2196,2130,2131}, getPlayerSlotItem(cid, 2).itemid) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return TRUE
end
end
return TRUE
end
login.lua add:
registerCreatureEvent(cid, "infinityAmulet")
creaturescript.xml
<event type="preparedeath" name="infinityAmulet" event="script" value="nome do seu script.lua"/>
items.xml
<item id="2196" article="a" name="Perfect amulet"> <attribute key="description" value="serve como aol e infinito." /> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="speed" value="80" /> <attribute key="showattributes" value="1" /> </item> <item id="11387" article="a" name="Perfecty amulet"> <attribute key="description" value="serve como aol e infinito." /> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="speed" value="80" /> <attribute key="showattributes" value="1" /> </item> <item id="10719" article="a" name="Perfect amuleto"> <attribute key="description" value="serve como aol e infinito nao perde itens red." /> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="speed" value="150" /> <attribute key="showattributes" value="1" /> </item>
Edited Março 3 by Vodkart
info
Group: Campones
Joined: 04/07/10
Posts: 53
Reputation: +2
Tibia Character: druid

vlw vot so que agr ta dropando itens ![]()
Edited Março 4 by godleandro
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: Xerife Woody

Coloque isso nos items:
<attribute key="preventDrop" value="1" />
Exemplo:
<itemid="10719"article="a"name="Perfect amuleto">
<attribute key="description" value="serve como aol e infinito nao perde itens red." />
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="preventDrop" value="1" />
<attribute key="speed" value="150" />
<attribute key="showattributes" value="1" />
</item>
info
Group: Campones
Joined: 04/07/10
Posts: 53
Reputation: +2
Tibia Character: druid

obrigado vodkart tinha esquecido coloca ides no script por isso não tinha dado ![]()




info
Group: Campones
Joined: 04/07/10
Posts: 53
Reputation: +2
Tibia Character: druid
quero deixa 3 amuleto meu infinito
<item id="2196" article="a" name="Perfect amulet">
<attribute key="description" value="serve como aol e infinito." />
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="preventDrop" value="1"/>
<attribute key="speed" value="80" />
<attribute key="showattributes" value="1" />
</item>
<item id="11387" article="a" name="Perfecty amulet">
<attribute key="description" value="serve como aol e infinito." />
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="preventDrop" value="1"/>
<attribute key="speed" value="80" />
<attribute key="showattributes" value="1" />
</item>
<item id="10719" article="a" name="Perfect amuleto">
<attribute key="description" value="serve como aol e infinito nao perde itens red." />
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="preventDrop" value="1"/>
<attribute key="speed" value="150" />
<attribute key="showattributes" value="1" />
</item>
Rep + quem ajudar.!