diff options
Diffstat (limited to 'npc/custom/Lance/FR_WeatherController.txt')
-rw-r--r-- | npc/custom/Lance/FR_WeatherController.txt | 415 |
1 files changed, 415 insertions, 0 deletions
diff --git a/npc/custom/Lance/FR_WeatherController.txt b/npc/custom/Lance/FR_WeatherController.txt new file mode 100644 index 000000000..b71a3062b --- /dev/null +++ b/npc/custom/Lance/FR_WeatherController.txt @@ -0,0 +1,415 @@ +//===== rAthena Script ======================================= +//= Weather Controller +//===== By: ================================================== +//= Lance +//===== Current Version: ===================================== +//= 1.0 +//===== Compatible With: ===================================== +//= rAthena SVN +//===== Description: ========================================= +//= controls the weather +//===== Additional Comments: ================================= +//= +//============================================================ + +- script dayNight -1,{ + end; + +OnInit: + if(gettime(3) > 7 && gettime(3) < 19) { + goto L_Day; + } else { + goto L_Night; + } + +L_Day: + day; + callfunc "RcloudFlag"; + end; + +L_Night: + night; + callfunc "cloudFlag"; + end; + +OnClock1900: + goto L_Night; + +OnClock0700: + goto L_Day; +} + +function script cloudFlag { + setmapflag "alb2trea",mf_clouds; + setmapflag "alberta",mf_clouds; + setmapflag "aldebaran",mf_clouds; + setmapflag "gef_fild00",mf_clouds; + setmapflag "gef_fild01",mf_clouds; + setmapflag "gef_fild02",mf_clouds; + setmapflag "gef_fild03",mf_clouds; + setmapflag "gef_fild04",mf_clouds; + setmapflag "gef_fild05",mf_clouds; + setmapflag "gef_fild06",mf_clouds; + setmapflag "gef_fild07",mf_clouds; + setmapflag "gef_fild08",mf_clouds; + setmapflag "gef_fild09",mf_clouds; + setmapflag "gef_fild10",mf_clouds; + setmapflag "gef_fild11",mf_clouds; + setmapflag "geffen",mf_clouds; + setmapflag "gl_church",mf_clouds; + setmapflag "gl_chyard",mf_clouds; + setmapflag "gl_knt01",mf_clouds; + setmapflag "gl_knt02",mf_clouds; + setmapflag "gl_step",mf_clouds; + setmapflag "glast_01",mf_clouds; + //setmapflag "hunter_1-1",mf_clouds; + //setmapflag "hunter_2-1",mf_clouds; + //setmapflag "hunter_3-1",mf_clouds; + setmapflag "izlude",mf_clouds; + setmapflag "job_thief1",mf_clouds; + //setmapflag "knight_1-1",mf_clouds; + //setmapflag "knight_2-1",mf_clouds; + //setmapflag "knight_3-1",mf_clouds; + setmapflag "mjolnir_01",mf_clouds; + setmapflag "mjolnir_02",mf_clouds; + setmapflag "mjolnir_03",mf_clouds; + setmapflag "mjolnir_04",mf_clouds; + setmapflag "mjolnir_05",mf_clouds; + setmapflag "mjolnir_06",mf_clouds; + setmapflag "mjolnir_07",mf_clouds; + setmapflag "mjolnir_08",mf_clouds; + setmapflag "mjolnir_09",mf_clouds; + setmapflag "mjolnir_10",mf_clouds; + setmapflag "mjolnir_11",mf_clouds; + setmapflag "mjolnir_12",mf_clouds; + setmapflag "moc_fild01",mf_clouds; + setmapflag "moc_fild02",mf_clouds; + setmapflag "moc_fild03",mf_clouds; + setmapflag "moc_fild04",mf_clouds; + setmapflag "moc_fild05",mf_clouds; + setmapflag "moc_fild06",mf_clouds; + setmapflag "moc_fild07",mf_clouds; + setmapflag "moc_fild08",mf_clouds; + setmapflag "moc_fild09",mf_clouds; + setmapflag "moc_fild10",mf_clouds; + setmapflag "moc_fild11",mf_clouds; + setmapflag "moc_fild12",mf_clouds; + setmapflag "moc_fild13",mf_clouds; + setmapflag "moc_fild14",mf_clouds; + setmapflag "moc_fild15",mf_clouds; + setmapflag "moc_fild16",mf_clouds; + setmapflag "moc_fild17",mf_clouds; + setmapflag "moc_fild18",mf_clouds; + setmapflag "moc_fild19",mf_clouds; + setmapflag "moc_pryd01",mf_clouds; + setmapflag "moc_pryd02",mf_clouds; + setmapflag "moc_pryd03",mf_clouds; + setmapflag "moc_pryd04",mf_clouds; + setmapflag "moc_pryd05",mf_clouds; + setmapflag "moc_pryd06",mf_clouds; + setmapflag "moc_prydb1",mf_clouds; + setmapflag "moc_ruins",mf_clouds; + setmapflag "morocc",mf_clouds; + //setmapflag "new_1-1",mf_clouds; + //setmapflag "new_1-2",mf_clouds; + //setmapflag "new_1-3",mf_clouds; + //setmapflag "new_1-4",mf_clouds; + setmapflag "pay_arche",mf_clouds; + setmapflag "pay_fild01",mf_clouds; + setmapflag "pay_fild02",mf_clouds; + setmapflag "pay_fild03",mf_clouds; + setmapflag "pay_fild04",mf_clouds; + setmapflag "pay_fild05",mf_clouds; + setmapflag "pay_fild06",mf_clouds; + setmapflag "pay_fild07",mf_clouds; + setmapflag "pay_fild08",mf_clouds; + setmapflag "pay_fild09",mf_clouds; + setmapflag "pay_fild10",mf_clouds; + setmapflag "pay_fild11",mf_clouds; + //setmapflag "priest_1-1",mf_clouds; + //setmapflag "priest_2-1",mf_clouds; + //setmapflag "priest_3-1",mf_clouds; + setmapflag "prontera",mf_clouds; + setmapflag "prt_are01",mf_clouds; + setmapflag "prt_fild00",mf_clouds; + setmapflag "prt_fild01",mf_clouds; + setmapflag "prt_fild02",mf_clouds; + setmapflag "prt_fild03",mf_clouds; + setmapflag "prt_fild04",mf_clouds; + setmapflag "prt_fild05",mf_clouds; + setmapflag "prt_fild06",mf_clouds; + setmapflag "prt_fild07",mf_clouds; + setmapflag "prt_fild08",mf_clouds; + setmapflag "prt_fild09",mf_clouds; + setmapflag "prt_fild10",mf_clouds; + setmapflag "prt_fild11",mf_clouds; + setmapflag "prt_maze01",mf_clouds; + setmapflag "prt_maze02",mf_clouds; + setmapflag "prt_maze03",mf_clouds; + setmapflag "prt_monk",mf_clouds; + setmapflag "cmd_fild01",mf_clouds; + setmapflag "cmd_fild02",mf_clouds; + setmapflag "cmd_fild03",mf_clouds; + setmapflag "cmd_fild04",mf_clouds; + setmapflag "cmd_fild05",mf_clouds; + setmapflag "cmd_fild06",mf_clouds; + setmapflag "cmd_fild07",mf_clouds; + setmapflag "cmd_fild08",mf_clouds; + setmapflag "cmd_fild09",mf_clouds; + setmapflag "cmd_in01",mf_clouds; + setmapflag "cmd_in02",mf_clouds; + setmapflag "gef_fild12",mf_clouds; + setmapflag "gef_fild13",mf_clouds; + setmapflag "gef_fild14",mf_clouds; + setmapflag "alde_gld",mf_clouds; + setmapflag "pay_gld",mf_clouds; + setmapflag "prt_gld",mf_clouds; + setmapflag "alde_alche",mf_clouds; + setmapflag "yuno",mf_clouds; + setmapflag "yuno_fild01",mf_clouds; + setmapflag "yuno_fild02",mf_clouds; + setmapflag "yuno_fild03",mf_clouds; + setmapflag "yuno_fild04",mf_clouds; + setmapflag "ama_fild01",mf_clouds; + setmapflag "ama_test",mf_clouds; + setmapflag "amatsu",mf_clouds; + setmapflag "gon_fild01",mf_clouds; + setmapflag "gon_test",mf_clouds; + setmapflag "gonryun",mf_clouds; + setmapflag "umbala",mf_clouds; + setmapflag "um_fild01",mf_clouds; + setmapflag "um_fild02",mf_clouds; + setmapflag "um_fild03",mf_clouds; + setmapflag "um_fild04",mf_clouds; + setmapflag "niflheim",mf_clouds; + setmapflag "nif_fild01",mf_clouds; + setmapflag "nif_fild02",mf_clouds; + setmapflag "nif_in",mf_clouds; + setmapflag "yggdrasil01",mf_clouds; + setmapflag "valkyrie",mf_clouds; + setmapflag "lou_fild01",mf_clouds; + setmapflag "louyang",mf_clouds; + setmapflag "nguild_gef",mf_clouds; + setmapflag "nguild_prt",mf_clouds; + setmapflag "nguild_pay",mf_clouds; + setmapflag "nguild_alde",mf_clouds; + setmapflag "jawaii",mf_clouds; + setmapflag "jawaii_in",mf_clouds; + setmapflag "gefenia01",mf_clouds; + setmapflag "gefenia02",mf_clouds; + setmapflag "gefenia03",mf_clouds; + setmapflag "gefenia04",mf_clouds; + setmapflag "payon",mf_clouds; + setmapflag "ayothaya",mf_clouds; + setmapflag "ayo_in01",mf_clouds; + setmapflag "ayo_in02",mf_clouds; + setmapflag "ayo_fild01",mf_clouds; + setmapflag "ayo_fild02",mf_clouds; + setmapflag "que_god01",mf_clouds; + setmapflag "que_god02",mf_clouds; + setmapflag "yuno_fild05",mf_clouds; + setmapflag "yuno_fild07",mf_clouds; + setmapflag "yuno_fild08",mf_clouds; + setmapflag "yuno_fild09",mf_clouds; + setmapflag "yuno_fild11",mf_clouds; + setmapflag "yuno_fild12",mf_clouds; + setmapflag "alde_tt02",mf_clouds; + setmapflag "einbech",mf_clouds; + setmapflag "einbroch",mf_clouds; + setmapflag "ein_fild06",mf_clouds; + setmapflag "ein_fild07",mf_clouds; + setmapflag "ein_fild08",mf_clouds; + setmapflag "ein_fild09",mf_clouds; + setmapflag "ein_fild10",mf_clouds; + setmapflag "que_sign01",mf_clouds; + setmapflag "ein_fild03",mf_clouds; + setmapflag "ein_fild04",mf_clouds; + setmapflag "lhz_fild02",mf_clouds; + setmapflag "lhz_fild03",mf_clouds; + return; +} + +function script RcloudFlag { + removemapflag "alb2trea",mf_clouds; + removemapflag "alberta",mf_clouds; + removemapflag "aldebaran",mf_clouds; + removemapflag "gef_fild00",mf_clouds; + removemapflag "gef_fild01",mf_clouds; + removemapflag "gef_fild02",mf_clouds; + removemapflag "gef_fild03",mf_clouds; + removemapflag "gef_fild04",mf_clouds; + removemapflag "gef_fild05",mf_clouds; + removemapflag "gef_fild06",mf_clouds; + removemapflag "gef_fild07",mf_clouds; + removemapflag "gef_fild08",mf_clouds; + removemapflag "gef_fild09",mf_clouds; + removemapflag "gef_fild10",mf_clouds; + removemapflag "gef_fild11",mf_clouds; + removemapflag "geffen",mf_clouds; + removemapflag "gl_church",mf_clouds; + removemapflag "gl_chyard",mf_clouds; + removemapflag "gl_knt01",mf_clouds; + removemapflag "gl_knt02",mf_clouds; + removemapflag "gl_step",mf_clouds; + removemapflag "glast_01",mf_clouds; + removemapflag "hunter_1-1",mf_clouds; + removemapflag "hunter_2-1",mf_clouds; + removemapflag "hunter_3-1",mf_clouds; + removemapflag "izlude",mf_clouds; + removemapflag "mjolnir_01",mf_clouds; + removemapflag "mjolnir_02",mf_clouds; + removemapflag "mjolnir_03",mf_clouds; + removemapflag "mjolnir_04",mf_clouds; + removemapflag "mjolnir_05",mf_clouds; + removemapflag "mjolnir_06",mf_clouds; + removemapflag "mjolnir_07",mf_clouds; + removemapflag "mjolnir_08",mf_clouds; + removemapflag "mjolnir_09",mf_clouds; + removemapflag "mjolnir_10",mf_clouds; + removemapflag "mjolnir_11",mf_clouds; + removemapflag "mjolnir_12",mf_clouds; + removemapflag "moc_fild01",mf_clouds; + removemapflag "moc_fild02",mf_clouds; + removemapflag "moc_fild03",mf_clouds; + removemapflag "moc_fild04",mf_clouds; + removemapflag "moc_fild05",mf_clouds; + removemapflag "moc_fild06",mf_clouds; + removemapflag "moc_fild07",mf_clouds; + removemapflag "moc_fild08",mf_clouds; + removemapflag "moc_fild09",mf_clouds; + removemapflag "moc_fild10",mf_clouds; + removemapflag "moc_fild11",mf_clouds; + removemapflag "moc_fild12",mf_clouds; + removemapflag "moc_fild13",mf_clouds; + removemapflag "moc_fild14",mf_clouds; + removemapflag "moc_fild15",mf_clouds; + removemapflag "moc_fild16",mf_clouds; + removemapflag "moc_fild17",mf_clouds; + removemapflag "moc_fild18",mf_clouds; + removemapflag "moc_fild19",mf_clouds; + removemapflag "moc_pryd01",mf_clouds; + removemapflag "moc_pryd02",mf_clouds; + removemapflag "moc_pryd03",mf_clouds; + removemapflag "moc_pryd04",mf_clouds; + removemapflag "moc_pryd05",mf_clouds; + removemapflag "moc_pryd06",mf_clouds; + removemapflag "moc_prydb1",mf_clouds; + removemapflag "moc_ruins",mf_clouds; + removemapflag "morocc",mf_clouds; + removemapflag "new_1-1",mf_clouds; + removemapflag "new_1-2",mf_clouds; + removemapflag "new_1-3",mf_clouds; + removemapflag "new_1-4",mf_clouds; + removemapflag "pay_arche",mf_clouds; + removemapflag "pay_fild01",mf_clouds; + removemapflag "pay_fild02",mf_clouds; + removemapflag "pay_fild03",mf_clouds; + removemapflag "pay_fild04",mf_clouds; + removemapflag "pay_fild05",mf_clouds; + removemapflag "pay_fild06",mf_clouds; + removemapflag "pay_fild07",mf_clouds; + removemapflag "pay_fild08",mf_clouds; + removemapflag "pay_fild09",mf_clouds; + removemapflag "pay_fild10",mf_clouds; + removemapflag "pay_fild11",mf_clouds; + removemapflag "priest_1-1",mf_clouds; + removemapflag "priest_2-1",mf_clouds; + removemapflag "priest_3-1",mf_clouds; + removemapflag "prontera",mf_clouds; + removemapflag "prt_are01",mf_clouds; + removemapflag "prt_fild00",mf_clouds; + removemapflag "prt_fild01",mf_clouds; + removemapflag "prt_fild02",mf_clouds; + removemapflag "prt_fild03",mf_clouds; + removemapflag "prt_fild04",mf_clouds; + removemapflag "prt_fild05",mf_clouds; + removemapflag "prt_fild06",mf_clouds; + removemapflag "prt_fild07",mf_clouds; + removemapflag "prt_fild08",mf_clouds; + removemapflag "prt_fild09",mf_clouds; + removemapflag "prt_fild10",mf_clouds; + removemapflag "prt_fild11",mf_clouds; + removemapflag "prt_maze01",mf_clouds; + removemapflag "prt_maze02",mf_clouds; + removemapflag "prt_maze03",mf_clouds; + removemapflag "prt_monk",mf_clouds; + removemapflag "cmd_fild01",mf_clouds; + removemapflag "cmd_fild02",mf_clouds; + removemapflag "cmd_fild03",mf_clouds; + removemapflag "cmd_fild04",mf_clouds; + removemapflag "cmd_fild05",mf_clouds; + removemapflag "cmd_fild06",mf_clouds; + removemapflag "cmd_fild07",mf_clouds; + removemapflag "cmd_fild08",mf_clouds; + removemapflag "cmd_fild09",mf_clouds; + removemapflag "gef_fild12",mf_clouds; + removemapflag "gef_fild13",mf_clouds; + removemapflag "gef_fild14",mf_clouds; + removemapflag "alde_gld",mf_clouds; + removemapflag "pay_gld",mf_clouds; + removemapflag "prt_gld",mf_clouds; + removemapflag "alde_alche",mf_clouds; + removemapflag "yuno",mf_clouds; + removemapflag "yuno_fild01",mf_clouds; + removemapflag "yuno_fild02",mf_clouds; + removemapflag "yuno_fild03",mf_clouds; + removemapflag "yuno_fild04",mf_clouds; + removemapflag "ama_fild01",mf_clouds; + removemapflag "ama_test",mf_clouds; + removemapflag "amatsu",mf_clouds; + removemapflag "gon_fild01",mf_clouds; + removemapflag "gon_in",mf_clouds; + removemapflag "gon_test",mf_clouds; + removemapflag "gonryun",mf_clouds; + removemapflag "umbala",mf_clouds; + removemapflag "um_fild01",mf_clouds; + removemapflag "um_fild02",mf_clouds; + removemapflag "um_fild03",mf_clouds; + removemapflag "um_fild04",mf_clouds; + removemapflag "niflheim",mf_clouds; + removemapflag "nif_fild01",mf_clouds; + removemapflag "nif_fild02",mf_clouds; + removemapflag "nif_in",mf_clouds; + removemapflag "yggdrasil01",mf_clouds; + removemapflag "valkyrie",mf_clouds; + removemapflag "lou_fild01",mf_clouds; + removemapflag "louyang",mf_clouds; + removemapflag "nguild_gef",mf_clouds; + removemapflag "nguild_prt",mf_clouds; + removemapflag "nguild_pay",mf_clouds; + removemapflag "nguild_alde",mf_clouds; + removemapflag "jawaii",mf_clouds; + removemapflag "jawaii_in",mf_clouds; + removemapflag "gefenia01",mf_clouds; + removemapflag "gefenia02",mf_clouds; + removemapflag "gefenia03",mf_clouds; + removemapflag "gefenia04",mf_clouds; + removemapflag "payon",mf_clouds; + removemapflag "ayothaya",mf_clouds; + removemapflag "ayo_in01",mf_clouds; + removemapflag "ayo_in02",mf_clouds; + removemapflag "ayo_fild01",mf_clouds; + removemapflag "ayo_fild02",mf_clouds; + removemapflag "que_god01",mf_clouds; + removemapflag "que_god02",mf_clouds; + removemapflag "yuno_fild05",mf_clouds; + removemapflag "yuno_fild07",mf_clouds; + removemapflag "yuno_fild08",mf_clouds; + removemapflag "yuno_fild09",mf_clouds; + removemapflag "yuno_fild11",mf_clouds; + removemapflag "yuno_fild12",mf_clouds; + removemapflag "alde_tt02",mf_clouds; + removemapflag "einbech",mf_clouds; + removemapflag "einbroch",mf_clouds; + removemapflag "ein_fild06",mf_clouds; + removemapflag "ein_fild07",mf_clouds; + removemapflag "ein_fild08",mf_clouds; + removemapflag "ein_fild09",mf_clouds; + removemapflag "ein_fild10",mf_clouds; + removemapflag "que_sign01",mf_clouds; + removemapflag "ein_fild03",mf_clouds; + removemapflag "ein_fild04",mf_clouds; + removemapflag "lhz_fild02",mf_clouds; + removemapflag "lhz_fild03",mf_clouds; + return; +} |