WiLDTuRTLE
Member
- Joined
- Feb 26, 2011
- Messages
- 478
- Reaction score
- 5
Can it be possible to make exura sio heal monsters, or my summons? (utevo res "fire devil) heal those <===
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 2.08, 0, 2.7, 0)
function onSay(cid, words, param)
local creature = false
local summons = getCreatureSummons(cid)
for _, summon in pairs(summons) do
if getCreatureName(summon) == param then
creature = summon
end
end
if not creature then
creature = getPlayerByName(param)
end
if(not creature) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature with this name doesn't exists.")
return true
end
return doCombat(cid, combat, numberToVariant(creature))
end
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, 0) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 2.08, 0, 2.7, 0) function onSay(cid, words, param) local creature = false local summons = getCreatureSummons(cid) for _, summon in pairs(summons) do if getCreatureName(summon) == param then creature = summon end end if not creature then creature = getPlayerByName(param) end if(not creature) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature with this name doesn't exists.") return true end return doCombat(cid, combat, numberToVariant(creature)) end
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, 0) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 2.08, 0, 2.7, 0) function onSay(cid, words, param) local creature = false local summons = getCreatureSummons(cid) for _, summon in pairs(summons) do if getCreatureName(summon) == param then creature = summon end end if not creature then creature = getPlayerByName(param) end if(not creature) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature with this name doesn't exists.") return true end return doCombat(cid, combat, numberToVariant(creature)) end
It's a talkaction, not a spell.