• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

how to change premium days value?

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
47
hi, im using default premium days system, but i have problem. I have teleport to pacc area, and it working cuz i dont have premium days and i can't go, in database "premium_end_at" have value 0, in config lua free premium = false, but when im login to game, in character window i see:

1655569145858.png

How it possible?
 
hi, im using default premium days system, but i have problem. I have teleport to pacc area, and it working cuz i dont have premium days and i can't go, in database "premium_end_at" have value 0, in config lua free premium = false, but when im login to game, in character window i see:

View attachment 68663

How it possible?
talkactions
To change the number of days
premium = true
 
apply these changes and recompile:

to fix display number
Is it possible to do this calculation by rounding up?

in this calculation, it will always show 1 day less than you have, as the system rounds down, like buying 90 days, when you log in, it will show 89 days, as it is calculated in timestamp seconds, that is , when you buy 1 day, 1 second has passed and you no longer have 1 day, but 23 hours, 59 minutes and 59 seconds.

and when there is less than 24 hours left for premium, it will show as free account instead of showing 1 day left.

haha, I don't know if I was able to express myself correctly, in short, when buying 90 days, it will show 90!
Even if the calculation is 89 days, 23 hours, 59 minutes and 59 seconds, showing 89 days on the client.
 
Is it possible to do this calculation by rounding up?

in this calculation, it will always show 1 day less than you have, as the system rounds down, like buying 90 days, when you log in, it will show 89 days, as it is calculated in timestamp seconds, that is , when you buy 1 day, 1 second has passed and you no longer have 1 day, but 23 hours, 59 minutes and 59 seconds.

and when there is less than 24 hours left for premium, it will show as free account instead of showing 1 day left.

haha, I don't know if I was able to express myself correctly, in short, when buying 90 days, it will show 90!
Even if the calculation is 89 days, 23 hours, 59 minutes and 59 seconds, showing 89 days on the client.
I totally got what you mean :D but yeah, that is how cipsoft does it
 
Back
Top