Postado Agosto 19, 2012 12 anos Olá galera.. Preciso a ajuda de voces, membros do tibiaking., Quero aprender.. como bota a wand pra hitar 1k em player e 1k em bicho ! Obriiiiigado desde já ! REP Editado Agosto 19, 2012 12 anos por Banny (veja o histórico de edições)
Postado Agosto 19, 2012 12 anos Você vai na pasta data/weapons e abre o arquivo weapons.xml. Já no começo você vê as rods e wands. Nesse estilo, <!-- Wands --> <wand id="2190" level="7" mana="2" min="8" max="18" type="energy" event="function" value="default"> <!-- Wand of Vortex --> <vocation id="1"/> </wand> <wand id="2191" level="13" mana="3" min="13" max="25" type="fire" event="function" value="default"> <!-- Wand of Dragonbreath --> <vocation id="1"/> </wand> <wand id="2188" level="19" mana="5" min="27" max="33" type="death" event="function" value="default"> <!-- Wand of Decay --> <vocation id="1"/> </wand> <wand id="8921" level="22" mana="5" min="27" max="33" type="fire" event="function" value="default"> <!-- Wand of Draconia --> <vocation id="1"/> </wand> <wand id="2189" level="26" mana="8" min="42" max="48" type="energy" event="function" value="default"> <!-- Wand of Cosmic Energy --> <vocation id="1"/> </wand> <wand id="2187" level="33" mana="13" min="55" max="75" type="fire" event="function" value="default"> <!-- Wand of Inferno --> <vocation id="1"/> </wand> <wand id="8920" level="37" mana="13" min="55" max="75" type="energy" event="function" value="default"> <!-- Wand of Starmstorm --> <vocation id="1"/> </wand> <wand id="8922" level="42" mana="13" [b]min="55" max="75[/b]" type="death" event="function" value="default"> <!-- Wand of Voodoo --> <vocation id="1"/> </wand> Sendo que a configuração de uma wand se dá entre as tags <wand> e </wand>, e na tag de abertura <wand>, você tem algums paramêtros para configurar, tais como o valor minímo e máximo da mesma min="55" max="75 aí só você colocar o valor que você quer. Mesma coisa para rod. Ajudei? Editado Agosto 19, 2012 12 anos por izaias.araujo (veja o histórico de edições)
Postado Agosto 19, 2012 12 anos Autor Bom amigo, o tutorial.. mais você não entendeu.. Tipo.. se eu por min: 500 max: 700, em bicho ele vai bater entre "500 a 700" e em player a metade.. Eu quero que a Wand ou Rod bate o mesmo valor que ela hita entre os monstro.. entendeu? Obrigado !
Postado Agosto 19, 2012 12 anos /data/weapons/ weapons.xml <wand id="xxx" level="50" mana="13" min="0" max="0" type="earth" event="script" value="wand1.lua"> <!-- wand of effects --> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> /data/weapons/scripts cria 1 arquivo chamado wand1.lua e adiciona isso dentro: function onUseWeapon(cid, var) min, max = 300, 300 -- dano minimo e maximo local sh = 12 -- efeito distance local efe = 12 -- efeito no player local dmg = COMBAT_HOLYDAMAGE target = getCreatureTarget(cid) if target ~= 0 then if isPlayer(target) then doSendDistanceShoot(getThingPos(cid), getThingPos(target), sh) addEvent(doAreaCombatHealth, 100, cid, dmg, getThingPos(target), 0, -min, -max, efe) elseif isMonster(target) then doSendDistanceShoot(getThingPos(cid), getThingPos(target), sh) addEvent(doAreaCombatHealth, 100, cid, dmg, getThingPos(target), 0, -min, -max, efe) end end return true end Retirado. Skype: joaoxtibia85.
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.