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

magdefense in vocations.xml

Pawcio6

Member
Joined
Sep 26, 2009
Messages
143
Solutions
4
Reaction score
15
Hi
I have some problem with magdefense="1.0" in vocations.xml becouse i dont know how it works.I test it on spells/runs/wand and whatever i changed it doesnt give anything im using tfs 0.3.6pl1
sorry for my poor english and if i place it in a wrong place than sorry.
 
spell
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat,  COMBAT_FORMULA_LEVELMAGIC, -0.2, 0, -0.2, 0)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

and vocation
Code:
    <vocation id="3" name="Son Goku" description="a son goku" needpremium="0" gaincap="157" gainhp="250" gainmana="200" gainhpticks="2" gainhpamount="500" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.1" attackspeed="1700" soulmax="200" gainsoulticks="2" fromvoc="1">
        <formula meleeDamage="15.0" distDamage="13.0" wandDamage="1.0" magDamage="12.5" magHealingDamage="1.0" defense="50.0" magdefense="2.0" armor="5.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
 
i was changing magdefense="2.0" to 5.0/50.0/100.0 even on 100000 and every time player get same dmg. Maybe i need the special item with magdefense like with defense and armor?
 
i was changing magdefense="2.0" to 5.0/50.0/100.0 even on 100000 and every time player get same dmg. Maybe i need the special item with magdefense like with defense and armor?
Most likely, MagDefense I think is like resistence to earth/fire/shock etc. And You'd be best trying it out with like the lightening set or something.
 
Back
Top