Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2011, 07:38 PM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default weather timer in source code

I want to change the eqemu source code and recompile a server to include a different weather timer. I found :

weatherTime = (MakeRandomInt(1800, 7200) + 30) * 2000;

in the code, if i edit this would I be able to set the weather timer to much shorter?
Reply With Quote
  #2  
Old 04-15-2011, 07:59 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

Is there something stopping you from changing it and testing it?
Reply With Quote
  #3  
Old 04-15-2011, 08:05 PM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default

no haha, i just changed and tested it and it seems to work, but the only thing i dont quite understand is how that makerandomint command works, i couldnt find anything about it anywhere, im not sure why there was a +30 added and then it looks like the whole thing is multiplied by 2000? oh well it shouldnt be that hard to figure out but if anyone has some insight it would be awesome, thanks
Reply With Quote
  #4  
Old 04-15-2011, 08:11 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

MakeRandomInt makes a random int between two values(in this case 1800 and 7200). No idea why they add 30. The * 2000 is most likely because the calculation is in milliseconds or seconds.
Reply With Quote
  #5  
Old 04-15-2011, 08:21 PM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default

ahh i see, thanks a lot
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:37 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3