• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Avesta] Help with script

Veterana

Oldschool Player
Joined
May 4, 2010
Messages
194
Reaction score
7
Can someone help me with this promotion script?

I want it to check if the player is allready promoted and if he is, it should not promote him.
Also, if the player has "No Vocation" it should not promote him.

It should also check if the player is level 20 or higher.

Someone got the skills to add this into the script? Thank you!


--- Written by X_anero
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2279 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2279)
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"You just got Promoted!.")
end
end
 
Back
Top