jornthomas
New Member
- Joined
- Dec 16, 2013
- Messages
- 14
- Reaction score
- 1
TFS 1.2
We have this function on our server, where you pull 1 of 3 levers to set a global storage in db where each lever has its dedicated storage number.
What we need, is a global event to check which of the global storages that have the highest value, eg:
Lever 1 = 3201
Lever 2 = 3202
Lever 3 = 3203
This global storage increase its storage value by +1 each time it is used, but somehow I need to get the highest value back to do an action in-game.
We have tried to wrap our heads around this, without getting anywhere, so we kind of have a blank sheet by now. Really hope that somebody out there get the thought and might point us in the right way.
This sql query:
returns this result:
In advance, thanks!
We have this function on our server, where you pull 1 of 3 levers to set a global storage in db where each lever has its dedicated storage number.
What we need, is a global event to check which of the global storages that have the highest value, eg:
Lever 1 = 3201
Lever 2 = 3202
Lever 3 = 3203
This global storage increase its storage value by +1 each time it is used, but somehow I need to get the highest value back to do an action in-game.
We have tried to wrap our heads around this, without getting anywhere, so we kind of have a blank sheet by now. Really hope that somebody out there get the thought and might point us in the right way.
This sql query:
Lua:
SELECT * FROM `global_storage` ORDER BY `key` DESC
In advance, thanks!
Last edited: