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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 04-02-2011, 05:55 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

This should work, though I didn't actually test it:

File Name: player.pl - Save this in the zone folder you want to adjust weather for
Code:
sub EVENT_ENTERZONE {

	# Set the type of weather desired here
	my $weathertype = 1;	# 0 for none, 1 for rain, 2 for snow
	
	# Check if weather is not already set to the desired type
	if ($zoneweather != $weathertype)
	{
		my $Rain = 1;
		my $Snow = 2;
		if ($weathertype == $Rain)
		{
			# Turn off snow (if it is on) and turn on rain
			quest::snow(0);
			quest::rain(1);
		}
		elsif ($weathertype == $Snow)
		{
			# Turn off rain (if it is on) and turn on snow
			quest::rain(0);
			quest::snow(1);
		}
		else
		{
			# Turn off both snow and rain
			quest::rain(0);
			quest::snow(0);
		}
	}

}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
 


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 10:08 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