Ir para conteúdo

Featured Replies

Postado

E aê pessoal, dúvida com script do amuleto donate.

 

O que eu queria resolver?

 

- Queria colocar o amuleto infinito, ou seja, players morre e não perde ele nunca, pois eu irei colocar ele como donate e para não ter problemas com 'DROPOU' ou 'CAIU', queria deixar ele infinito.

 

Como está o meu atual?

 

O meu está configurado em 2 lugares, nos items.xml e creaturescript/scripts

No local dos items.xml está:

<item id="10718" name="Amuleto Donate">

<attribute key="description" value="Amuleto Donate. So perdera ele com red ou black skull" />
<attribute key="weight" value="800" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="9000000" />
<attribute key="decayTo" value="10718" />
<attribute key="preventDrop" value="1" />
<attribute key="absorbpercentall" value="10" />
<attribute key="skillaxe" value="10" />
<attribute key="skilldist" value="10" />
<attribute key="skillsword" value="10" />
<attribute key="skillshield" value="10" />
<attribute key="skillclub" value="10" />
<attribute key="speed" value="200" />
<attribute key="magiclevelpoints" value="5" />
<attribute key="showattributes" value="1" />
</item>

E no creaturescripts/scripts/amuleto.lua

 local config = {

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

Obs.: Já está configurado em creaturescripts/scripts/login.lua   e     creaturescripts.xml
 
Se alguém conseguir me ajudar, ficarei muito grato.

Editado por lordzetros (veja o histórico de edições)

Feliz daquele que ensina o que sabe, e aprende o que ensina.

 

               

star-wars-animated-gif-23.gif

  • Respostas 11
  • Visualizações 1.5k
  • Created
  • Última resposta

Top Posters In This Topic

Postado

não precisa disso no item.xml e so tirar...

<attribute key="charges" value="9000000" />
<attribute key="decayTo" value="10718" />

não sei nem por que do script de morte.....e so vc por isso

<attribute key="preventDrop" value="100" />

Editado por kbpaulo (veja o histórico de edições)

Postado
  • Autor

 

não precisa disso no item.xml e so tirar...

<attribute key="charges" value="9000000" />
<attribute key="decayTo" value="10718" />

não sei nem por que do script de morte.....e so vc por isso

<attribute key="preventDrop" value="100" />

Testei aqui e caiu no primeiro drop.

Editado por lordzetros (veja o histórico de edições)

Feliz daquele que ensina o que sabe, e aprende o que ensina.

 

               

star-wars-animated-gif-23.gif

Postado

O meu é assim nunca acabou


</item>
    <item id="10133" article="an" name="Donate Amuleto">
    <attribute key="weight" value="420" />
    <attribute key="maxmanapercent" value="20"/>
 
    <attribute key="slotType" value="necklace" />
</item>


 

Editado por Dieguiin XP (veja o histórico de edições)

Att,
Dieguiin XP

 

»»http://baiakfull.com/««

Postado
  • Autor

O meu é assim nunca acabou

</item>

    <item id="10133" article="an" name="Donate Amuleto">

    <attribute key="weight" value="420" />

    <attribute key="maxmanapercent" value="20"/>

 

    <attribute key="slotType" value="necklace" />

</item>

 

Ele deve ter algum script no creaturescript/scripts Tem como me passar? Ficarei SUPER GRATO. ;/

Feliz daquele que ensina o que sabe, e aprende o que ensina.

 

               

star-wars-animated-gif-23.gif

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.9k

Informação Importante

Confirmação de Termo