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

Action Second Promo Scroll

Reyn

On to the next One
Joined
May 15, 2010
Messages
259
Reaction score
1
Location
Germany ;3
Hey Guys :)
i found this Script in my old server and want to release it.
promotion.lua:
Code:
local mageffect = 55 
local level = 1 

function onUse(cid, item, fromPosition, itemEX, toPosition)
    local voc = getPlayerVocation(cid)
    local vocname = getPlayerVocationName(cid)
    if(getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <= 8 and getPlayerLevel(cid) >= level) then
        setPlayerPromotionLevel(cid, 2)
        local vocnamenew = getPlayerVocationName(cid)
        doSendMagicEffect(getCreaturePosition(cid), mageffect)
        doPlayerSendTextMessage(cid,19, "You have been promoted from "..vocname.." to "..vocnamenew.."!")
        doRemoveItem(item.uid, 1)
    else
        doPlayerSendCancel(cid, "Your vocation may not use this scroll.")
    end
    return TRUE
end

actions.xml:
Code:
	<action itemid="5952" event="script" value="promotion.lua"/>
It's a very simple script, so easy to edit :)
Hope u like it
 
Lua:
setPlayerPromotionLevel(cid, 2)
to
Lua:
setPlayerPromotionLevel(cid, getPlayerPromotionLevel(cid)+1)
 
Lua:
local mageffect = 55 
local level = 1 

function onUse(cid, item, fromPosition, itemEX, toPosition)
    local voc = getPlayerVocation(cid)
    local vocname = getPlayerVocationName(cid)
    if(getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <= 8 and getPlayerLevel(cid) >= level) then
        setPlayerPromotionLevel(cid, getPlayerPromotionLevel(cid)+1)
        local vocnamenew = getPlayerVocationName(cid)
        doSendMagicEffect(getCreaturePosition(cid), mageffect)
        doPlayerSendTextMessage(cid,19, "You have been promoted from "..vocname.." to "..vocnamenew.."!")
        doRemoveItem(item.uid, 1)
    else
        doPlayerSendCancel(cid, "Your vocation may not use this scroll.")
    end
    return TRUE
end
 
How to make when player use second promotion to he get + one new Command !Kick
when player use it player get kick from the game..
And to player can't use it in fight!
 
How to make when player use second promotion to he get + one new Command !Kick
when player use it player get kick from the game..
And to player can't use it in fight!

It is called CTRL + Q :p

Otherwise make a talkaction
 
I need help it is not working, when I use the scroll it takes away my vocation it just says you are a. and I get an error in my console that looks like this
[15/06/2014 09:23:57] [Warning - Vocations::getVocation] Vocation 4294967295 not found.
 
I need help it is not working, when I use the scroll it takes away my vocation it just says you are a. and I get an error in my console that looks like this
[15/06/2014 09:23:57] [Warning - Vocations::getVocation] Vocation 4294967295 not found.
Don't use it with Admin character because it give this error
 
yes they are added into it exactly the same i did use on my admin and this happened how can i take it away form the admin?
 
Back
Top