Jump to content

Question

Hi there someone can help me making a weather change every hour or can customize which hour ?

 

snow: "Makes all maps to have the snow weather effect."
clouds: "Makes all maps to have the cloudy weather effect."
clouds2: "Makes all maps to have another cloudy weather effect."
fog: "Makes all maps to have the fog weather effect."
fireworks: "Makes all maps to have the fireworks weather effect."
sakura: "Makes all maps to have the sakura weather effect."
leaves: "Makes all maps to have the leaves weather effect."

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

no one is replying hehe

 

Haha, I had follow this topic when I had not much kwnon about!! =D

 

Tell me which maps do you want these effects, and do you want it get a weather random every hour?!

Share this post


Link to post
Share on other sites
  • 0

@@RodRich haha just simple, i req for auto weather changer. hehe

 

Take something like prontera.

 

 

Ok...that's is simple

 

I didn't test it, try it and tell me if that works

 

 

-	script	AutoWeather	-1,{

OnInit:
	.weathermaps$[0],"Prontera"; //Add here the maps you want
	end;

OnMinute13: //Every hour on this minute the weather will change randomly
	.@effect = rand(1,7);
	for(set .@r,0; .@r<getarraysize(.weathermaps$); .@r++){
		switch(.@effect){
			case 1: setmapflag .weathermaps$[.@r],mf_snow;
			case 2: setmapflag .weathermaps$[.@r],mf_clouds;
			case 3: setmapflag .weathermaps$[.@r],mf_clouds2;
			case 4: setmapflag .weathermaps$[.@r],mf_fog;
			case 5: setmapflag .weathermaps$[.@r],mf_fireworks;
			case 6: setmapflag .weathermaps$[.@r],mf_sakura;
			case 7: setmapflag .weathermaps$[.@r],mf_leaves;
		}
	}
	end;

}

Share this post


Link to post
Share on other sites
  • 0
[Error]: script error in file '#.txt' line 4 column 2

    parse_line: expect command, missing function name or calling undeclared function

     1: {

     2:

     3: OnInit:

*    4:         .weathermaps$[0],"Prontera"; //Add here the maps you want

        ~~~~~~~~^

     5:         end;

Share this post


Link to post
Share on other sites
  • 0

 

[Error]: script error in file '#.txt' line 4 column 2
    parse_line: expect command, missing function name or calling undeclared function
     1: {
     2:
     3: OnInit:
*    4:         .weathermaps$[0],"Prontera"; //Add here the maps you want
        ~~~~~~~~^
     5:         end;

 

Lol... I'm sorry...

 

Just change this line:

	.weathermaps$[0],"Prontera"; //Add here the maps you want

to:

	setarray .weathermaps$[0],"Prontera"; //Add here the maps you want

Share this post


Link to post
Share on other sites
  • 0
-	script	AutoWeather	-1,{

OnInit:
	setarray .weathermaps$[0],"prontera"; //Add here the maps you want
	end;

OnMinute13: //Every hour on this minute the weather will change randomly
OnMinute51: //Every hour on this minute the weather will change randomly
	.@effect = rand(1,7);
	for(set .@r,0; .@r<getarraysize(.weathermaps$); .@r++){
		switch(.@effect){
			case 1: setmapflag .weathermaps$[.@r],mf_snow;
			    announce "The snow is falling from the sky!",bc_blue|bc_all;
			case 2: setmapflag .weathermaps$[.@r],mf_clouds;
			    announce "The clouds are gathering!",bc_blue|bc_all;
			case 3: setmapflag .weathermaps$[.@r],mf_clouds2;
			    announce "The clouds are gathering!",bc_blue|bc_all;
			case 4: setmapflag .weathermaps$[.@r],mf_fog;
			    announce "The fog is rising",bc_blue|bc_all;
			case 5: setmapflag .weathermaps$[.@r],mf_fireworks;
			    announce "The fireworks are shooting in the sky!",bc_blue|bc_all;
			case 6: setmapflag .weathermaps$[.@r],mf_sakura;
			    announce "The sakura is falling",bc_blue|bc_all;
			case 7: setmapflag .weathermaps$[.@r],mf_leaves;
			    announce "The leaves are falling down",bc_blue|bc_all;
		}
	}
	end;

}

Soon as the event starts it activates like 4 of those weather types at the same time ^^

Share this post


Link to post
Share on other sites
  • 0

 

-	script	AutoWeather	-1,{

OnInit:
	setarray .weathermaps$[0],"prontera"; //Add here the maps you want
	end;

OnMinute13: //Every hour on this minute the weather will change randomly
OnMinute51: //Every hour on this minute the weather will change randomly
	.@effect = rand(1,7);
	for(set .@r,0; .@r<getarraysize(.weathermaps$); .@r++){
		switch(.@effect){
			case 1: setmapflag .weathermaps$[.@r],mf_snow;
			    announce "The snow is falling from the sky!",bc_blue|bc_all;
			case 2: setmapflag .weathermaps$[.@r],mf_clouds;
			    announce "The clouds are gathering!",bc_blue|bc_all;
			case 3: setmapflag .weathermaps$[.@r],mf_clouds2;
			    announce "The clouds are gathering!",bc_blue|bc_all;
			case 4: setmapflag .weathermaps$[.@r],mf_fog;
			    announce "The fog is rising",bc_blue|bc_all;
			case 5: setmapflag .weathermaps$[.@r],mf_fireworks;
			    announce "The fireworks are shooting in the sky!",bc_blue|bc_all;
			case 6: setmapflag .weathermaps$[.@r],mf_sakura;
			    announce "The sakura is falling",bc_blue|bc_all;
			case 7: setmapflag .weathermaps$[.@r],mf_leaves;
			    announce "The leaves are falling down",bc_blue|bc_all;
		}
	}
	end;

}
Soon as the event starts it activates like 4 of those weather types at the same time ^^

I see... just put an "end" at every cases, above the announce. Like this:

 

case 1: setmapflag .weathermaps$[.@r],mf_snow;
			    announce "The snow is falling from the sky!",bc_blue|bc_all;
end;

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.