Vá na sua pasta data/weapons/scripts copie dois scripts qualquer, renomeie e escreva: firesword em um e poisondagger no outro
abra o "firesword" delete tudo e cole esse código
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.6, -60, -0.7, -80)
local condition = createConditionObject(CONDITION_FIRE)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 10, 2000, -10)
setCombatCondition(combat, condition)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
agora va no poisondagger, delete tudo e cole:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWNBLOOD)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.1, -20, -0.2, -30)
local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 10, 2000, -5)
setCombatCondition(combat, condition)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
agora na pasta weapons, abra o arquivo "weapons.xml" (não delete nada) e cole isso:
<!-- Magic Weapons -->
<wand id="2392" range="1" lvl="1" mana="20" enabled="1" exhaustion="0" script="firesword.lua"><vocation id="2"/><vocation id="6"/><vocation id="1"/><vocation id="5"/></wand>
<wand id="2411" range="1" lvl="1" mana="0" enabled="1" exhaustion="0" script="poisondagger.lua"><vocation id="1"/><vocation id="5"/><vocation id="2"/><vocation id="6"/></wand>
Pronto!
suas armas estão prontas..
Lembrando que: apenas sorcerers e druids podem usar essas armas e o dano delas sera de acordo com o magic level de cada um :icon1:
Comentem plx ^^