5. Incomplete Problem Description:
- Post as much useful information as possible. If the problem is about something on your server, post the server version and client version. Also always post the errors you get and the scripts with the problems.
local config = {
minLevel = 20,
message = "You have been promoted to a ",
messageType = MESSAGE_INFO_DESCR
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= config.minLevel then
local voc = getPlayerVocation(cid) + 4
doPlayerSetVocation(cid, voc)
doPlayerSendTextMessage(cid, config.messageType, config.message .. getVocationInfo(voc).name)
end
return true
end