TibiaGameHost
Hello!
Hello everybody.
I have a problem here, I have a system of buying for my VIP site, the VIP arrives, if the player is normal vocation, vocation VIP is changed, if the player is calling with the Vocation promotion of it disappears, so I need a help, how to change the promotion at the VIP database, instance, when you buy VIP promotion change to 0 and then put the new vocation.
help me.
Script for change vocation after activate vip
I need to run a command that changes the player's promotion to 0, why I created this vocation only takes 0 with promotion, thanks
I have a problem here, I have a system of buying for my VIP site, the VIP arrives, if the player is normal vocation, vocation VIP is changed, if the player is calling with the Vocation promotion of it disappears, so I need a help, how to change the promotion at the VIP database, instance, when you buy VIP promotion change to 0 and then put the new vocation.
help me.
Script for change vocation after activate vip
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
I need to run a command that changes the player's promotion to 0, why I created this vocation only takes 0 with promotion, thanks