• 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!

My spell misses?

Omen

New Member
Joined
Sep 11, 2008
Messages
70
Reaction score
0
PHP:
<instant name="Divinity" words="exori magnus" direction="1" lvl="50" mana="1000" exhaustion="2000" needlearn="0" script="custom/holycross.lua">
  <vocation name="Paladin" />
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE,COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,CONST_ME_HOLYAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 39)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.0, -320, 3.6, -400)

arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

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

its does everything its supposed to, except sometimes it does way too high damage and sometimes like 20 damage, and it misses a ton (tested on trainers) i tried making my mlvl higher incase it was doing 0 damage, but sometimes it will hit like 12k damage i dont understnd it. coiuld someone help me get it somewhere between 500 and 1000 damage and also never miss? (like exori vis) thanks!
 
No, in yours its "3.6" which means, that this spell will also heal. Gullfisk edited it with "-3.6" - now it will take health instead of adding it.
 
Back
Top