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

Training Monk Add Mana

GoalTV

NANI?!
Joined
Jul 23, 2011
Messages
589
Reaction score
53
Hello is it possible that training monk will give players mana?

here is my script it already give health but I need mana too

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a training monk" race="blood" experience="0" speed="210" manacost="0">
    <health now="99999999999999999" max="99999999999999999"/>
    <look type="57" corpse="3128"/>
    <targetchange interval="60000" chance="0"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="1"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag staticattack="50"/>
        <flag lightlevel="1"/>
        <flag lightcolor="1"/>
        <flag targetdistance="1"/>
        <flag runonhealth="1"/>
    </flags>
    <attacks>
        <attack name="melee" interval="1" min="1" max="500"/>
    </attacks>
    <defenses armor="0" defense="0">
        <defense name="Mass Healing" interval="1" chance="100" min="9999999999999" max="9999999999999"/> 
                <defense name="healing" interval="1" chance="100" min="9999999999999" max="9999999999999"/>  
    </defenses>
    <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>
        <item id="2148" countmax="20" chance="100000"/><!-- gold coin -->
        <item id="1949" chance="10000"/><!-- scroll -->
        <item id="2467" chance="10000"/><!-- leather armor -->
        <item id="2642" chance="6666"/><!-- sandals -->
        <item id="1987" chance="100000"><!-- bag -->
            <inside>
                <item id="2044" chance="6666"/><!-- lamp -->
                <item id="2689" countmax="3" chance="20000"/><!-- bread -->
                <item id="2401" chance="3333"/><!-- staff -->
                <item id="2166" chance="1428"/><!-- power ring -->
            </inside>
        </item>
    </loot>
</monster>


Best Regards
mlody.1039
 
Code:
<attack name="manadrain" interval="1000" chance="25" range="1" min="9999999999999" max="9999999999999"/>
should do the trick
 
Hello.

Thank you for reply

I put it

<attacks>
<attack name="melee" interval="1" min="1" max="500"/>
<attack name="manadrain" interval="1" chance="100" range="1" min="9999999999999" max="9999999999999"/>
</attacks>

but not working....

any other way?

Best Regards
mlody.1039
 
try
<defenses armor="0" defense="0">
<defense name="manadrain" interval="1000" chance="25" range="1" min="9999999999999" max="9999999999999"/>
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
 
Hello.

Thanks for reply still same nothing happen I forget to add version is 8.6

<defenses armor="0" defense="0">
<defense name="Mass Healing" interval="1" chance="100" min="9999999999999" max="9999999999999"/>
<defense name="healing" interval="1" chance="100" min="9999999999999" max="9999999999999"/>
<defense name="manadrain" interval="1000" chance="25" range="1" min="9999999999999" max="9999999999999"/>
<attribute key="areaEffect" value="blueshimmer"/>
</defenses>
 

Attachments

  • Screenshot from 2014-01-06 06:21:57.png
    Screenshot from 2014-01-06 06:21:57.png
    991.6 KB · Views: 21 · VirusTotal
Manadrain shouldn't be a defense, but rather an attack.
Code:
onCastSpell(cid, var)
if isPlayer(getCreatureTarget(cid)) then
local amount = SET AMOUNT HERE
doPlayerAddMana(getCreatureTarget(cid), amount)
return true
end
end

<attack name="mana_heal" interval="1000"/>
 
Manadrain shouldn't be a defense, but rather an attack.

Cadyan you are wrong, difference between attack and defense is simple. Defenses executes everytime, while attacks executes only if target exist. Both can heal or deal damage.
 
Back
Top