O atributo charges é bem diferente do atributo duration. Aconselho usar o segundo para o que você está tentando fazer, sendo o valor em segundos.
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Wand Que Pode Ser Encantada !
LU
action
Wand Que Pode Ser Encantada !
Por lukas13on, 18 de jul. de 2012 em Actions e Talkactions
wand
tibia
script
otserv
3
1.2k
18 de julho de 2012 às 18:05
Editado Julho 18 por Oneshot




info
Grupo: Artesão
Registrado: 30/03/11
Posts: 138
Reputação: +4
Char no Tibia: Druida de Asgard
Espero que compreenda que é meu primeiro tópico
Para fazer essa wand é meio complicado
mais não é impossivel:
Abra sua items.xml
e troque as linhas dos ids respectivos por essas:
ID:2423
<item id="2423" article="a" name="Mystical Wand Holy">
<attribute key="description" value="Seu tipo de ataque pode ser trocado na Elemental Island" />
<attribute key="weight" value="2900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="holy" />
<attribute key="range" value="6" />
</item>
ID:7754
<item id="7754" article="a" name="Mystical Wand Fire">
<attribute key="description" value="Seu tipo de ataque pode ser trocado na Elemental Island" />
<attribute key="weight" value="2900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="Fire" />
<attribute key="range" value="3" />
<attribute key="elementFire" value="5" />
<attribute key="duration" value="10000" />
<attribute key="decayTo" value="2423" />
<attribute key="showduration" value="1" />
</item>
ID:7773
<item id="7773" article="a" name="Mystical Wand Ice">
<attribute key="description" value="Seu tipo de ataque pode ser trocado na Elemental Island" />
<attribute key="weight" value="2900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="Ice" />
<attribute key="range" value="3" />
<attribute key="elementIce" value="5" />
<attribute key="duration" value="10000" />
<attribute key="decayTo" value="2423" />
<attribute key="showduration" value="1" />
</item>
ID:7864
<item id="7864" article="a" name="Mystical Wand Earth">
<attribute key="description" value="Seu tipo de ataque pode ser trocado na Elemental Island" />
<attribute key="weight" value="2900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="Earth" />
<attribute key="range" value="3" />
<attribute key="elementEarth" value="5" />
<attribute key="duration" value="1000" />
<attribute key="decayTo" value="2423" />
<attribute key="showduration" value="1" />
</item>
ID:7879
<item id="7879" article="a" name="Mystical Wand Energy">
<attribute key="description" value="Seu tipo de ataque pode ser trocado na Elemental Island" />
<attribute key="weight" value="2900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="Energy" />
<attribute key="range" value="3" />
<attribute key="elementEnergy" value="5" />
<attribute key="duration" value="10000" />
<attribute key="decayTo" value="2423" />
<attribute key="showduration" value="1" />
</item>
Agora vá a sua weapons.xml
e coloque as novas linhas na coluna de wands:
<wand id="2423" level="150" mana="3" min="200" max="200" type="Holy" event="function" value="default"> <!-- Mystical Wand Holy -->
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</wand>
<wand id="7773" level="150" mana="3" min="200" max="200" type="Ice" event="function" value="default"> <!-- Mystical Wand Ice -->
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</wand>
<wand id="7864" level="150" mana="3" min="200" max="200" type="Earth" event="function" value="default"> <!-- Mystical Wand Earth -->
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</wand>
<wand id="7879" level="150" mana="3" min="200" max="200" type="Energy" event="function" value="default"> <!-- Mystical Wand Energy -->
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</wand>
<wand id="7754" level="200" mana="10" min="200" max="200" type="Fire" event="function" value="default"> <!-- Mystical Wand Fire -->
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</wand>
_____________________________________________
Lembretes:
Não esqueça de fechar as tags:
</wand>
</item>
_____________________________________________
E não esqueça de deletar as linhas que contem os ids
caso você não delete as linhas vai dar crash e
vai acontecer douple registred item...
_____________________________________________
Como deletar?
assim:
Antes:
Depois:
_____________________________________________
< -- Resultado -- >
Como encantar? use as pedras encantadas
no item e a duração pode ser alterada aqui:
Editado Julho 18 por HarpiaLOOK