how can i let new players after making account in account manager he have a promotion ?
local storage = --put any emty sotrage
function onlogin(cid)
if getPlayerStorageValue(cid,storage) < 0 then
doPlayerSetPromotionLevel(cid, 1)
setPlayerStorageValue(cid,storage,1)
end
return true
end
try searchin in movement.xml --> search for item id , you will find somthng like that under equip function , edit it to your desired vocationsalso how can i change the item vocation such as paladin armor i need make it also for sorcerer where i can do it ?
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
and still auto promotion not workinglocal storage = --put any emty sotrage
function onlogin(cid)
if getPlayerStorageValue(cid,storage) < 0 then
doPlayerSetPromotionLevel(cid, 1)
setPlayerStorageValue(cid,storage,1)
end
return true
end
<event type="login" name="balance" event="script" value="xxxx.lua"/>
local storage = --put any emty sotrage
if getPlayerStorageValue(cid,storage) < 0 then
doPlayerSetPromotionLevel(cid, 1)
setPlayerStorageValue(cid,storage,1)
end
return true
end