MyNoobScriptz Posted September 8, 2021 Share Posted September 8, 2021 //===== rAthena Script ======================================= //= Nightmare Biolabs //===== Description: ========================================= //= Nightmare Biolabs Monster Spawn Script. //===== Additional Comments: ================================= //= 1.0 First version. Boss and slaves spawn are assumptions // based on lhz_dun.txt monsters spawn. [Capuche] //= 1.1 Changed MvP spawn based on the amount of // monsters killed. [Capuche] //============================================================ lhz_dun_n,0,0 monster Eremes Guille 3208,20,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Magaleta Sorin 3209,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Catherine Cheiron 3210,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Shecil Damon 3211,20,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Harword Alt-Eisen 3212,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Seyren Windsor 3213,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Randel Lawrence 3226,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Flamel Emule 3227,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Celia Alde 3228,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Chen Liu 3229,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Gertie Wie 3230,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Alphoccio Basil 3231,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Trentini 3232,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0,0 script lhz_dun_n -1,{ end; OnRegularDead: [email protected]_id = killedrid; if (.lhz_dun_n[[email protected]_id] < 110 && .lhz_dun_n_boss == 0) { .lhz_dun_n[[email protected]_id]++; if (.lhz_dun_n[[email protected]_id] == 110) { [email protected]_boss = [email protected]_id + 6 + ([email protected]_id > 3213); // mini boss version ID: regular ID +6 for non-transcendent, +7 for others monster "lhz_dun_n",0,0,"--en--",[email protected]_boss,1, "lhz_dun_n::OnMiniDead"; } } end; OnMiniDead: [email protected]_id = killedrid; if (.lhz_dun_n[[email protected]_id] < 4 && .lhz_dun_n_boss == 0) { .lhz_dun_n[[email protected]_id]++; [email protected] = [email protected]_id - 6 - ([email protected]_id > 3219); if (.lhz_dun_n[[email protected]_id] < 4) .lhz_dun_n[[email protected]] = 0; // note: mini boss version can re-spawn when the count of mini boss dead is reached? (currently they don't) else { setarray [email protected]_boss_list[0], 3214,3215,3216,3217,3218,3219,3233,3234,3235,3236,3237,3238,3239; for ( [email protected] = 0; [email protected] < 13; [email protected] ) { if (.lhz_dun_n[[email protected]_boss_list[[email protected]]] < 4) end; } // MvP monster seems to only spawn at 12 o'clock monster "lhz_dun_n",140,230,"--en--", F_Rand(3220,3221,3222,3223,3224,3225,3240,3241,3242,3243,3244,3245,3246),1, "lhz_dun_n::OnMyMVPDead"; mapannounce "lhz_dun_n", "Voice of Reaper: It's been a while.", bc_map; // unknown message .lhz_dun_n_boss = 1; for ( [email protected] = 0; [email protected] < 13; [email protected] ) { [email protected] = [email protected]_boss_list[[email protected]] - 6 - ([email protected]_boss_list[[email protected]] > 3219); .lhz_dun_n[[email protected]] = 0; .lhz_dun_n[[email protected]_boss_list[[email protected]]] = 0; } } } end; OnMyMVPDead: initnpctimer; .lhz_dun_n_delay = 0; killmonster "lhz_dun_n", "lhz_dun_n::OnMyMVPDead"; mapannounce "lhz_dun_n", "Voice of Reaper: See you soon.", bc_map, "0x00FF00"; end; OnTimer60000: .lhz_dun_n_delay++; if (.lhz_dun_n_delay < 100) // unknown delay (currently 100 mins) initnpctimer; else { stopnpctimer; .lhz_dun_n_delay = 0; .lhz_dun_n_boss = 0; } end; } 1. How to edit if I need to kill 20 mob then spawn mini boss 2.How to edit if I need to kill all mini boss 1 round then spawn MVP boss 3.How to edit if I need to add 5hrs = delay to MVP spawn again (I confuse on OnTimer60000: and .lhz_dun_n_delay < 100) thx for advance Quote Link to comment Share on other sites More sharing options...
//===== rAthena Script ======================================= //= Nightmare Biolabs //===== Description: ========================================= //= Nightmare Biolabs Monster Spawn Script. //===== Additional Comments: ================================= //= 1.0 First version. Boss and slaves spawn are assumptions // based on lhz_dun.txt monsters spawn. [Capuche] //= 1.1 Changed MvP spawn based on the amount of // monsters killed. [Capuche] //============================================================ lhz_dun_n,0,0 monster Eremes Guille 3208,20,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Magaleta Sorin 3209,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Catherine Cheiron 3210,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Shecil Damon 3211,20,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Harword Alt-Eisen 3212,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Seyren Windsor 3213,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Randel Lawrence 3226,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Flamel Emule 3227,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Celia Alde 3228,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Chen Liu 3229,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Gertie Wie 3230,15,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Alphoccio Basil 3231,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0 monster Trentini 3232,10,5000,0,"lhz_dun_n::OnRegularDead" lhz_dun_n,0,0,0 script lhz_dun_n -1,{ end; OnRegularDead: [email protected]_id = killedrid; if (.lhz_dun_n[[email protected]_id] < 110 && .lhz_dun_n_boss == 0) { .lhz_dun_n[[email protected]_id]++; if (.lhz_dun_n[[email protected]_id] == 110) { [email protected]_boss = [email protected]_id + 6 + ([email protected]_id > 3213); // mini boss version ID: regular ID +6 for non-transcendent, +7 for others monster "lhz_dun_n",0,0,"--en--",[email protected]_boss,1, "lhz_dun_n::OnMiniDead"; } } end; OnMiniDead: [email protected]_id = killedrid; if (.lhz_dun_n[[email protected]_id] < 4 && .lhz_dun_n_boss == 0) { .lhz_dun_n[[email protected]_id]++; [email protected] = [email protected]_id - 6 - ([email protected]_id > 3219); if (.lhz_dun_n[[email protected]_id] < 4) .lhz_dun_n[[email protected]] = 0; // note: mini boss version can re-spawn when the count of mini boss dead is reached? (currently they don't) else { setarray [email protected]_boss_list[0], 3214,3215,3216,3217,3218,3219,3233,3234,3235,3236,3237,3238,3239; for ( [email protected] = 0; [email protected] < 13; [email protected] ) { if (.lhz_dun_n[[email protected]_boss_list[[email protected]]] < 4) end; } // MvP monster seems to only spawn at 12 o'clock monster "lhz_dun_n",140,230,"--en--", F_Rand(3220,3221,3222,3223,3224,3225,3240,3241,3242,3243,3244,3245,3246),1, "lhz_dun_n::OnMyMVPDead"; mapannounce "lhz_dun_n", "Voice of Reaper: It's been a while.", bc_map; // unknown message .lhz_dun_n_boss = 1; for ( [email protected] = 0; [email protected] < 13; [email protected] ) { [email protected] = [email protected]_boss_list[[email protected]] - 6 - ([email protected]_boss_list[[email protected]] > 3219); .lhz_dun_n[[email protected]] = 0; .lhz_dun_n[[email protected]_boss_list[[email protected]]] = 0; } } } end; OnMyMVPDead: initnpctimer; .lhz_dun_n_delay = 0; killmonster "lhz_dun_n", "lhz_dun_n::OnMyMVPDead"; mapannounce "lhz_dun_n", "Voice of Reaper: See you soon.", bc_map, "0x00FF00"; end; OnTimer60000: .lhz_dun_n_delay++; if (.lhz_dun_n_delay < 100) // unknown delay (currently 100 mins) initnpctimer; else { stopnpctimer; .lhz_dun_n_delay = 0; .lhz_dun_n_boss = 0; } end; }1. How to edit if I need to kill 20 mob then spawn mini boss
2.How to edit if I need to kill all mini boss 1 round then spawn MVP boss
3.How to edit if I need to add 5hrs = delay to MVP spawn again (I confuse on OnTimer60000: and .lhz_dun_n_delay < 100)
thx for advance
Link to comment
Share on other sites