Depois te muito trabalho concegui terminar as wands,entao ja vou explicar que elas em dois casos diferentes,pvc enforced e pvp comum,mas eu irei explicas os dois casos no post
Agora vamos ao oque interessa,primeiro crie 6 arquivos na pasta weapons com o nome das wands e rods,primeiramente,wand of voodoo:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 38)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -60, 0, -70)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
wand of starstorm:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -60, 0, -70)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
wand of draconia:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -25, 0, -35)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
underworld rod:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 38)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -60, 0, -70)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
northwind rod:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 43)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -25, 0, -35)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
springsprout rod:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLEARTH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -60, 0, -70)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
1° caso,Shenlong's War Server
download do ot : http://www.xtibia.com/forum/Shenlong-s-War-V15-t91254.html
va em weapons.xml:
<wand id="8826" level="37" enabled="1" exhaustion="1" script="wand of starstorm.lua"/>
<wand id="8828" level="42" enabled="1" exhaustion="1" script="wand of voodoo.lua"/>
<wand id="2183" level="33" enabled="1" exhaustion="1" script="tempest rod.lua"/>
<wand id="8816" level="42" enabled="1" exhaustion="1" script="underworld rod.lua"/>
<wand id="8818" level="37" enabled="1" exhaustion="1" script="springsprout rod.lua"/>
2° caso,pvp comum
<wand id="8817" range="2" lvl="22" mana="5" enabled="1" exhaustion="0" script="northwind rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="8818" range="3" lvl="37" mana="13" enabled="1" exhaustion="0" script="springsprout rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="8816" range="3" lvl="42" mana="13" enabled="1" exhaustion="0" script=underworld rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<!-- Wands -->
<wand id="8827" range="2" lvl="22" mana="5" enabled="1" exhaustion="0" script="wand of draconia.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="8826" range="3" lvl="37" mana="13" enabled="1" exhaustion="0" script="wand of starstorm.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="8828" range="3" lvl="42" mana="13" enabled="1" exhaustion="0" script="wand of voodoo.lua"><vocation id="1"/><vocation id="5"/></wand>
e para finalizar va em itens.xml(qualquer caso) para elas poderem funfar e complementem elas deixando assim:
RODS
<item id="8816" name="underworld rod">
<attribute key="weight" value="3050"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="2"/>
</item>
<item id="8817" name="northwind rod">
<attribute key="weight" value="3050"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="2"/>
</item>
<item id="8818" name="springsprout rod">
<attribute key="weight" value="3050"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="2"/>
WANDS
<item id="8826" name="wand of starstorm">
<attribute key="weight" value="3050"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="2"/>
</item>
<item id="8827" name="wand of draconia">
<attribute key="description" value="This wand holds the spirit and soul of a dragon lord."/>
<attribute key="weight" value="3050"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="2"/>
</item>
<item id="8828" name="wand of voodoo">
<attribute key="description" value="It is filled with the dark hatred and rage of a tormented demonic being."/>
<attribute key="weight" value="3050"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="2"/>
Espero ter ajudado,criticas construtivas serao aceita