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

Super uh Faulty

Hunterz

New Member
Joined
Jan 20, 2016
Messages
22
Reaction score
2
hey guys for my server i have got a Super UH and it was working fine.. But for some reason after a reset the Super UH decided not work as a UH but as a Magic wall... Please can u help me out and get it working again..


Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.6, -700, -5.4, 0)

function onGetFormulaValues(cid, level, maglevel)
    min = (level * 2 + maglevel * 3) * 4.6 - 25
    max = (level * 2 + maglevel * 3) * 5.2
   
    if min < 300 then
        min = 300
    end

    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Are you sure that the rune id is correct with the id of the rune you are shooting with?

Like this:

In remeres:
7378a175bbde6e7ca04bab754ec7e94a.png


In spells.xml:
1e3dbf61a26b74aa71558d50695fd13a.png
 
Back
Top