• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows Sword problems. HELP please!

TibiaFX

******************
Joined
Jul 23, 2014
Messages
335
Reaction score
61
As the title says, I have a problem-

My sword is supposed to attack always the same dmg like 3.5m doenst matter at which level- problem is I dont know how to fix it :d

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 49)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 254)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -60.0, -30, -40.0, -25)

local area = createCombatArea( { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } )
setCombatArea(combat, area)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

I hope someone can help me, I hope you can understand it- my english is not the best sorry xD
 
Back
Top