• 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] Change Vocation By Clicking an item

Status
Not open for further replies.

alexkb

New Member
Joined
Aug 8, 2008
Messages
14
Reaction score
0
I've looked for a few hours using the search function and I have failed to locate a script that does what I need. I'm trying to add a quest for my server that allows a person to click on a fixed item(ie. an arbalest for a paladin) and have it change their class to my 2ndary vocations. I know it is possible but unfortunately I am unaware of how to manipulate lua in such a way. Any help you can offer would be greatly appreciated. Thanks.
 
Tip

Code:
voc = getPlayerVocation(cid)
if voc == 1 then --Is sorcerer
doPlayerSetVocation(cid,5) -- new sorcerer vocation
elsif voc == 2 then -- is druid
doPlayerSetVocation(cid,6) -- new druid vocation
elsif voc == 3 then -- is paladin
doPlayerSetVocation(cid,7) -- new paladin vocation
elsif voc == 4 then -- is knight
doPlayerSetVocation(cid,8) -- new knight vocation
else
doPlayerSendTextMessage(cid,19,"INVALID VOCATION")
end
 
Status
Not open for further replies.
Back
Top