u da SUPER SD ta aki
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.7, 0)
function onCastSpell(cid, var)
local condition = createConditionObject(CONDITION_CURSED)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 5, 2000, -25)
setCombatCondition(combat, condition)
return doCombat(cid, combat, var)
end
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
q
E U sCRIPT dela la nu treco q tem q bota "abrir com bloco de notas"
<rune name="Super Sudden Death" id="2263" charges="1" needtarget="1" maglv="55" exhaustion="2000" allowfaruse="1" script="super Sudden Death.lua"></rune>
E aki ta a super UH =
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, 1.3, -30, 1.7, 0)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 3) * 2.3 - 25
max = (level * 2 + maglevel * 3) * 2.6
if min < 1500 then
min = 1500
end
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
e aki u script:
<rune name="super healing" id="2275" aggressive="0" charges="1" needtarget="1" maglv="6" exhaustion="1000" allowfaruse="1" script="super healing.lua"></rune>
meu ela nao ta nem funcionando
vlw pela ajuda flw