Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2009, 11:53 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Well, with $zoneweather implemented you can use Perl to control the weather. We already had quest::rain(1/0) and quest::snow(1/0) to make it rain or snow, and now with a way to check to see if it is raining, snowing, or not an elementary Perl script can be written up to increase the chance of bad weather. Just make sure it's not raining/snowing, then acquire a number from the random generator (use that to specify the chance), then if the number is one you like, have it rain/snow. Set the whole thing on a timer with the time period of your choosing I could be wrong, but quest::snow(1) might also be able to make it snow in zones set to rain, and vice versa. That'll need to be tested. Likewise, it's plausible that you can set the weather column of a zone to 0 so that it doesn't rain/snow and use Perl to completely control the chance. Again, that'll need to be tested.

As much as I am on the Live Like mission, I feel stuff like this shouldn't be hardcoded because Perl is perfectly capable of handling it. Perl gives the OP freedom to do as they wish. Perhaps they want the weather to have a better chance of being clear at night, or perhaps a certain NPC in the zone increases or increases the risk of rain, etc.
Reply With Quote
  #2  
Old 06-11-2009, 12:11 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

I was hoping for something like that cavedude

BTW did you guys by chance have a way to make client to produce the FOG like its raining/snowing but wihout actual rain or snow? Just the fog?
I know I can set zone istelf to have low clip plane, but it would be nice to have just "fog" as posible weather codition
Reply With Quote
  #3  
Old 06-11-2009, 01:06 PM
Dibalamin
Hill Giant
 
Join Date: Dec 2007
Posts: 182
Default

What args does $zoneweather return? 0/1/2? or Rain/Snow/Clear?
__________________
Retired EMarr
Project1999 Developer
Reply With Quote
  #4  
Old 06-11-2009, 02:24 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

It returns the current weather condition which yes is 0 for none, 1 for rain, and 2 for snow.
Reply With Quote
  #5  
Old 04-25-2010, 05:40 PM
Drahkon
Fire Beetle
 
Join Date: Aug 2009
Location: South Carolina
Posts: 26
Default

To sum this up, if I wanted it to rain constantly in a zone, what would the perl script look like?
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 11:28 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3