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

problem with vocation

Ralfegor

New Member
Joined
Apr 6, 2008
Messages
297
Reaction score
1
i added 4 new vocations

voc IDs 9,10,11 and 12

but when i change to one of those new vocations i look to myself and

Code:
12:44 You see yourself.[COLOR="Red"] You are .[/COLOR] You are pact of the devil of the War of hell.

and in the .exe says a error

Code:
[02/05/2009 12:44:18] Warning: [Vocations::getVocation] Vocation 4294967295 not found.

my new vocations

Code:
<vocation id="9" name="Master Sorcerer Jumper" description="a master sorcerer jumper" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="1" gainmanaamount="15" manamultiplier="1.1" attackspeed="1000" soulmax="350" gainsoulticks="8" fromvoc="9">
		<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="10" name="Elder Druid Jumper" description="an elder druid jumper" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="1" gainmanaamount="20" manamultiplier="1.1" attackspeed="1000" soulmax="350" gainsoulticks="8" fromvoc="10">
		<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="11" name="Royal Paladin Jumper" description="a royal paladin jumper" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="15" gainmanaticks="3" gainmanaamount="15" manamultiplier="1.4" attackspeed="1000" soulmax="350" gainsoulticks="8" fromvoc="11">
		<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="12" name="Elite Knight Jumper" description="an elite knight jumper" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="15" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="1000" soulmax="350" gainsoulticks="8" fromvoc="12">
		<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>
</vocations>
 
Try these;

Code:
<vocation id="23" name="Super Knight" description="a super knight" gaincap="40" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="10" gainmanaamount="60" manamultiplier="3.0" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="0">
		<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="22" name="Super Paladin" description="a super paladin" gaincap="30" gainhp="10" gainmana="20" gainhpticks="7" gainhpamount="35" gainmanaticks="15" gainmanaamount="60" manamultiplier="1.4" attackspeed="300" soulmax="200" gainsoulticks="15" fromvoc="0">
		<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="21" name="Super Druid" description="a super druid" gaincap="20" gainhp="5" gainmana="30" gainhpticks="8" gainhpamount="25" gainmanaticks="8" gainmanaamount="85" manamultiplier="1.1" attackspeed="600" soulmax="200" gainsoulticks="15" 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="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="20" gainhp="5" gainmana="30" gainhpticks="7" gainhpamount="12" gainmanaticks="8" gainmanaamount="85" manamultiplier="1.1" attackspeed="600" soulmax="200" gainsoulticks="15" 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>
 
@grehy
whats the difference? the voc id and fromvoc= 0?

i have a problem when i put fromvoc to the vocation that comes before when i log out and then log in it change the vocation to fromvoc vocation why? someone help please?
 
Promote players with function "setPlayerPromotionLevel(cid, x)" not with "setPlayerVocation(cid, x)

1 = first promotion {Master Sorcerer, Elder Druid, Royal paladin, Elite Knight} (First four)
2 = second promotion {Master Sorcerer Jumper.. bla bla bla} (Second Four)
3 = third promotion {bla bla bla} (Third four)... and so on....
 
ohhhh thanks man i think thats the problem, but i dont have "setPlayerPromotionLevel" you sure thats the function?

ok i put it like this setPlayerPromotionLevel(mostDamageKiller, 6) so now its going to change to promotion level of 6 (Elder Druid Jumper) ?
 
Last edited:
nvm is setPlayerPromotionLevel(mostDamageKiller, 2) but i cant do this setPlayerPromotionLevel(mostDamageKiller, -1) how can i set the promotion vocation -1?
 
to promote from master sorcerer to mastersorcerer jumper use this:
Code:
setPlayerPromotionLevel(mostDamageKiller, 2)

to set from master sorcerer jumper to master sorcerer use this:
Code:
setPlayerPromotionLevel(mostDamageKiller, 1)
 
i can't set master sorcerer jumper to master sorcerer :( i tried like u said
Code:
setPlayerPromotionLevel(mostDamageKiller, 1)

tried with talkaction too

Code:
function onSay(cid, words, param)
         setPlayerPromotionLevel(cid, 1)
return TRUE
end
 
Back
Top Bottom