RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Weather.cs

Kons.snoK

Sorceror
Weather.cs

I started changing the weather of my shard, and i found this :

Code:
			for (int i = 0; i < 15; ++i)
				AddDynamicWeather(+15, 100, 5, 8, 400, 400, new Rectangle2D(0, 0, 5120, 4096));

Does the for have any sense? if no my suggestion is to remove it :)
Instead, if it has, please explain.. thanks.
 

Kamron

Knight
it should say

Code:
			for ( int i = 0; i < 15; ++i )
				AddDynamicWeather( [COLOR="Blue"]i[/COLOR]+15, 100, 5, 8, 400, 400, new Rectangle2D( 0, 0, 5120, 4096 ) );
 

krrios

Administrator
Kamron;819706 said:
it should say

Code:
			for ( int i = 0; i < 15; ++i )
				AddDynamicWeather( [COLOR="Blue"]i[/COLOR]+15, 100, 5, 8, 400, 400, new Rectangle2D( 0, 0, 5120, 4096 ) );

I don't think so.

The code seems to be fine: it creates 15 randomly located storm systems that move around the map.

The +15 is temperature where positive values cause rain and negative values cause snow.
 

Kons.snoK

Sorceror
krrios;819707 said:
I don't think so.

The code seems to be fine: it creates 15 randomly located storm systems that move around the map.

ah understood.
so basically this script makes 15 400x400 storms in a 5120x4096 map (that can held 131 storms).
Ok, thanks a lot :) sorry i posted in wrong place ;)
(I thought there was a global weather handling )
 
Top