Ir para conteúdo

Featured Replies

Postado

Notei que o tópico está fechado, mas de qualquer forma, vou contribuir aqui, deixando o script..

 

items.xml:
<item id="8266" name="koshei's ancient amulet">
<attribute key="description" value="The effects of this amulet are unknown." />
<attribute key="weight" value="800" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="5000000" />
<attribute key="decayTo" value="8266" />
</item>

creaturescripts.xml:

<event type="death" name="NewAol" event="script" value="aad.lua"/>

creaturescripts/login.lua:

registerCreatureEvent(cid, "aad")

creaturescripts/aad.lua:

local config = {
ammyID = 8266,
lossExp = true,
lossItems = false
}


function onDeath (cid, lastHitKiller, mostDamageKiller)
if (getPlayerSlotItem(cid, 2).itemid == config.ammyID) then 
doCreatureSetDropLoot(cid, config.lossItems)
end
return true
end

 

Se não tiver funcionando, acredite, nada vai funcionar ;)

  • Respostas 20
  • Visualizações 3.9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Artur Henrique
    Artur Henrique

    Notei que o tópico está fechado, mas de qualquer forma, vou contribuir aqui, deixando o script..   items.xml: <item id="8266" name="koshei's ancient amulet"> <attribute key="description"

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo