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

Lua Profession

jazonas

New Member
Joined
Apr 30, 2011
Messages
9
Reaction score
0
Hey. I've got a problem with script. I wrote this:
LUA:
if (getPlayerVocation(cid) == 4) and (getPlayerStorageValue(cid,1020) == 14) then
		doPlayerSetVocation(cid,12)
end
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
 
Thank You very much. :)

edit:
One more question. How to change profession which be after promotion? I've tried sth and:
19:58 You see yourself. You are a .
[13/01/2013 19:58:48] [Warning - Vocations::getVocation] Vocation 4294967295 not found.
 
Last edited:
Thank You very much. :)

edit:
One more question. How to change profession which be after promotion? I've tried sth and:
19:58 You see yourself. You are a .
[13/01/2013 19:58:48] [Warning - Vocations::getVocation] Vocation 4294967295 not found.

vocations.xml

Code:
fromvoc="1"

1=sorcerer from sorcerer to master sorcerer. Simple Logic.
 
Back
Top