Hello, here is a simple script I made which will promote players when they first login or if you add this to the server later when they login without the upgraded vocation.
Create a file in
Name it "PromoteVoc.lua" and put this in it:
Now save this and open
Put
somewhere in there.
Save it and reload creaturescripts/restart the server, the script should promote every new character to a higher vocation.
Please feel free to leave a response and to report and bugs.
Hiromath
Create a file in
Code:
/data/creaturescripts/scripts
Code:
-- Promotes Vocation On Login
-- Created by Hiromath
function onLogin(cid)
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
if getPlayerPromotionLevel(cid) ~= 1 then
setPlayerPromotionLevel(cid, 2)
end
end
return true
end
Now save this and open
Code:
/data/creaturescripts/creaturescripts.xml
Code:
<event type="login" name="PromoteVocation" event="script" value="PromoteVoc.lua"/>
Save it and reload creaturescripts/restart the server, the script should promote every new character to a higher vocation.
Please feel free to leave a response and to report and bugs.
Hiromath