mrlongshen 22 Posted April 15, 2015 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." Quote Share this post Link to post Share on other sites
0 JoyRo 5 Posted December 28, 2015 That would be an awsome script had any reply's? Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted January 21, 2016 no one is replying hehe Quote Share this post Link to post Share on other sites
0 RodRich 6 Posted January 21, 2016 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?! Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted January 22, 2016 @@RodRich haha just simple, i req for auto weather changer. hehe Quote Share this post Link to post Share on other sites
0 JoyRo 5 Posted January 22, 2016 Take something like prontera. Quote Share this post Link to post Share on other sites
0 RodRich 6 Posted January 22, 2016 @@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; } Quote Share this post Link to post Share on other sites
0 JoyRo 5 Posted March 30, 2016 [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; Quote Share this post Link to post Share on other sites
0 RodRich 6 Posted March 30, 2016 [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 Quote Share this post Link to post Share on other sites
0 JoyRo 5 Posted March 30, 2016 - 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 ^^ Quote Share this post Link to post Share on other sites
0 RodRich 6 Posted March 30, 2016 - 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; Quote Share this post Link to post Share on other sites
Hi there someone can help me making a weather change every hour or can customize which hour ?
Share this post
Link to post
Share on other sites