• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need help with spell formulas

wickedd

Member
Joined
Oct 14, 2011
Messages
251
Solutions
1
Reaction score
23
Location
US
I can't figure out the formula for spells that need to access skills or wahtaver. i looked at whirlwind throw but it doesnt work right
im trying to get it to hit a range but it always manages to hit a low number
heres my lua
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 3.3, -120, 3.5, -90)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
I can't figure out the formula for spells that need to access skills or wahtaver. i looked at whirlwind throw but it doesnt work right
im trying to get it to hit a range but it always manages to hit a low number
heres my lua
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 3.3, -120, 3.5, -90)

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


Use This Tool Instead Of Wasting Hours To Make One Single Spell
Spell Creator By TGYoshi

- - - Updated - - -

I can't figure out the formula for spells that need to access skills or wahtaver. i looked at whirlwind throw but it doesnt work right
im trying to get it to hit a range but it always manages to hit a low number
heres my lua
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 3.3, -120, 3.5, -90)

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


Use This Tool Instead Of Wasting Hours To Make One Single Spell
Spell Creator By TGYoshi
 
Back
Top