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

[SOLVED] Need some help with using script by promoted vocations.

Hermes

dziwki kola gramy w lola
Joined
Nov 17, 2007
Messages
1,867
Reaction score
14
Location
Poland
Hi there!

I have something like this:

Code:
local trainers = {
	["Sorc Trainer"] = 1,
	["Druid Trainer"] = 2,
	["Pally Trainer"] = 3,
	["Kina Trainer"] = 4,
}

blah blah

Code:
	for trainer, vocation in pairs(trainers) do
				if getPlayerVocation(cid) == vocation then
					for action, position in pairs(positions) do
						if isPlayer(getThingfromPos(getCreaturePosition(cid)).uid) == TRUE then
							if item.actionid == action then
								doSummonCreature(trainer, position[1])
								doSummonCreature(trainer, position[2])
							break
							end
						end
					
					end
				end
	end

And if it comes to be launched by promoted character, then it doesn't summon monsters.

How to get it work for promoted vocations?

Regards,
Hermes

(note. this isn't complete script, I had posted just the part with which I have some problem, the rest doesn't matter)

@edit
Problem SOLVED. Used getPlayerVocationName instead of number.
 
Last edited:
?
Code:
local trainers = {
	["Sorc Trainer"] = 1,
	["Druid Trainer"] = 2,
	["Pally Trainer"] = 3,
	["Kina Trainer"] = 4,
	["Sorc Trainer"] = 5,
	["Druid Trainer"] = 6,
	["Pally Trainer"] = 7,
	["Kina Trainer"] = 8
}
 
Nope, it won't work. In the newest 0.3 there are no more 4+ vocs (only if some1 made new), now there is a row in database "promoted" 1/0.
 
I have to BÓMP it, sorry, but I have no idea, and this is one of the most needed script on my OTServer.
 
I said that I posted just piece of script that summons trainers. And this works only with non promoted characters. So I can't put there:
Code:
["Master Sorc Trainer"] = 5,
Because it won't work. There is no more vocations > 4.
 
Back
Top