Ü Pendragon
Member
- Joined
- Apr 10, 2017
- Messages
- 51
- Reaction score
- 6
Hello everyone. Could someone help me with this, I want to make a 10% bonus for having a client 12 and a 10% bonus for having a premium. But I think that the 2 codes collapse, the percentage does not give well it is disproportionate. Because if I remove 1 the other works fine. Thanks in advance
Lua:
-- Client 12 Bonus Experience
local clientVersion = self:getClient().version
if clientVersion >= 1200 then
exp = exp * 1.1
end
-- Apply extra experience to Premium account
if self:isPremium() then
exp = exp * 1.1
end