• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Requesting Second Promotion Script

Naxtie

mapper, designer
Joined
Oct 15, 2011
Messages
1,565
Solutions
1
Reaction score
250
Location
Sweden
Looking for something like this.. The thing is, that this script seems to work but It just says "You are now ." and when you look at yourself it says "12:01 You see yourself. You are . You are Leader of the blablabla.
Anyone knows what's wrong? :p
And yes.. I added the vocations into vocations.xml.

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local a = getPlayerPromotionLevel(cid)
	if a == 0 then
		doPlayerSendCancel(cid, 'You need to be promoted in order to use this item.')
	elseif a == 2 then
		doPlayerSendCancel(cid, 'Your\'re already promoted!')
	else
		doPlayerSetPromotionLevel(cid, 2)
		doCreatureSay(cid, 'You are now ' .. getVocationInfo(getPlayerVocation(cid)).description .. '!', TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid)
	end
	return true
end

Or something like this... both scripts has the same problems.
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition) 
    if getPlayerVocation(cid) == 5 then 
        doPlayerSetVocation(cid, 9) 
        doCreatureSay(cid, "You are now a Epic Dark Wizard!", TALKTYPE_ORANGE_1) 
        doRemoveItem(item.uid, 1) 
    elseif getPlayerVocation(cid) == 6 then 
        doPlayerSetVocation(cid, 10) 
        doCreatureSay(cid, "You are now a Epic Divine Prophet!", TALKTYPE_ORANGE_1) 
        doRemoveItem(item.uid, 1) 
    elseif getPlayerVocation(cid) == 7 then 
        doPlayerSetVocation(cid, 11) 
        doCreatureSay(cid, "You are now a Epic Royal Assassin!", TALKTYPE_ORANGE_1) 
        doRemoveItem(item.uid, 1) 
    elseif getPlayerVocation(cid) == 8 then 
        doPlayerSetVocation(cid, 12) 
        doCreatureSay(cid, "You are now a Epic Furious Warrior!", TALKTYPE_ORANGE_1) 
        doRemoveItem(item.uid, 1) 
    else 
        doPlayerSendCancel(cid,"You need to be promoted in order to use this item.") 
    end 
end

Thanks in advance,
Naxtie
 
Last edited:
PHP:
<?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="1000" 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="Master Sorcerer" description="a wizard" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" 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="Elder Druid" description="an prophet" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" 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="Royal Paladin" description="an assassin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="15" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.4" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="4" name="Elite Knight" description="a warrior" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="15" gainmanaticks="2" gainmanaamount="20" manamultiplier="3.0" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="25">
		<formula meleeDamage="1.4" 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.1" fishing="1.1" experience="1.0"/>
	</vocation>

	<vocation id="5" name="Dark Wizard" description="a dark wizard" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" 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.30"/>
	</vocation>
	<vocation id="6" name="Divine Prophet" description="a divine prophet" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" 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.30"/>
	</vocation>
	<vocation id="7" name="Royal Assassin" description="a royal assassin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="15" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.4" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.30"/>
	</vocation>
	<vocation id="8" name="Furious Warrior" description="a furious warrior" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="15" gainmanaticks="2" gainmanaamount="20" manamultiplier="3.0" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="25">
		<formula meleeDamage="1.5" 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.1" fishing="1.1" experience="1.30"/>
	</vocation>
	
		<vocation id="9" name="Epic Dark Wizard" description="a epic dark wizard" needpremium="0" gaincap="15" gainhp="10" gainmana="40" gainhpticks="2" gainhpamount="100" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.1" attackspeed="800" soulmax="200" gainsoulticks="10" fromvoc="5" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" 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.30"/>
	</vocation>
	<vocation id="10" name="Epic Divine Prophet" description="a epic divine prophet" needpremium="0" gaincap="15" gainhp="10" gainmana="40" gainhpticks="2" gainhpamount="100" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.1" attackspeed="800" soulmax="200" gainsoulticks="10" fromvoc="6" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" 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.30"/>
	</vocation>
	<vocation id="11" name="Epic Royal Assassin" description="a epic royal assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="20" gainhpticks="2" gainhpamount="150" gainmanaticks="2" gainmanaamount="150" manamultiplier="1.4" attackspeed="800" soulmax="200" gainsoulticks="10" fromvoc="7" lessloss="25">
		<formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.30"/>
	</vocation>
	<vocation id="12" name="Epic Furious Warrior" description="a epic furious warrior" needpremium="0" gaincap="30" gainhp="20" gainmana="10" gainhpticks="1" gainhpamount="100" gainmanaticks="2" gainmanaamount="100" manamultiplier="3.0" attackspeed="800" soulmax="200" gainsoulticks="10" fromvoc="8" lessloss="25">
		<formula meleeDamage="1.5" 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.1" fishing="1.1" experience="1.30"/>
	</vocation>
</vocations>
 
Back
Top