Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===== rAthena Script =======================================
- //= Rift Instance
- //===== By: ==================================================
- //= Sehrentos
- //===== Current Version: =====================================
- //= 1.0
- //===== Compatible With: =====================================
- //= rAthena Project
- //===== Description: =========================================
- //= Custom Instance - Rift of Sorrow
- //= Bonus Base Exp & Job Exp 200%
- //= For player level 1-125+
- //===== Additional Comments: =================================
- //= 1.0 Initial script.
- //============================================================
- // Edit 'db/(pre-)re/instance_db.txt' to enable this custom instance.
- // 40,Rift of Sorrow,3600,300,ordeal_3-2,150,157
- // ------------------------------------------
- prontera,145,165,4 script Rift Stone#rift1 406,{
- set .@party_id, getcharid(1);
- // Has party
- if (!.@party_id) {
- mes "["+.npc_name$+"]";
- mes "Make or join a party with more than 1 member and try again.";
- mes "Instance: ^0000ff"+.instance_name$+"^000000";
- close;
- }
- // Check instance party
- if (!instance_check_party(.@party_id, .instance_amount)) {
- mes "["+.npc_name$+"]";
- mes "Make or join a party with more than 1 member and try again.";
- mes "Instance: ^0000ff"+.instance_name$+"^000000";
- close;
- }
- // Party Leader - Create instance
- set .@party_name$, getpartyname(.@party_id);
- if (getcharid(0) == getpartyleader(.@party_id,2)) {
- mes "["+.npc_name$+"]";
- mes "Would you like to reserve entrance to the instance?";
- mes "Instance: ^0000ff"+.instance_name$+"^000000";
- next;
- switch(select("Enter the Rift:Close the Rift")) {
- case 1:
- // Enter existing instance
- if (instance_id() > 0) {
- goto L_Enter;
- }
- // Create new instance
- mes "^0000ff"+.instance_name$+"^000000 - Reserved";
- mes "Party Name: "+.@party_name$;
- mes "Party Leader: "+strcharinfo(0);
- mes "After making a reservation, you can enter the instance.";
- next;
- .@create = instance_create(.instance_name$, IM_PARTY);
- if (.@create < 0) {
- mes "["+.npc_name$+"]";
- switch (.@create) {
- case -1: mes "Invalid instance type."; break;
- case -2: mes "Party not found."; break;
- case -3: mes "Instance already exists."; break;
- case -4: mes "No free instances."; break;
- }
- mes " ";
- mes "Instance creation ^FF0000failed^000000.";
- emotion ET_HUK;
- close;
- }
- goto L_Enter;
- break;
- case 2:
- mes "["+.npc_name$+"]";
- if (instance_id() > 0) {
- mes "Instance ^0000ff"+.instance_name$+"^000000 - Removed!";
- instance_destroy();
- } else {
- mes "You don't have active instance.";
- }
- break;
- }
- close;
- }
- // Party Member - Enter instance
- mes "["+.npc_name$+"]";
- mes "Instance ^0000ff"+.instance_name$+"^000000 "+ (instance_id() > 0 ? "- Reserved":"- Inactive");
- if (select("Enter the instance:Leave") == 1) {
- if (instance_id() > 0) {
- goto L_Enter;
- } else {
- clear;
- mes "["+.npc_name$+"]";
- mes "You don't have active instance.";
- close;
- }
- }
- clear;
- mes "["+ .npc_name$ +"]";
- mes "Farewell.";
- close;
- close;
- OnInit:
- set .npc_name$, strnpcinfo(1);
- set .instance_name$, "Rift of Sorrow";
- set .instance_amount, 1;
- end;
- L_Enter:
- dispbottom "BaseExp bonus: "+getmapflag(instance_mapname("ordeal_3-2"),MF_BEXP)+"% JobExp bonus: "+getmapflag(instance_mapname("ordeal_3-2"),MF_JEXP)+"%";
- .@enter = instance_enter(.instance_name$);
- if (.@enter != IE_OK) {
- mes "["+.npc_name$+"]";
- if (.@enter == IE_NOMEMBER)
- mes "Party not found.";
- if (.@enter == IE_NOINSTANCE)
- mes "Party does not have an instance.";
- if (.@enter == IE_OTHER)
- mes "Unknown error.";
- mes " ";
- mes "Instance entry ^FF0000failed^000000.";
- emotion ET_HUK;
- }
- close;
- }
- // Instance NPC
- //============================================================
- ordeal_3-2,65,25,0 warp riftwarp1 1,1,ordeal_3-2,150,157
- ordeal_3-2,74,266,0 warp riftwarp2 1,1,ordeal_3-2,150,157
- ordeal_3-2,105,153,0 warp riftwarp3 1,1,ordeal_3-2,150,157
- ordeal_3-2,129,193,0 warp riftwarp4 1,1,ordeal_3-2,150,157
- ordeal_3-2,178,193,0 warp riftwarp5 1,1,ordeal_3-2,150,157
- ordeal_3-2,201,129,0 warp riftwarp6 1,1,ordeal_3-2,150,157
- ordeal_3-2,241,281,0 warp riftwarp7 1,1,ordeal_3-2,150,157
- ordeal_3-2,290,129,0 warp riftwarp8 1,1,ordeal_3-2,150,157
- ordeal_3-2,154,153,0 script #RiftManager WARPNPC,2,2,{
- end;
- OnInit: // disable NPC on normal map
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- end;
- OnEnable:
- OnInstanceInit:
- // Enable this NPC on instance init
- enablenpc instance_npcname(strnpcinfo(0));
- mapannounce instance_mapname("ordeal_3-2"),"[Portal] The portal to out side has opened at the center of the room.",BC_MAP,"0x7799ff";
- end;
- OnTouch:
- warp "prontera", 156, 167;
- //warp "Save", 0, 0; // Warp to save-point
- end;
- }
- ordeal_3-2,151,153,4 script Rift Manager#start 106,{
- if (getcharid(0) != getpartyleader(getcharid(1),2)) {
- mes "["+strnpcinfo(1)+"]";
- mes "Tell to your party leader to start the Rift.";
- close;
- }
- mes "["+strnpcinfo(1)+"]";
- mes "Do you wan't to activate the Rift?";
- .@level = select("Level 1-10:Level 10-20:Level 20-30:Level 30-40:Level 40-50:Level 50-60:Level 60-70:Level 70-80:Level 80-90:Level 90-100:Level 100-110:Level 110-120:Level 120-130:Level 130+");
- if(.@level < 1 || .@level > 14) {
- clear;
- mes "["+strnpcinfo(1)+"]";
- mes "This level("+ .@level +") has not been implemented yet!";
- close;
- }
- clear;
- mes "["+strnpcinfo(1)+"]";
- mes "The Rift will start after you close this dialog!";
- mapannounce instance_mapname("ordeal_3-2"),"The Rift is about to start. Get ready!!",BC_MAP,"0x7799ff",FW_BOLD,18;
- close2;
- donpcevent instance_npcname("RiftMonster#lv"+.@level)+"::OnEnable";
- disablenpc instance_npcname(strnpcinfo(0));
- end;
- OnInit: // disable NPC on normal map
- disablenpc strnpcinfo(0);
- end;
- OnInstanceInit:
- // Enable this NPC on instance init
- enablenpc instance_npcname(strnpcinfo(0));
- setmapflag instance_mapname("ordeal_3-2"), MF_NOSAVE; // Disables auto-saving on a map
- setmapflag instance_mapname("ordeal_3-2"), MF_MONSTER_NOTELEPORT; // Disable monster teleport
- setmapflag instance_mapname("ordeal_3-2"), MF_NOBRANCH; // Disables usage of monster-spawning items
- setmapflag instance_mapname("ordeal_3-2"), MF_BEXP, 200; // Base Exp rating
- setmapflag instance_mapname("ordeal_3-2"), MF_JEXP, 200; // Job Exp rating
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- end;
- }
- // Start Rift LV 1-10
- ordeal_3-2,0,0,-1 script RiftMonster#lv1 -1,{
- OnInit: // disable NPC on normal map
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0)); //Disable it self.
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0], // [0-9]{4},[a-zA-Z,'\s_]+([0-9]|1[0-5])
- 1002,
- 1004,
- 1007,
- 1008,
- 1009,
- 1010,
- 1011,
- 1012,
- 1020,
- 1047,
- 1049,
- 1050,
- 1052,
- 1062,
- 1063,
- 1107,
- 1167,
- 1113,
- 1183,
- 1184,
- 1520;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$; // Random
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie"; //Clean up
- setarray .@boss_id[0],
- 1088,
- 1089;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 10-20
- ordeal_3-2,0,0,-1 script RiftMonster#lv2 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1004,
- 1009,
- 1015,
- 1012,
- 1005,
- 1014,
- 1018,
- 1019,
- 1020,
- 1024,
- 1025,
- 1048,
- 1050,
- 1051,
- 1052,
- 1055,
- 1094,
- 1103,
- 1107,
- 1167,
- 1174,
- 1175,
- 1235,
- 1245;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1088,
- 1089,
- 1093;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 20-30
- ordeal_3-2,0,0,-1 script RiftMonster#lv3 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1005,
- 1018,
- 1019,
- 1031,
- 1028,
- 1033,
- 1048,
- 1051,
- 1053,
- 1054,
- 1055,
- 1056,
- 1060,
- 1068,
- 1076,
- 1077,
- 1095,
- 1097,
- 1103,
- 1105,
- 1128,
- 1160,
- 1174,
- 1175,
- 1176,
- 1221,
- 1235,
- 1245;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1089,
- 1093,
- 1090;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 30-40
- ordeal_3-2,0,0,-1 script RiftMonster#lv4 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1031,
- 1054,
- 1033,
- 1028,
- 1013,
- 1023,
- 1034,
- 1057,
- 1066,
- 1068,
- 1070,
- 1073,
- 1095,
- 1104,
- 1105,
- 1121,
- 1128,
- 1141,
- 1145,
- 1160,
- 1161,
- 1169,
- 1176,
- 1242,
- 1246,
- 1248,
- 1249,
- 1265,
- 1273,
- 1391,
- 1585,
- 1592,
- 1629,
- 1686,
- 1964;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1093,
- 1090,
- 1250;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 40-50
- ordeal_3-2,0,0,-1 script RiftMonster#lv5 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1013,
- 1034,
- 1023,
- 1070,
- 1016,
- 1032,
- 1041,
- 1042,
- 1044,
- 1058,
- 1064,
- 1066,
- 1067,
- 1071,
- 1073,
- 1074,
- 1100,
- 1111,
- 1116,
- 1121,
- 1138,
- 1141,
- 1142,
- 1144,
- 1151,
- 1152,
- 1153,
- 1158,
- 1161,
- 1169,
- 1177,
- 1212,
- 1214,
- 1248,
- 1254,
- 1258,
- 1266,
- 1273,
- 1308,
- 1317,
- 1323,
- 1391,
- 1392,
- 1585,
- 1592,
- 1629,
- 1686;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1090,
- 1091,
- 1250,
- 1299;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 50-60
- ordeal_3-2,0,0,-1 script RiftMonster#lv6 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0], // [0-9]{4},[a-zA-Z,'\s_]+(5[0-9]|6[0-5])
- 1016,
- 1026,
- 1029,
- 1032,
- 1035,
- 1036,
- 1040,
- 1041,
- 1044,
- 1045,
- 1058,
- 1065,
- 1069,
- 1074,
- 1108,
- 1114,
- 1116,
- 1118,
- 1119,
- 1127,
- 1130,
- 1138,
- 1139,
- 1142,
- 1146,
- 1149,
- 1152,
- 1153,
- 1158,
- 1165,
- 1166,
- 1170,
- 1177,
- 1188,
- 1191,
- 1258,
- 1264,
- 1266,
- 1271,
- 1274,
- 1308,
- 1313,
- 1380,
- 1409;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1096,
- 1262,
- 1299,
- 1388,
- 1582;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 60-70
- ordeal_3-2,0,0,-1 script RiftMonster#lv7 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1035,
- 1036,
- 1037,
- 1040,
- 1061,
- 1065,
- 1099,
- 1108,
- 1110,
- 1114,
- 1127,
- 1129,
- 1130,
- 1139,
- 1140,
- 1164,
- 1165,
- 1170,
- 1178,
- 1180,
- 1186,
- 1195,
- 1211,
- 1243,
- 1244,
- 1261,
- 1264,
- 1274,
- 1278,
- 1279,
- 1280,
- 1281,
- 1368,
- 1369,
- 1380,
- 1381,
- 1400,
- 1409,
- 1415;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1096,
- 1262,
- 1283,
- 1388,
- 1582;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 70-80
- ordeal_3-2,0,0,-1 script RiftMonster#lv8 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1037,
- 1099,
- 1140,
- 1164,
- 1117,
- 1154,
- 1156,
- 1178,
- 1180,
- 1189,
- 1192,
- 1195,
- 1199,
- 1209,
- 1211,
- 1213,
- 1215,
- 1216,
- 1243,
- 1260,
- 1261,
- 1263,
- 1269,
- 1276,
- 1281,
- 1293,
- 1300,
- 1301,
- 1303,
- 1304,
- 1305,
- 1309,
- 1368,
- 1369,
- 1372,
- 1376,
- 1386,
- 1400,
- 1404,
- 1406;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1096,
- 1283,
- 1289,
- 1307,
- 1388,
- 1582;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 80-90
- ordeal_3-2,0,0,-1 script RiftMonster#lv9 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1102,
- 1117,
- 1155,
- 1162,
- 1092,
- 1109,
- 1131,
- 1143,
- 1193,
- 1196,
- 1197,
- 1199,
- 1209,
- 1213,
- 1215,
- 1216,
- 1256,
- 1257,
- 1263,
- 1269,
- 1270,
- 1276,
- 1290,
- 1291,
- 1294,
- 1298,
- 1300,
- 1303,
- 1304,
- 1305,
- 1306,
- 1309,
- 1311,
- 1314,
- 1316,
- 1319,
- 1320,
- 1321,
- 1322,
- 1372,
- 1376,
- 1377,
- 1378,
- 1386,
- 1401,
- 1402,
- 1403,
- 1404,
- 1406,
- 1408,
- 1410,
- 1413,
- 1417;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1289,
- 1307,
- 1388;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 90-100
- ordeal_3-2,0,0,-1 script RiftMonster#lv10 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1072,
- 1092,
- 1106,
- 1109,
- 1030,
- 1098,
- 1131,
- 1143,
- 1148,
- 1196,
- 1198,
- 1201,
- 1202,
- 1207,
- 1220,
- 1253,
- 1255,
- 1257,
- 1267,
- 1270,
- 1275,
- 1294,
- 1298,
- 1314,
- 1315,
- 1316,
- 1318,
- 1319,
- 1320,
- 1366,
- 1367,
- 1371,
- 1375,
- 1377,
- 1378,
- 1382,
- 1383,
- 1384,
- 1385,
- 1387,
- 1401,
- 1405,
- 1408,
- 1410,
- 1412,
- 1413,
- 1416,
- 1417;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1200,
- 1205,
- 1259;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 100-110
- ordeal_3-2,0,0,-1 script RiftMonster#lv11 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1030,
- 1098,
- 1106,
- 1148,
- 1163,
- 1194,
- 1202,
- 1206,
- 1207,
- 1220,
- 1253,
- 1267,
- 1275,
- 1282,
- 1296,
- 1297,
- 1310,
- 1315,
- 1366,
- 1367,
- 1371,
- 1379,
- 1382,
- 1383,
- 1384,
- 1385,
- 1387,
- 1503,
- 1504,
- 1505,
- 1506,
- 1507,
- 1508,
- 1509,
- 1510;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1200,
- 1204,
- 1205,
- 1259;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 110-120
- ordeal_3-2,0,0,-1 script RiftMonster#lv12 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1132,
- 1163,
- 1208,
- 1292,
- 1296,
- 1297,
- 1365,
- 1370,
- 1374,
- 1390,
- 1507,
- 1632,
- 1633,
- 1668,
- 1682,
- 1693,
- 1694,
- 1695,
- 1696,
- 1697,
- 1698,
- 1699,
- 1701,
- 1702,
- 1703,
- 1721,
- 1735,
- 1736,
- 1737,
- 1771,
- 1772,
- 1773,
- 1774,
- 1777;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1204,
- 1268,
- 1295,
- 1720;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 120-130
- ordeal_3-2,0,0,-1 script RiftMonster#lv13 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1208,
- 1295,
- 1365,
- 1374,
- 1633,
- 1682,
- 1700,
- 1701,
- 1702,
- 1703,
- 1704,
- 1705,
- 1706,
- 1707,
- 1713,
- 1714,
- 1716,
- 1717,
- 1720,
- 1752,
- 1753,
- 1754,
- 1755,
- 1769,
- 1770,
- 1771,
- 1772,
- 1773,
- 1774,
- 1833,
- 1837,
- 1838,
- 1864,
- 1865,
- 1867,
- 1869;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1203,
- 1653,
- 1654,
- 1655,
- 1656,
- 1657,
- 1720,
- 1870;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
- // Start Rift LV 130+ (Torment)
- ordeal_3-2,0,0,-1 script RiftMonster#lv14 -1,{
- OnInit:
- disablenpc strnpcinfo(0);
- end;
- OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnMobDie";
- killmonster instance_mapname("ordeal_3-2"),instance_npcname(strnpcinfo(0))+"::OnBossDie";
- end;
- OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMobDie";
- setarray .@mob_id[0],
- 1203,
- 1713,
- 1716,
- 1833,
- 1634,
- 1635,
- 1637,
- 1638,
- 1639,
- 1652,
- 1653,
- 1654,
- 1655,
- 1656,
- 1657,
- 1754,
- 1755,
- 1829,
- 1830,
- 1831,
- 1839,
- 1867,
- 1870,
- 2017,
- 2018,
- 2024,
- 2085,
- 2086,
- 2092,
- 2131,
- 2132,
- 2133,
- 2134,
- 2136,
- 2137,
- 2163,
- 2164,
- 2180,
- 2181,
- 2182,
- 2183,
- 2184,
- 2185,
- 2189,
- 2190,
- 2196,
- 2221,
- 2222,
- 2223,
- 2224,
- 2225,
- 2226,
- 2227,
- 2250,
- 2252,
- 2254,
- 2256,
- 2363,
- 2364,
- 2365,
- 2366,
- 2367,
- 2368,
- 2369,
- 2370,
- 2371;
- // Summon
- areamonster .@map$,131,168,144,155,"--ja--",.@mob_id[0],8,.@label$; //top-left
- areamonster .@map$,155,167,168,155,"--ja--",.@mob_id[1],8,.@label$; //top-right
- areamonster .@map$,144,155,144,131,"--ja--",.@mob_id[2],8,.@label$; //bottom-left
- areamonster .@map$,155,144,168,131,"--ja--",.@mob_id[3],8,.@label$; //bottom-right
- for(.@i = 0; .@i < 500; .@i++) {
- monster .@map$,0,0,"--ja--",.@mob_id[rand(getarraysize(.@mob_id))],1,.@label$;
- }
- end;
- OnMobDie:
- .@npc$ = instance_npcname(strnpcinfo(0));
- .@map$ = instance_mapname("ordeal_3-2");
- .@count = mobcount(.@map$, .@npc$+"::OnMobDie");
- if (.@count <= 400) {
- killmonster .@map$, .@npc$+"::OnMobDie";
- setarray .@boss_id[0],
- 1038,
- 1039,
- 1046,
- 1059,
- 1086,
- 1087,
- 1096,
- 1112,
- 1115,
- 1120,
- 1147,
- 1150,
- 1157,
- 1159,
- 1190,
- 1251,
- 1252,
- 1272,
- 1312,
- 1373,
- 1388,
- 1389,
- 1418,
- 1492,
- 1511,
- 1582,
- 1583,
- 1623,
- 1630,
- 1658,
- 1685,
- 1688,
- 1708,
- 1719,
- 1734,
- 1751,
- 1768,
- 1779,
- 1785,
- 1832,
- 1871,
- 1873,
- 1885,
- 2022,
- 2068,
- 2087;
- .@mob_id = .@boss_id[rand(getarraysize(.@boss_id))];
- monster .@map$,153,141,"--ja--",.@mob_id,1,.@npc$+"::OnBossDie",Size_Large;
- mapannounce .@map$,"Boss incomming ("+ strmobinfo(1,.@mob_id) +")!!",BC_MAP,"0xFD3B02",FW_BOLD,18;
- } else {
- mapannounce .@map$,"("+(.@count - 400)+") Enemies left.",BC_MAP,"0x7DCBF0",FW_BOLD,16;
- }
- end;
- OnBossDie:
- mapannounce instance_mapname("ordeal_3-2"),"The Rift Boss is defeated!",BC_MAP,"0xFD3B02",FW_BOLD,20;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement