Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. /*
  2. ##################### DYNAMIC MARKET SCRIPT #####################
  3. ### AUTHOR: RYAN TT. ###
  4. ### STEAM: www.steamcommunity.com/id/ryanthett ###
  5. ### ###
  6. ### DISCLAIMER: THIS SCRIPT CAN BE USED ON EVERY SERVER ONLY ###
  7. ### WITH THIS HEADER / NOTIFICATION ###
  8. #################################################################
  9. */
  10.  
  11. while {true} do {
  12. sleep (DYNMARKET_PriceUpdateInterval*60);
  13. [[0],"life_fnc_update",true,false] spawn life_fnc_MP;
  14. sleep 5;
  15. [] spawn TON_fnc_calculatePrices;
  16. DYNMARKET_UpdateCount = DYNMARKET_UpdateCount + 1;
  17. if ((DYNMARKET_UpdateCount==DYNMARKET_CreateBackupInterval)&&DYNMARKET_CreateBackups) then {
  18. [] spawn {
  19. DYNMARKET_UpdateCount = 0;
  20. [0] call TON_fnc_HandleDB; // Call the Database and update the prices in the DB
  21. };
  22. };
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement