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

Help solve problem

Glitzer

New Member
Joined
Mar 11, 2008
Messages
2
Reaction score
0
can anyone help me with a problem im having with promo npc?
k so heres problem: right now i got 3 vocs for each class and when you buy promo for knight you will be promoted to elite knight but since i have another voc after elite knight the player would just have to say "promotion" and then get the next promo for the same price and for being same level.

Is there a way to make the promo npc only let ppl lv 20+ have the first promo and ppl like... 100+ get 2nd promo from him?
btw im using the tfs promotion.lua for my promo npc

or is it possible to have an npc that when you talk to him he changes ur vocation id from what you are now to a new vocation id
 
He means like custom Promotions, like Sorcerer (First promo) -> Master Sorcerer (Second Promo) -> Wizard

For what you mean, you need to set up an if statement to check that, such as
Code:
if getmsgcontains(msg, "promotion") then
     if getPlayerLevel(cid) > 20 and <100 then
     [First_promotion_script]
elseif get msgcontains(msg, "promotion") then
     if getPlayerLevel(cid) > 100 then
     [Second_promotion_sciprt]
end
 
Back
Top