Jabbawack
Writer / Mapper / Artist
Hello, thank you for taking a look at my request.
I would like to request if someone could script a vocational promotion tree NPC.
Basically, it's when you go get a promotion from an NPC, and instead of being promoted to one vocation above the previous one, you have the option to choose between several vocations.
For example:
.....__Warrior__
....|...............|
Paladin......Barbarian
MindRage took the liberty of creating a rough draft of something that may help with the script, so use this at your own will, if it can help create this script. Honestly, since I'm not much of a scripter, I don't know exactly what to do with it.
If anyone thinks that they are skilled enough to do this, much would be appreciated, and I will rep+. (Plus mention your name in server credits)
Thank-you for your time,
~Jabba
I would like to request if someone could script a vocational promotion tree NPC.
Basically, it's when you go get a promotion from an NPC, and instead of being promoted to one vocation above the previous one, you have the option to choose between several vocations.
For example:
.....__Warrior__
....|...............|
Paladin......Barbarian
MindRage took the liberty of creating a rough draft of something that may help with the script, so use this at your own will, if it can help create this script. Honestly, since I'm not much of a scripter, I don't know exactly what to do with it.
Code:
--Vocation IDs
local Apprentice = 1
local Wizard = 8
local Mage = 11
local VocationTree =
{
[Apprentice] = {Wizard, Mage};
}
function getAvailableVocationNames(vocation)
local t = {}
for id, data in pairs(VocationTree[vocation]) do
t:insert(getVocationName(vocation))
end
return t
end
function onEvent(cid, words)
local voc = getPlayerVocation(cid)
if VocationTree[voc] then
local x = getAvailableVocationNames(voc)
doSendPlayerMessage(cid, "You can be promoted to " .. x.Serialize());
else
--Vocation doesn't have any more promotions
doSendPlayerCancel(cid, "You already have the last promotion!");
end
end
If anyone thinks that they are skilled enough to do this, much would be appreciated, and I will rep+. (Plus mention your name in server credits)
Thank-you for your time,
~Jabba
Last edited: