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

Monster Healing Spell

GMNino

New Member
Joined
Jun 30, 2007
Messages
119
Reaction score
3
i need monster healing spell, this spell heal every 2 seconds in radius 4x4 only isPlayer,

this is my monster

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Healing Lamp" nameDescription=" Healing Lamp" race="undead" experience="0" speed="0" manacost="0">
  <health now="1000" max="1000"/>
  <look typeex="9942" />
  <targetchange interval="20000" chance="0"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="0"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="1"/>
    <flag staticattack="100"/>
    <flag lightlevel="233"/>
    <flag lightcolor="35"/>
    <flag targetdistance="3"/>
    <flag runonhealth="0"/>
  </flags>
  <attacks>
    <attack name="healinglamp" interval="2000" chance="100"/>
    </attack>
  <defenses armor="0" defense="0" />
	<elements>
	</elements>
  <immunities>
    <immunity physical="0"/>
    <immunity energy="0"/>
    <immunity fire="0"/>
    <immunity poison="0"/>
    <immunity lifedrain="0"/>
    <immunity paralyze="0"/>
    <immunity outfit="0"/>
    <immunity drunk="0"/>
    <immunity invisible="1"/>
  </immunities>
  <loot>
  </loot>
</monster>

this is the spells that i need:

Code:
<attack name="healinglamp" interval="2000" chance="100"/>

in spells.xml:
Code:
<instant name="healinglamp" words="xxxxxx" lvl="10" mana="10" prem="1" aggressive="0" needtarget="0" params="0" exhaustion="2000" soul="3500" script="healinglamp.lua" />

now in spells/scripts/ need that healinglamp.lua

anyone can make this?
 
Hello,
Try this.
Code:
<attack name="healing" interval="2000" radius="4" target="0" min="200" max="500">
<attribute key="areaEffect" value="blueshimmer"/>
</attack>
 
Try healinglamp.lua

Code:
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)

function onGetFormulaValues(cid, level, maglevel)
    min = (level * 1 + maglevel * 4) * 2.08
    max = (level * 1 + maglevel * 4) * 2.7
    if min < 250 then
        min = 250
    end
    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
mmm only work if you attack somebody and dont heal nothing only areaeffect:




i want like this but heal only work for players not for monsters.


 
Back
Top Bottom