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

Account Manager- Question

Phemus

Member
Joined
Jun 16, 2012
Messages
149
Solutions
2
Reaction score
12
Hello! I have a question. I want that the account manager let you choose your vocations as promotions instead of the normal vocations. How can i do that?

For example:

What would you like to be... Master Sorcerer, Elder Druid, Royal Paladin, or Elite Knight.

Do i have to compile?

Thank you

- - - Updated - - -

bump..??
 
Last edited:
Use one script Onlogin <:
creaturescripts.xml
Lua:
<event type="login" name="promotion" event="script" value="promotion.lua"/>

promotion.lua
Lua:
function onlogin(cid)
if getPlayerStorageValue(cid,55555) < 0 then
   doPlayerSetPromotionLevel(cid, 1)
  setPlayerStorageValue(cid,55555,1)
end
return true
end

my script get function..
new players after making account in account manager he have a promotion
 
Thank you.... I put the function doPlayerSetPromotionLevel(cid, 1) on the script of the first items. Yours have an error that says:
[Warning - Event::loadScript] Event onLogin not found (data/creaturescripts/scripts/promotion.lua)

But thank you anyway :)
 
Back
Top Bottom