summaryrefslogtreecommitdiff
path: root/npc/re/instances
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/instances')
-rw-r--r--npc/re/instances/BuwayaCave.txt2
-rw-r--r--npc/re/instances/EclageInterior.txt42
-rw-r--r--npc/re/instances/MalangdoCulvert.txt2
-rw-r--r--npc/re/instances/OctopusCave.txt2
-rw-r--r--npc/re/instances/OldGlastHeim.txt100
-rw-r--r--npc/re/instances/WolfchevLaboratory.txt6
6 files changed, 36 insertions, 118 deletions
diff --git a/npc/re/instances/BuwayaCave.txt b/npc/re/instances/BuwayaCave.txt
index 2333a2428..908c15e2f 100644
--- a/npc/re/instances/BuwayaCave.txt
+++ b/npc/re/instances/BuwayaCave.txt
@@ -89,7 +89,7 @@ ma_fild02,312,317,5 script Guard#buwaya_cave 4_MAL_SOLDIER,{
}
instance_set_timeout 3600,300,.@instance;
instance_init(.@instance);
-
+
mes "[Guard]";
mes "I will open up the tunnel to ^0000ff"+.@md_name$+"^000000.";
mes "I wish you good luck.";
diff --git a/npc/re/instances/EclageInterior.txt b/npc/re/instances/EclageInterior.txt
index 88fc414ba..d28d7cf64 100644
--- a/npc/re/instances/EclageInterior.txt
+++ b/npc/re/instances/EclageInterior.txt
@@ -1,14 +1,14 @@
-//===== Hercules Script ======================================
+//===== Hercules Script ======================================
//= Eclage Instance Script
-//===== By: ==================================================
+//===== By: ==================================================
//= Dastgir
-//===== Current Version: =====================================
+//===== Current Version: =====================================
//= 1.0
-//===== Description: =========================================
+//===== Description: =========================================
//= Eclage Interior Instance
-//===== Additional Comments: =================================
+//===== Additional Comments: =================================
//= 1.0 Converted from the official Aegis script. [Dastgir]
-//============================================================
+//============================================================
ecl_hub01,132,12,3 script Chief of Staff#tl01::EclInstance 4_F_FAIRY,{
.@party_id = getcharid(1);
@@ -19,7 +19,7 @@ ecl_hub01,132,12,3 script Chief of Staff#tl01::EclInstance 4_F_FAIRY,{
mes "Only the party leader will enter. Please create your party.";
close;
}
-
+
if (getpartyleader(.@party_id,2) != getcharid(0)) {
mes "-! Warning !-";
mes "This current quest will be held at Memorial dungeon.";
@@ -52,7 +52,6 @@ ecl_hub01,132,12,3 script Chief of Staff#tl01::EclInstance 4_F_FAIRY,{
mes "Given the tight internal security, you should prepare yourself.";
mes "Wait here for a minute.";
close;
-
case 2:
mes "[Shenime]";
mes "It's not an easy task.";
@@ -73,7 +72,7 @@ ecl_hub01,130,15,0 script It is closed shut. CLEAR_NPC,{
switch (select("Enter it.:Forget it.")) {
case 1:
.@party_id = getcharid(1);
-
+
if (has_instance("1@ecl") == "") {
mes "It is closed shut.";
close;
@@ -101,7 +100,6 @@ ecl_hub01,130,15,0 script It is closed shut. CLEAR_NPC,{
mes "This current quest will be held at Memorial dungeon.";
mes "Only the party leader will enter. Please create your party.";
close;
-
case 2:
close;
}
@@ -110,10 +108,8 @@ ecl_hub01,130,15,0 script It is closed shut. CLEAR_NPC,{
mes "It's also a place where the lighting is set up to make Orb seem more beautiful.";
mes "It is closed shut.";
close;
- end;
}
-
1@ecl,58,69,3 script Shenime#ecl01 4_F_FAIRY,{
mes "[Shenime]";
mes "Oh, what's going on here?";
@@ -167,16 +163,16 @@ OnInstanceInit:
1@ecl,53,83,0 script #sndmaster HIDDEN_WARP_NPC,10,10,{
end;
-
+
OnInstanceInit:
.mob_summoned = 0;
disablenpc instance_npcname(strnpcinfo(0));
end;
-
+
OnEnable:
initnpctimer;
end;
-
+
OnReset:
killmonster instance_mapname("1@ecl"),instance_npcname("#sndmaster")+"::OnMyMobDead";
stopnpctimer;
@@ -191,19 +187,19 @@ OnTimer2000:
hideoffnpc instance_npcname("Suspicious Creature#7");
hideoffnpc instance_npcname("Suspicious Creature#8");
end;
-
+
OnTimer3000:
hideonnpc instance_npcname("#sndmaster");
stopnpctimer;
end;
-
+
OnMyMobDead:
if (mobcount(instance_mapname("1@ecl"),instance_npcname("#sndmaster")+"::OnMyMobDead") == 0) {
donpcevent instance_npcname("Shenime#ecl01")+"::OnEnable";
mapannounce instance_mapname("1@ecl"),"Shenime: Good, I got here just in time.",bc_map,"0xffff00"; //FW_NORMAL 12 0 0
}
end;
-
+
OnTouch:
if (.mob_summoned) end;
mes "Upon eliminating the intruders near the Orb, another strange-looking creatures appeared.";
@@ -368,20 +364,20 @@ OnInstanceInit:
warp "1@ecl",146,29;
end;
}
-
+
1@ecl,148,29,3 script Loki#ecl01 4_M_ROKI2,{
mes "[Loki]";
mes "It seems like this guy next to me has a lot more to say than I do.";
mes "Why don't you explain to him first?";
close;
-}
-
+}
+
1@ecl,147,30,3 script Nydhog#ecl01 4_F_NYDHOG,{
mes "[Guardian Nydhog]";
mes "I think you should talk to Hisie first.";
close;
}
-
+
1@ecl,144,27,5 script Hisie#ecl01 4_M_FARIY_HISIE,{
cutin "hisie01",0;
mes "[Hisie]";
@@ -495,4 +491,4 @@ OnInstanceInit:
cutin "",255;
warp "ecl_in03",57,76;
end;
-} \ No newline at end of file
+}
diff --git a/npc/re/instances/MalangdoCulvert.txt b/npc/re/instances/MalangdoCulvert.txt
index 0751b46a2..6f23195cc 100644
--- a/npc/re/instances/MalangdoCulvert.txt
+++ b/npc/re/instances/MalangdoCulvert.txt
@@ -418,7 +418,7 @@ mal_in01,160,34,4 script Missing, the Cleaner 4_CAT_SAILOR2,{
}
instance_set_timeout 3600,300,.@instance;
instance_init(.@instance);
-
+
mes "^3333FF"+.@md_name$+"^000000 - Reserving";
mes "After making the reservation, you";
mes "have to select Enter the Culvert.";
diff --git a/npc/re/instances/OctopusCave.txt b/npc/re/instances/OctopusCave.txt
index c55d5e2bf..6c3be5199 100644
--- a/npc/re/instances/OctopusCave.txt
+++ b/npc/re/instances/OctopusCave.txt
@@ -101,7 +101,7 @@ mal_dun01,151,235,5 script Starfish 4_ASTER,{
}
instance_set_timeout 3600,300,.@instance;
instance_init(.@instance);
-
+
mes "[Starfish]";
mes "I will open the gate for a while to ^0000ff"+.@md_name$+"^000000.";
mes "Please catch that pervert octopus,";
diff --git a/npc/re/instances/OldGlastHeim.txt b/npc/re/instances/OldGlastHeim.txt
index be0d4d002..131b54eb8 100644
--- a/npc/re/instances/OldGlastHeim.txt
+++ b/npc/re/instances/OldGlastHeim.txt
@@ -3,12 +3,14 @@
//===== By: ==================================================
//= Ziu, Heris (translation)
//===== Current Version: =====================================
-//= 1.0
+//= 1.1
//===== Description: =========================================
//= Discover the history of events that took place in the
//= Glast Heim castle and how it ended up in ruins.
//===== Additional Comments: =================================
//= 1.0 First version. [Euphy]
+//= This is a custom version, and may contain bugs.
+//= 1.1 Bug fixes; removed redundant OnInstanceInit scripts.
//============================================================
1@gl_k mapflag src4instance
@@ -143,8 +145,6 @@ glast_01,204,273,6 script Hugin#ghinstance 4_M_SAGE_C,{
end;
}
OnInstanceInit:
- donpcevent instance_npcname("Varmunt#ghinstance1")+"::OnEnable";
- end;
OnDisable:
hideonnpc instance_npcname("Varmunt#ghinstance1");
end;
@@ -185,8 +185,6 @@ OnEnable:
}
close;
OnInstanceInit:
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname(strnpcinfo(0));
end;
@@ -283,8 +281,6 @@ OnEnable:
end;
}
OnInstanceInit:
- donpcevent instance_npcname("Heinrich#ghinstance1")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance1");
end;
@@ -296,8 +292,6 @@ OnEnable:
1@gl_k,152,97,3 script Varmunt#ghinstance2 4_M_BARMUND,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Varmunt#ghinstance2")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Varmunt#ghinstance2");
end;
@@ -330,8 +324,6 @@ OnTalk7:
1@gl_k,149,97,6 script Heinrich#ghinstance2 4_M_HEINRICH,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance2");
end;
@@ -373,8 +365,6 @@ OnTalk10:
1@gl_k,149,100,6 script Heinrich#ghinstance3 4_M_HEINRICH,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance3");
end;
@@ -410,8 +400,6 @@ OnTalk8:
1@gl_k,149,89,1 script Himmelmez#ghinstance1 4_F_HIMEL,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Himmelmez#ghinstance1")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Himmelmez#ghinstance1");
end;
@@ -448,8 +436,6 @@ OnTalk8:
//============================================================
1@gl_k,0,0,0 script #talkinstance1 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#talkinstance1")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#talkinstance1");
end;
@@ -705,8 +691,6 @@ OnMyMobDead:
1@gl_k,145,54,6 script .#ghinstance1 MG_KHALITZBURG,{
end;
OnInstanceInit:
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname(strnpcinfo(0));
end;
@@ -749,8 +733,6 @@ OnTalkK:
1@gl_k,145,59,6 script .#ghinstance3 HIDDEN_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname(strnpcinfo(0));
end;
@@ -775,8 +757,6 @@ OnEffect1:
1@gl_k,96,80,0 script #ghinstancewarp1 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname(strnpcinfo(0));
end;
@@ -819,8 +799,6 @@ OnTouch:
//============================================================
1@gl_k,0,0,0 script #ghmemorialmob01 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob01")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob01");
end;
@@ -891,8 +869,6 @@ OnMyMobDead:
close;
}
OnInstanceInit:
- donpcevent instance_npcname("Aspiring Butcher#clearGH")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Aspiring Butcher#clearGH");
end;
@@ -945,8 +921,6 @@ OnEnable:
close;
}
OnInstanceInit:
- donpcevent instance_npcname("Hollgrehenn Destroyer")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Hollgrehenn Destroyer");
end;
@@ -957,8 +931,6 @@ OnEnable:
1@gl_k,0,0,0 script #ghmemorialmob02 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob02")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob02");
end;
@@ -1006,8 +978,6 @@ OnTouch:
OnMyMobDead:
end;
OnInstanceInit:
- donpcevent instance_npcname(strnpcinfo(0))+"::OnEnable";
- end;
OnEnable:
enablenpc instance_npcname(strnpcinfo(0));
end;
@@ -1051,8 +1021,6 @@ OnDisable:
//============================================================
1@gl_k,0,0,0 script #ghmemorialmob03 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob03")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob03");
end;
@@ -1092,8 +1060,6 @@ OnMyMobDead:
//============================================================
1@gl_k,0,0,0 script #ghmemorialmob04 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob04")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob04");
end;
@@ -1123,8 +1089,6 @@ OnTouch:
donpcevent instance_npcname("#GHMclear3")+"::OnDisable";
end;
OnInstanceInit:
- donpcevent instance_npcname("#GHMclear3")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#GHMclear3");
end;
@@ -1140,8 +1104,6 @@ OnTimer2000:
1@gl_k,0,0,0 script #controlGH3 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#controlGH3")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#controlGH3");
end;
@@ -1203,8 +1165,6 @@ OnTimer38000:
cutin "gl_heinrich1",255;
end;
OnInstanceInit:
- donpcevent instance_npcname("Heinrich#ghinstance4")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance4");
end;
@@ -1230,8 +1190,6 @@ OnTalk3:
cutin "gl_himel2",255;
end;
OnInstanceInit:
- donpcevent instance_npcname("Himmelmez#ghinstance2")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Himmelmez#ghinstance2");
end;
@@ -1278,8 +1236,6 @@ OnTalk6:
cutin "gl_barmund2",255;
end;
OnInstanceInit:
- donpcevent instance_npcname("Varmunt#ghinstance3")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Varmunt#ghinstance3");
end;
@@ -1305,8 +1261,6 @@ OnTalk2:
cutin "gl_heinrich1",255;
end;
OnInstanceInit:
- donpcevent instance_npcname("Heinrich#ghinstance5")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance5");
end;
@@ -1338,8 +1292,6 @@ OnTalk5:
cutin "gl_barmund1",255;
end;
OnInstanceInit:
- donpcevent instance_npcname("Varmunt#ghinstance4")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Varmunt#ghinstance4");
end;
@@ -1399,28 +1351,27 @@ OnTalk17:
2@gl_k,150,67,0 script #effectGH01 HIDDEN_NPC,10,10,{
end;
OnTouch:
- specialeffect EF_BASH;
- donpcevent instance_npcname("#controlGH4")+"::OnEnable";
- donpcevent instance_npcname("#effectGH01")+"::OnDisable";
+ if (.touch) {
+ .touch = 0;
+ specialeffect EF_BASH;
+ donpcevent instance_npcname("#controlGH4")+"::OnEnable";
+ }
end;
OnEffect:
specialeffect EF_LORD;
end;
OnInstanceInit:
- donpcevent instance_npcname("#effectGH01")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#effectGH01");
end;
OnEnable:
enablenpc instance_npcname("#effectGH01");
+ set .touch,1; //Activates OnTouch Only Once.
end;
}
2@gl_k,0,0,0 script #controlGH4 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#controlGH4")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#controlGH4");
end;
@@ -1442,7 +1393,6 @@ OnTimer12000:
donpcevent instance_npcname("Varmunt#ghinstance4")+"::OnTalk3";
end;
OnTimer15000:
- donpcevent instance_npcname("#effectGH01")+"::OnEnable";
donpcevent instance_npcname("#effectGH01")+"::OnEffect";
end;
OnTimer18000:
@@ -1513,8 +1463,6 @@ OnTimer70000:
2@gl_k,0,0,0 script #ghmemorialmob05 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob05")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob05");
end;
@@ -1562,8 +1510,6 @@ OnMyMobDead:
2@gl_k,0,0,0 script #ghmemorialmob06 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob06")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob06");
end;
@@ -1605,8 +1551,6 @@ OnTimer92000:
2@gl_k,0,0,0 script #ghmemorialmob07 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob07")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob07");
end;
@@ -1628,8 +1572,6 @@ OnMyMobDead:
2@gl_k,0,0,0 script #ghmemorialmob08 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob08")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob08");
end;
@@ -1676,8 +1618,6 @@ OnMyMobDead:
2@gl_k,0,0,0 script #ghmemorialmob09 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob09")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob09");
end;
@@ -1699,8 +1639,6 @@ OnMyMobDead:
2@gl_k,0,0,0 script #ghmemorialmob10 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#ghmemorialmob10")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#ghmemorialmob10");
end;
@@ -1720,8 +1658,6 @@ OnMyMobDead:
2@gl_k,155,250,7 script Heinrich#ghinstance6 4_M_HEINRICH,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Heinrich#ghinstance6")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance6");
end;
@@ -1757,8 +1693,6 @@ OnTalk6:
cutin "gl_barmund2",255;
end;
OnInstanceInit:
- donpcevent instance_npcname("Varmunt#ghinstance5")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Varmunt#ghinstance5");
end;
@@ -1773,8 +1707,6 @@ OnTalk1:
2@gl_k,158,252,3 script Himmelmez#ghinstance4 4_F_HIMEL,4,4,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Himmelmez#ghinstance4")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Himmelmez#ghinstance4");
end;
@@ -1828,13 +1760,11 @@ OnTouch:
donpcevent instance_npcname("#controlGH6")+"::OnDisable";
end;
OnInstanceInit:
- donpcevent instance_npcname("#controlGH6")+"::OnDisable";
- end;
OnDisable:
- hideonnpc instance_npcname("#controlGH6");
+ disablenpc instance_npcname("#controlGH6");
end;
OnEnable:
- hideoffnpc instance_npcname("#controlGH6");
+ enablenpc instance_npcname("#controlGH6");
end;
}
@@ -1847,8 +1777,6 @@ OnTouch:
donpcevent instance_npcname("Himmelmez#ghinstance3")+"::OnDisable";
end;
OnInstanceInit:
- donpcevent instance_npcname("Himmelmez#ghinstance3")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("Himmelmez#ghinstance3");
end;
@@ -1860,8 +1788,6 @@ OnEnable:
2@gl_k,158,255,3 script Gerhard#ghinstance1 4_LEVITATEMAN,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Gerhard#ghinstance1")+"::OnDisable";
- end;
OnDisable:
hideonnpc instance_npcname("Gerhard#ghinstance1");
end;
@@ -1896,8 +1822,6 @@ OnEffect5:
2@gl_k,0,0,0 script #controlGH5 -1,{
OnInstanceInit:
- donpcevent instance_npcname("#controlGH5")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("#controlGH5");
end;
@@ -2048,8 +1972,6 @@ OnTimer80000:
}
}
OnInstanceInit:
- donpcevent instance_npcname("Hugin#ghinstance1")+"::OnDisable";
- end;
OnDisable:
disablenpc instance_npcname("Hugin#ghinstance1");
end;
diff --git a/npc/re/instances/WolfchevLaboratory.txt b/npc/re/instances/WolfchevLaboratory.txt
index 6eadd612e..08ac36161 100644
--- a/npc/re/instances/WolfchevLaboratory.txt
+++ b/npc/re/instances/WolfchevLaboratory.txt
@@ -837,7 +837,7 @@ lhz_cube,233,24,4 script Sorcerer#Bio4Reward 4_M_UMDANCEKID,{
mes "[Pudding]";
mes "OKAY! In which equipment you want to dwell the power?";
next;
- setarray .@parts[0], EQI_ARMOR, EQI_HAND_L, EQI_HAND_R, EQI_GARMENT, EQI_ACC_L, EQI_ACC_R, EQI_HEAD_LOW;
+ setarray .@parts[0], EQI_ARMOR, EQI_HAND_L, EQI_HAND_R, EQI_GARMENT, EQI_ACC_L, EQI_ACC_R, EQI_HEAD_TOP;
for(.@i = 0; .@i < 7; .@i++) {
if(!getequipisequiped(.@parts[.@i])) {
switch(.@i) {
@@ -936,14 +936,14 @@ lhz_cube,233,24,4 script Sorcerer#Bio4Reward 4_M_UMDANCEKID,{
.@position = EQI_ACC_R;
break;
case 8:
- if(!getequipisequiped(EQI_HEAD_LOW)) {
+ if(!getequipisequiped(EQI_HEAD_TOP)) {
mes "[Pudding]";
mes "Hey.. Are you not wearing any Helm?";
close2;
enable_items;
end;
}
- .@position = EQI_HEAD_LOW;
+ .@position = EQI_HEAD_TOP;
break;
}
.@refine_count = getequiprefinerycnt(.@position);