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

[Request] VIP Vocations

exique

Natala-ot.com
Joined
Sep 28, 2008
Messages
1,673
Reaction score
25
Location
Sweden
This is a request for VIP Vocations.
Like a vocation that you can buy from a special npc :p
And so they could use all weapons.
HelP! :)
 
Update vocation ID arrays in functions isSorcerer, isDruid, isPaladin and isKnight in your data/global.lua (TFS 0.2.x) or data/lib/function.lua (TFS 0.3.x)

For example:
Code:
function isSorcerer(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isSorcerer: Player not found.")
		return false
	end

	return (isInArray({1,5[B][COLOR="red"],9[/COLOR][/B]}, getPlayerVocation(cid)) == TRUE)
end

function isDruid(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isDruid: Player not found.")
		return false
	end

	return (isInArray({2,6[COLOR="red"][B],10[/B][/COLOR]}, getPlayerVocation(cid)) == TRUE)
end

function isPaladin(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isPaladin: Player not found.")
		return false
	end

	return (isInArray({3,7[COLOR="red"][B],11[/B][/COLOR]}, getPlayerVocation(cid)) == TRUE)
end

function isKnight(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isKnight: Player not found.")
		return false
	end

	return (isInArray({4,8[COLOR="Red"][B],12[/B][/COLOR]}, getPlayerVocation(cid)) == TRUE)
end
 
I FINALLY SOLVED THAT PROBLEM :D, AND I WILL SHARE THE SOLUTION....

IN YOUR VOCATIONS.XML YOU FIND THAT

<!--
NEW VOCATIONS FOR DEFAULT(EXAMPLE)
-->

ONLY REMOVE THAT ARROWS AND JOIN ALL THE SCRIPT AS JUST IT IS

AND OTHER THING, EXAMPLE: YOUR NEW VOC IS ID="9" , WELL, IN THAT PARAGRAPH
SEARCH THIS WORD ( fromvoc=" " ) AND WRITE THIS ( fromvoc="9" )

NOW YOU HAVE A NEW AND INDEPENDENT VOCATION (REMEMBER DO ALL THE CONFIGURATIONS POSTED IN THIS TOPIC )

IS POSIBLE DO A PROMOTION TO YOUR NEW VOC

AND SO I SOLVE MY UGLY PROBLEM :)
 
me have the same problem i find somthing that:

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerPromotionLevel(cid) == 1 then
doPlayerSetPromotionLevel(cid, 2)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are now a " ..getPlayerVocationName(cid).. "!")
end
return true
end

but i dont know where i must copy this
 
Back
Top