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

dependence healing (with manarune)

tuduras

Member
Joined
Jun 4, 2017
Messages
76
Solutions
1
Reaction score
11
Hello,
my 5548level DRUID has more healing than 6006 SORCERER .
Can someone know what's wrong ?
Post my mr scirpt:

Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 100) -- time in seconds x1000
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
 
local manamax = getPlayerMaxMana(cid)
local min = 22.0 -- this means 3% minimum healing
local max = 22.0 -- this means 5% maximum healing
local mana_add = math.random((manamax * (min/100)), (manamax * (max/100)))
 
    if(hasCondition(cid, CONDITION_EXHAUST)) then
            doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
        return doPlayerSendCancel(cid, "Poczekaj.")
    end
        doPlayerAddMana(cid, mana_add)
        doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
        doSendAnimatedText(getPlayerPosition(cid),"+"..mana_add.."", TEXTCOLOR_LIGHTGREEN)
    doAddCondition(cid, exhaust)
        return true
end
in Vocations.xml all is the same


healing1.webp

healing2.webp
 
Last edited:
Hello,
my 5548level DRUID has more healing than 6006 SORCERER .
Can someone know what's wrong ?
Post my mr scirpt:

Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 100) -- time in seconds x1000
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
 
local manamax = getPlayerMaxMana(cid)
local min = 22.0 -- this means 3% minimum healing
local max = 22.0 -- this means 5% maximum healing
local mana_add = math.random((manamax * (min/100)), (manamax * (max/100)))
 
    if(hasCondition(cid, CONDITION_EXHAUST)) then
            doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
        return doPlayerSendCancel(cid, "Poczekaj.")
    end
        doPlayerAddMana(cid, mana_add)
        doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
        doSendAnimatedText(getPlayerPosition(cid),"+"..mana_add.."", TEXTCOLOR_LIGHTGREEN)
    doAddCondition(cid, exhaust)
        return true
end
in Vocations.xml all is the same


View attachment 90131

View attachment 90132

Your druid seems to have more mana than your sorcerer..
If not then you boosted the healing somehow
 
Your druid seems to have more mana than your sorcerer..
If not then you boosted the healing somehow

You're right druid has more mana than sorcerer.
But why,

since both of them have the same Vocation.xml
Post automatically merged:

I think I know . I have super promotion item that you give super promotion of vocation. One i gave on lvl 8 one on level 500. hence difference
 
You're right druid has more mana than sorcerer.
But why,

since both of them have the same Vocation.xml
Post automatically merged:

I think I know . I have super promotion item that you give super promotion of vocation. One i gave on lvl 8 one on level 500. hence difference

Show me vocation.xml and the super promotion script
 
LUA:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
    <vocation id="0" name="None" description="none" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.5"/>
        <skill id="1" multiplier="2.0"/>
        <skill id="2" multiplier="2.0"/>
        <skill id="3" multiplier="2.0"/>
        <skill id="4" multiplier="2.0"/>
        <skill id="5" multiplier="1.5"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="1" name="Sorcerer" description="a sorcerer" gaincap="10" gainhp="5" gainmana="30" gainhpticks="10" gainhpamount="1" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.1" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.5"/>
        <skill id="1" multiplier="2.0"/>
        <skill id="2" multiplier="2.0"/>
        <skill id="3" multiplier="2.0"/>
        <skill id="4" multiplier="2.0"/>
        <skill id="5" multiplier="1.5"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="2" name="Druid" description="a druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="10" gainhpamount="1" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.1" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.5"/>
        <skill id="1" multiplier="1.8"/>
        <skill id="2" multiplier="1.8"/>
        <skill id="3" multiplier="1.8"/>
        <skill id="4" multiplier="1.8"/>
        <skill id="5" multiplier="1.5"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="3" name="Paladin" description="a paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="15" gainhpamount="1" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.4" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.2"/>
        <skill id="1" multiplier="1.2"/>
        <skill id="2" multiplier="1.2"/>
        <skill id="3" multiplier="1.2"/>
        <skill id="4" multiplier="1.1"/>
        <skill id="5" multiplier="1.1"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="4" name="Knight" description="a knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="10" gainhpamount="1" gainmanaticks="2" gainmanaamount="10" manamultiplier="3.0" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.1"/>
        <skill id="1" multiplier="1.1"/>
        <skill id="2" multiplier="1.1"/>
        <skill id="3" multiplier="1.1"/>
        <skill id="4" multiplier="1.4"/>
        <skill id="5" multiplier="1.1"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="5" name="Master Sorcerer" description="a master sorcerer" gaincap="10" gainhp="5" gainmana="30" gainhpticks="5" gainhpamount="5" gainmanaticks="5" gainmanaamount="5" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.5"/>
        <skill id="1" multiplier="2.0"/>
        <skill id="2" multiplier="2.0"/>
        <skill id="3" multiplier="2.0"/>
        <skill id="4" multiplier="2.0"/>
        <skill id="5" multiplier="1.5"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="6" name="Elder Druid" description="an elder druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="5" gainhpamount="5" gainmanaticks="5" gainmanaamount="5" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.5"/>
        <skill id="1" multiplier="1.8"/>
        <skill id="2" multiplier="1.8"/>
        <skill id="3" multiplier="1.8"/>
        <skill id="4" multiplier="1.8"/>
        <skill id="5" multiplier="1.5"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="7" name="Royal Paladin" description="a royal paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="5" gainhpamount="5" gainmanaticks="5" gainmanaamount="5" manamultiplier="1.4" attackspeed="900" soulmax="200" gainsoulticks="15" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.2"/>
        <skill id="1" multiplier="1.2"/>
        <skill id="2" multiplier="1.2"/>
        <skill id="3" multiplier="1.2"/>
        <skill id="4" multiplier="1.1"/>
        <skill id="5" multiplier="1.1"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="8" name="Elite Knight" description="an elite knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="5" gainhpamount="5" gainmanaticks="5" gainmanaamount="5" manamultiplier="3.0" attackspeed="900" soulmax="200" gainsoulticks="15" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
        <skill id="0" multiplier="1.1"/>
        <skill id="1" multiplier="1.1"/>
        <skill id="2" multiplier="1.1"/>
        <skill id="3" multiplier="1.1"/>
        <skill id="4" multiplier="1.4"/>
        <skill id="5" multiplier="1.1"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="23" name="Super Knight" description="a super knight" gaincap="25" gainhp="19" gainmana="7" gainhpticks="2" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="2.0" attackspeed="310" soulmax="200" gainsoulticks="15" fromvoc="8">
        <formula meleeDamage="4.5" distDamage="1.0" defense="1.9" armor="1.6"/>
        <skill id="0" multiplier="1.1"/>
        <skill id="1" multiplier="1.1"/>
        <skill id="2" multiplier="1.1"/>
        <skill id="3" multiplier="1.1"/>
        <skill id="4" multiplier="1.4"/>
        <skill id="5" multiplier="1.1"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="22" name="Super Paladin" description="a super paladin" gaincap="20" gainhp="16" gainmana="19" gainhpticks="3" gainhpamount="1" gainmanaticks="2" gainmanaamount="2" manamultiplier="1.4" attackspeed="250" soulmax="200" gainsoulticks="15" fromvoc="7">
        <formula meleeDamage="2.8" distDamage="4.8" defense="1.55" armor="1.15"/>
        <skill id="0" multiplier="1.2"/>
        <skill id="1" multiplier="1.2"/>
        <skill id="2" multiplier="1.2"/>
        <skill id="3" multiplier="1.2"/>
        <skill id="4" multiplier="1.1"/>
        <skill id="5" multiplier="1.1"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="21" name="Super Druid" description="a super druid" gaincap="10" gainhp="7" gainmana="40" gainhpticks="2" gainhpamount="1" gainmanaticks="12" gainmanaamount="2" manamultiplier="1.1" attackspeed="620" soulmax="200" gainsoulticks="15" fromvoc="6">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.5" armor="1.1"/>
        <skill id="0" multiplier="1.5"/>
        <skill id="1" multiplier="1.8"/>
        <skill id="2" multiplier="1.8"/>
        <skill id="3" multiplier="1.8"/>
        <skill id="4" multiplier="1.8"/>
        <skill id="5" multiplier="1.5"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="20" name="Super Sorcerer" description="a super sorcerer" gaincap="10" gainhp="7" gainmana="40" gainhpticks="2" gainhpamount="1" gainmanaticks="12" gainmanaamount="2" manamultiplier="1.1" attackspeed="620" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.5" armor="1.1"/>
        <skill id="0" multiplier="1.5"/>
        <skill id="1" multiplier="2.0"/>
        <skill id="2" multiplier="2.0"/>
        <skill id="3" multiplier="2.0"/>
        <skill id="4" multiplier="2.0"/>
        <skill id="5" multiplier="1.5"/>
        <skill id="6" multiplier="1.1"/>
    </vocation>
</vocations>

And promo item:


Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
   if getPlayerPromotionLevel(cid) == 1 then
       doPlayerSetPromotionLevel(cid, 2)
       doSendMagicEffect(toPosition, CONST_ME_MAGIC_RED)
       doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Now you are "..getPlayerVocationName(cid)..".");
       doRemoveItem(item.uid, 1)
   else
       doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
   end
end
 
Epic promotion gain more mana than normal promotion. This means if player level 8 receive epic promotion and gets level 500 will have more mana than a player that use epic promotion at level 500 because he has reeceived 30 mana per level while epic promoted received 40 mana per level

Solution:
Update players mana on epic promotion based on their level then u should be fine :D
 
Back
Top