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

TFS 0.4 no vocation when add level

TomBartezz

Member
Joined
May 29, 2016
Messages
159
Reaction score
17
Hi I use these 2 scripts to balance monsters and such but when I use it, my vocation resets to no vocation how would i fix this?, For example I am a druid that uses the item and get back to lvl 1 but then I am a no vocation, i want to keep my druid as a druid and my knight as knight ect.. Also I would like to have the players to still have the same amount of hp/mp when they level down to a certain level or level up to a certain level. thanks
Code:
function onUse(cid, item, frompos, item2, topos)
     doPlayerAddLevel(cid,19)
     doCreatureSay(cid, "You are now level: ".. getPlayerLevel(cid) .."!!!" ,19)
     doSendMagicEffect(getPlayerPosition(cid), 40)
    
 
  end
Code:
function onUse(cid, item, frompos, item2, topos)
     doPlayerAddLevel(cid,19)
     doCreatureSay(cid, "You are now level: ".. getPlayerLevel(cid) .."!!!" ,19)
     doSendMagicEffect(getPlayerPosition(cid), 40)
    
 
  end
Vocations.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
        <vocation id="0" name="None" description="none" needpremium="0" 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" attackable="no">
                <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
                <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
        </vocation>
        <vocation id="1" name="Sorcerer" description="a Wizard" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="550" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
                <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
                <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
                </vocation>
        <vocation id="2" name="Druid" description="a Priest" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="550" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
                <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
                <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
        </vocation>
        <vocation id="3" name="Paladin" description="an Assassin" needpremium="0" gaincap="20" gainhp="8" gainmana="25" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="200" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
                <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
                <skill fist="1.2" club="1.8" sword="1.8" axe="1.8" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
        </vocation>
        <vocation id="4" name="Knight" description="a Warrior" needpremium="0" gaincap="25" gainhp="18" gainmana="6" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="200" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
                <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
                <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.7" fishing="1.1" experience="1.0"/>
        </vocation>
</vocations>
 
Back
Top