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

C++ OTHire faster monster healing/attack

rudger

Active Member
Joined
Oct 1, 2010
Messages
255
Solutions
1
Reaction score
34
Location
The Netherlands
I can't seem to let this monster heal faster it always heals per second.
I also can't make it heal slower even if I put exhaustion/delay/interval to 5000.
Anyone knows why?

Monster:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Trainer" nameDescription="a trainer" race="blood" experience="200" speed="240" manacost="600" maglevel="20000" level="200">
   <health now="2400" max="24000"/>
   <look type="57" corpse="3128"/>
   <targetchange interval="1000" chance="0"/>
   <targetstrategies nearest="100" health="0" damage="0" random="0"/>
   <flags>
       <flag attackable="1"/>
       <flag hostile="1"/>
       <flag summonable="0"/>
       <flag convinceable="0"/>
       <flag illusionable="0"/>
       <flag pushable="0"/>
       <flag canpushitems="1"/>
       <flag canpushcreatures="1"/>
       <flag targetdistance="1"/>
       <flag staticattack="50"/>
       <flag runonhealth="0"/>
   </flags>
   <attacks>
       <attack name="melee" min="-0" max="-0"/>
   </attacks>
   <defenses armor="0" defense="0">
       <defense name="exura vita trainer" chance="100" exhaustion="200" interval="200" delay="200">
           <attribute key="areaEffect" value="blueshimmer"/>
       </defense>
   </defenses>
   <elements>
   </elements>
   <immunities>
       <immunity invisible="1"/>
   </immunities>
   <voices interval="1000" chance="15">
       <voice sentence="'Poh laska a guasca!"/>
   </voices>
   <loot>
   </loot>
</monster>

Spell:

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, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onCastSpell(cid, var)

   local level = 200
   local maglevel = 20000

   local min = (200 * 2 + 20000 * 3) * 2.2
   if min < 250 then
   min = 250
   end
 
   local max = (200 * 2 + 20000 * 3) * 3
   if max < 250 then
   max = 250
   end
 
   doTargetCombatHealth(0, cid, COMBAT_HEALING, min, max, CONST_ME_NONE)

   return doCombat(cid, combat, var)
end

Spells.xml

Code:
<instant name="exura vita trainer"  words="###53"  aggressive="0" blockwalls="1" needtarget="0" needlearn="1" exhaustion="200" interval="200" delay="200" script="monster/exura vita trainer.lua"/>

I've also tried to edit this to 0.
Code:
-- exhausted time in ms (1000 = 1 second) for none-aggressive spells
healexhausted = 1300

I've also tried without a new spell:

Code:
    <defenses armor="0" defense="0">
       <defense name="healing" chance="100" min="122880" max="191200" exhaustion="5000" interval="200" delay="200">
           <attribute key="areaEffect" value="blueshimmer"/>
       </defense>
   </defenses>
 
Last edited:
Back
Top