gohamvsgoku
Member
- Joined
- Aug 21, 2017
- Messages
- 151
- Reaction score
- 9
my script on login.lua
Script
when the player is premium account and has promotion, when he gets free account, he loses the promotion right!, but my problem if he purchases premium account again he continues without the promotion which he bought before. how can i fix this problem?
Script
LUA:
-- Promotion
if player:isPremium() then
if player:getVocation():getId() ~= 0 and player:getVocation():getId() < 5 and player:getStorageValue(30018) == 1 then
player:setVocation(player:getVocation():getId() + 4)
end
else
if player:getVocation():getId() ~= 0 and player:getVocation():getId() > 4 then
player:setVocation(player:getVocation():getId() - 4)
end
end
when the player is premium account and has promotion, when he gets free account, he loses the promotion right!, but my problem if he purchases premium account again he continues without the promotion which he bought before. how can i fix this problem?