TibiaGameHost
Hello!
Hi All
I need someone who understands even help me in modifying this script.
The script works normally, but if the player is "Promotion = 1" in the database, the call does not change, it only changes if promotion is 0.
I want it to work the two methods, both with promotion 1 as much as 0 if the player is VIP, which change anyway, understand me?!
REP ++
I need someone who understands even help me in modifying this script.
function onLogin(cid)
if vip.hasVip(cid) == TRUE then
if(isInArray({1, 2, 3, 4}, getPlayerVocation(cid))) then
doPlayerSetVocation(cid,getPlayerVocation(cid)+12)
end
elseif vip.hasVip(cid) == FALSE and vip.getVip(cid) == 0 then
if(isInArray({13, 14, 15, 16}, getPlayerVocation(cid))) then
doPlayerSetVocation(cid,getPlayerVocation(cid)-12)
end
end
return TRUE
end
The script works normally, but if the player is "Promotion = 1" in the database, the call does not change, it only changes if promotion is 0.
I want it to work the two methods, both with promotion 1 as much as 0 if the player is VIP, which change anyway, understand me?!
REP ++