Events on my habbo retro

Spookyboy3000

Member
Apr 28, 2020
42
6
Turn on the scheduler for MySQL and if you're using Navicat there is an event building window you can define how often it runs
But if i do:

UPDATE users SET vip_points = vip_points + '100' WHERE online = '1'

and i do that every minute, then it adds up on the website if i resfresh but not in the client. And if i close the client and i refresh the website, then my diamonds that were add up by that event are gone
 

JayC

Always Learning
Aug 8, 2013
5,505
1,401
You can't update someone's VIP points from the database while the emulator is running. You have to have the enulator give the rewards. If you're using plus this should already be implemented.
 

Spookyboy3000

Member
Apr 28, 2020
42
6
but if i do:

UPDATE users SET vip_points = vip_points + '100'

it works perfect but then the people who are offline, also gets diamonds
Post automatically merged:

Code:
SET GLOBAL event_scheduler = ON;
2) Open Navicat and go to the events tab, create a new event that executes every x minutes and set the definition as:
Code:
UPDATE users SET vip_points = vip_points + 1 WHERE online = '1';
Post automatically merged:

That is what i did
 

Parsov

Member
May 18, 2016
315
206
but if i do:

UPDATE users SET vip_points = vip_points + '100'

it works perfect but then the people who are offline, also gets diamonds
Post automatically merged:

Code:
SET GLOBAL event_scheduler = ON;
2) Open Navicat and go to the events tab, create a new event that executes every x minutes and set the definition as:
Code:
UPDATE users SET vip_points = vip_points + 1 WHERE online = '1';
Post automatically merged:

That is what i did

The emulator saves everything when a user goes offline or when the server is shut off.
What you could do is if you want users to get points every x minutes you should look into the game cycle and just a code timer into it.
And send user a composer when the timer reaches for example 15 minutes.

And the user will see their currency go up.
 

Users who are viewing this thread

Top