Caduceus
Unknown Member
- Joined
- May 10, 2010
- Messages
- 321
- Solutions
- 2
- Reaction score
- 24
Having an issue that I can't seem to figure out. The section quoted above is not registering. I am getting no errors in console. I have tried using else if as well, but no luck.if self:getStorageValue(1234) >= os.time() then
exp = exp * 4.0 * Game.getExperienceStage(self:getLevel())
end
Code:
function Player:onGainExperience(source, exp, rawExp)
if self:isVip() then
return exp * 2.0 * Game.getExperienceStage(self:getLevel())
else
exp = exp * Game.getExperienceStage(self:getLevel())
end
if self:getStorageValue(1234) >= os.time() then
exp = exp * 4.0 * Game.getExperienceStage(self:getLevel())
end
return exp
end