Reyn
On to the next One
Hey Guys
i found this Script in my old server and want to release it.
promotion.lua:
actions.xml:
It's a very simple script, so easy to edit
Hope u like it
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"/>
Hope u like it