Hermes
dziwki kola gramy w lola
Hi there!
I have something like this:
blah blah
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.
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: