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_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onCastSpell(cid, var)
doPlayerAddHealth(cid, [COLOR="Red"][U]1200[/U][/COLOR])
return doCombat(cid, combat, var)
end
local t = {
text = "Ooooh...",
effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
doTargetCombatHealth(0, cid, COMBAT_FIREDAMAGE, 1100, 1200, CONST_ME_FIRE)
doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition, t.effect)
else
doPlayerSendCancel(cid, "You can only use this rune on players.")
end
return true
end
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, 0, 1200, 0, 1200)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
hehe =P
My fail script but works so try it:
To actions...LUA:local t = { text = "Ooooh...", effect = CONST_ME_MAGIC_BLUE } function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) then doTargetCombatHealth(0, cid, COMBAT_FIREDAMAGE, 1100, 1200, CONST_ME_FIRE) doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1) doSendMagicEffect(toPosition, t.effect) else doPlayerSendCancel(cid, "You can only use this rune on players.") end return true end
text = "Ooooh...",
effect = CONST_ME_MAGIC_RED
health = 1200
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
doCreatureAddHealth(cid, #health)
doCreatureSay(itemEx.uid, #text, TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition,#effect)
else
doPlayerSendCancel(cid, "You can only use this rune on players.")
end
return TRUE
end