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

Exura sio

DestinationSer

@echo off
Joined
Mar 7, 2009
Messages
2,806
Solutions
1
Reaction score
676
Hey
I want the exura sio to heal a percent of the target
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 2.08, 0, 2.7, 0)

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

Would be nice if anyone could help me with this

Thanks
 
No like for example
"Exura sio "Azzkaban" lets say you have 1000 maxhealth and im supposed to heal 90% of your hp, and then i heal you for 900 health
 
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 2.08, 0, 2.7, 0)

function getHealing_combat(cid)
    local percent = xx -- change this to the percentage of maximum/current hp that you want.
    local config = "maximum" -- if you change it to current, it will change the amount of health to fit the target's current hp. If it's set to maximum, it will change the amount of health to fit the target's maximum hp. If it's set to something else, it will automatically set it to maximum.
    local curr, max = getCreatureHealth(cid), getCreatureMaxHealth(cid) -- do not change this.
    local formula = 0 -- do not change this.
    if config == "current" then
        formula = (curr/100)*percent
    else
        formula = (max/100)*percent
    end
    return math.floor(formula), math.floor(formula)
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getHealing_combat")
 
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

There you go.

EDIT: I forgot, make sure that you read my comments inside of the script, otherwise it won't work.
 
Last edited:
Back
Top