Olá,
Na minha TFS está dando alguns erros de scripts, um deles é este:
O script aura_bow abaixo:
local combat1 = createCombatObject()
local combat2 = createCombatObject()
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 43)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SHIVERARROW)
setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 4, -80, 4, -80)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 4, -80, 4, -80)
arr1 = {{3}}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr1)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
local function onUseWeapon1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onUseWeapon2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
function onUseWeapon(cid, var)
local parameters = { cid = cid, var = var,combat1 = combat1,combat2 = combat2 }
if getCreatureTarget(cid) ~= 0 then
addEvent(onUseWeapon1, 0, parameters)
addEvent(onUseWeapon2, 40, parameters)
doPlayerAddSkillTry(cid, 4, 1)
if (getCreatureMana(cid) >= 20) then
doPlayerAddMana(cid, -20)
else
doPlayerSendCancel(cid, "You do not have enough mana.")
return true
end
end
end
#up
Por favor alguem me ajuda? :3