Jump to content
  • 0
Sign in to follow this  
potinho

Scripting Adicionar Atributos a um Item

Question

potinho    4
potinho

Descreva em algumas palavras a base utilizada. (Nome do servidor / Nome do cliente / Nome do website / etc.).

The OTX Server Version: (2.100 - 6000) - Codename: (FINAL)

Base:

7.6

Qual é a sua pergunta?

Olá, gostaria de saber como eu faço para adicionar atributos a um item, exemplo: tenho um escudo editado e gostaria que ele concedesse 10% de defesa mágica. Mesma coisa com legs, amor, etc. Também gostaria de saber se existe a possibilidade de clonar um item (mesma sprite) mas mudar a ID, nome e atributos, para ser um "novo item". Obrigado

 

Você tem o código disponível? Se tiver poste-o na caixa de código que está dentro do spoiler abaixo:

Spoiler

    <item id="3973" article="a" name="extreme shield">
        <attribute key="weight" value="6900"/>
        <attribute key="defense" value="65"/>
        <attribute key="weaponType" value="shield"/>

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, anexe-a dentro do spoiler abaixo:

Spoiler

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
potinho    4
potinho

Adicionei os itens que queria no momements.xml, e em items.xml aidicionei as tags como abaixo:

 

<item id="3973" article="a" name="extreme shield">
		<attribute key="weight" value="6900"/>
		<attribute key="defense" value="65"/>
		<attribute key="absorbPercentMagic" value="10" />
		<attribute key="weaponType" value="shield"/>
	</item>


	<item id="2507" name="elven legs">
		<attribute key="weight" value="3300"/>
		<attribute key="armor" value="10"/>
		<attribute key="skillShield" value="2"/>
		<attribute key="skillSword" value="2"/>
		<attribute key="skillClub" value="2"/>
		<attribute key="skillAxe" value="2"/>
		<attribute key="skillDist" value="2"/>
		<attribute key="slotType" value="legs"/>
	</item>

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×