Hey. I've got a problem with script. I wrote this:
And there's a problem. When I log on it works but when i log off and log on again there's again vocation 4. I don't know why it happens. See ya.
Edit:
getPlayerStorageValue(cid,1020) == 14 is from reborn system
LUA:
if (getPlayerVocation(cid) == 4) and (getPlayerStorageValue(cid,1020) == 14) then
doPlayerSetVocation(cid,12)
end
Edit:
getPlayerStorageValue(cid,1020) == 14 is from reborn system