summaryrefslogtreecommitdiff
path: root/npc/009-3
diff options
context:
space:
mode:
Diffstat (limited to 'npc/009-3')
-rw-r--r--npc/009-3/_import.txt7
-rw-r--r--npc/009-3/_mobs.txt6
-rw-r--r--npc/009-3/_warps.txt6
-rwxr-xr-xnpc/009-3/mapflags.txt1
-rwxr-xr-xnpc/009-3/sword.txt175
-rwxr-xr-xnpc/009-3/warp.txt26
6 files changed, 221 insertions, 0 deletions
diff --git a/npc/009-3/_import.txt b/npc/009-3/_import.txt
new file mode 100644
index 00000000..ad094dec
--- /dev/null
+++ b/npc/009-3/_import.txt
@@ -0,0 +1,7 @@
+// Map 009-3: Hurnscald Cave
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/009-3/_mobs.txt",
+"npc/009-3/_warps.txt",
+"npc/009-3/mapflags.txt",
+"npc/009-3/sword.txt",
+"npc/009-3/warp.txt",
diff --git a/npc/009-3/_mobs.txt b/npc/009-3/_mobs.txt
new file mode 100644
index 00000000..888cc0f2
--- /dev/null
+++ b/npc/009-3/_mobs.txt
@@ -0,0 +1,6 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 009-3: Hurnscald Cave mobs
+009-3,0,0,0,0 monster Little Blub 1007,20,0,0
+009-3,62,75,62,75 monster Toppy Blub 1009,25,0,0
+009-3,63,75,63,75 monster Blub 1008,35,0,0
+009-3,145,75,55,75 monster Beehive 1056,20,100000,30000
diff --git a/npc/009-3/_warps.txt b/npc/009-3/_warps.txt
new file mode 100644
index 00000000..24b75cc1
--- /dev/null
+++ b/npc/009-3/_warps.txt
@@ -0,0 +1,6 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 009-3: Hurnscald Cave warps
+009-3,173,20,0 warp #009-3_173_20 0,0,009-2,147,89
+009-3,20,57,0 warp #009-3_20_57 0,0,011-4,129,87
+009-3,157,30,0 warp #009-3_157_30 0,0,018-3,179,180
+009-3,117,19,0 warp #009-3_117_19 0,0,013-3,160,102
diff --git a/npc/009-3/mapflags.txt b/npc/009-3/mapflags.txt
new file mode 100755
index 00000000..120bf75f
--- /dev/null
+++ b/npc/009-3/mapflags.txt
@@ -0,0 +1 @@
+//009-3 mapflag resave 009-2,149,43
diff --git a/npc/009-3/sword.txt b/npc/009-3/sword.txt
new file mode 100755
index 00000000..b026b023
--- /dev/null
+++ b/npc/009-3/sword.txt
@@ -0,0 +1,175 @@
+009-3,26,100,0 script #MysticSword#_M NPC400,{
+ if (getskilllv(SKILL_MAGIC))
+ goto L_message;
+ close;
+
+L_message:
+ @Q_MASK = NIBBLE_6_MASK;
+ @Q_SHIFT = NIBBLE_6_SHIFT;
+ @Q_status = (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT;
+
+ // Set up SkillUp function
+ @SUP_id = SKILL_MAGIC_WAR;
+ @SUP_name$ = "War Magic";
+
+ @STATUS_INITIAL = 0;
+ @STATUS_LEARNED_FLAREDART = 1;
+ @STATUS_LEARNED_MAGICBLADE = 2;
+ @STATUS_LEVEL2 = 3;
+ @STATUS_W11 = 4;
+ @STATUS_W12 = 5;
+ @STATUS_W11_12 = 6;
+ @STATUS_L2_ALLSPELLS = 7;
+
+ if (@Q_status == @STATUS_INITIAL) goto L_Initial;
+ if (@Q_status == @STATUS_LEARNED_FLAREDART) goto L_PostFlareDart;
+ if (@Q_status == @STATUS_LEARNED_MAGICBLADE) goto L_PostFlareDart_teach2;
+ if (@Q_status == @STATUS_LEVEL2) goto L_L2_W11;
+ if (@Q_status == @STATUS_W12) goto L_L2_W11;
+ if (@Q_status == @STATUS_W11) goto L_L2_almost_done;
+ if (@Q_status == @STATUS_W11_12) goto L_L2_almost_done;
+
+ mes "[Magic Sword]";
+ mes "\"Come back when thou art stronger.\"";
+ close;
+
+L_Initial:
+ mes "[Magic Sword]";
+ mes "As you look at the sword, you suddenly hear a voice in your head!";
+ mes "\"Welcome to my prison, mortal!\"";
+ next;
+ mes "[Magic Sword]";
+ mes "Well, either you are going mad, or that sword in the stone is talking to you.";
+ next;
+ mes "[Magic Sword]";
+ mes "Or, well, both.";
+ next;
+ mes "[Magic Sword]";
+ mes "The deep basso voice continues.";
+ mes "\"I know not what brought thee hither, but I kindly ask that thou leavest me alone in my sorrow.\"";
+ next;
+ menu
+ "Leave", L_close,
+ "Sorry.", L_Next,
+ "Who or what are you?", L_Next,
+ "What sorrow?", L_Next,
+ "Can I help?", L_Next,
+ "Can you teach me magic?", L_Next;
+
+L_Next:
+ mes "[Magic Sword]";
+ mes "There is no answer.";
+ close;
+
+L_PostFlareDart:
+ mes "[Magic Sword]";
+ mes "As you look at the sword, you hear a deep voice resounding in your head.";
+ mes "\"Welcome, mortal!\"";
+ next;
+ menu
+ "Hi! How are you?", L_PostFlareDart_hi,
+ "Can you teach me magic?", L_PostFlareDart_teach,
+ "Your sister sent me.", L_PostFlareDart_sister,
+ "Bye!", L_close;
+
+L_PostFlareDart_hi:
+ mes "[Magic Sword]";
+ mes "\"Mortal... I have seen pain and death beyond thine reckoning! Mock me not with thine idle questions!\"";
+ close;
+
+L_PostFlareDart_sister:
+ mes "[Magic Sword]";
+ mes "\"My sister...? Alas! I remember now; abandoned she was, just as I; buried in stone, never to be wielded again.\"";
+ mes "\"Wherefore did she send thee?\"";
+ next;
+ menu
+ "She asked me to ask you to teach me a spell.", L_PostFlareDart_teach;
+
+L_PostFlareDart_teach:
+ mes "[Magic Sword]";
+ mes "\"Beware, mortal... the only spells I can teach thee are those of the school of war. Dark and dreary spells, that lot! Pain and misery is all they bring...\"";
+ next;
+ mes "[Magic Sword]";
+ mes "The sword's voice is growing apprehensive.";
+ mes "\"Once a spell has been learned, it cannot be taken back, no more than a death can be undone. So be careful, mortal... dost thou truly wish to know the secrets of thus destructive power?\"";
+ next;
+ menu
+ "Yes.", L_Next1,
+ "No.", L_close;
+
+L_Next1:
+ mes "[Magic Sword]";
+ mes "\"So thou art bound to the path of War, as am I, as is my sister...\"";
+ next;
+ mes "[Magic Sword]";
+ mes "\"So be it, fellow warrior. Hear the incantation for the blade spell: '" + get(.invocation$, "magic-blade") + "'\"";
+ mes "\"Hold a knife, sharp or regular, when thou speakest it.\"";
+ @Q_status = @STATUS_LEARNED_MAGICBLADE;
+ callsub S_Update_Var;
+ next;
+ mes "[Magic Sword]";
+ mes "\"But beware... the path of war that thou hast embarked upon is one from which few return. May luck be on thy side...\"";
+ close;
+
+L_PostFlareDart_teach2:
+ mes "[Magic Sword]";
+ mes "\"Seek out my sister, and leave me alone in my sorrows.\"";
+ next;
+ goto L_close;
+
+L_close:
+ close;
+
+L_L2_W11:
+ mes "[Magic Sword]";
+ mes "\"Thou hast returned. That must mean that thy wish to learn the magic of war is still alive?\"";
+ next;
+ menu
+ "No, I just wanted to say `hi'.", L_Farewell2,
+ "Yes, teach me more!", L_Next2;
+
+L_Next2:
+ mes "[Magic Sword]";
+ mes "\"If that is thou wishest, I shall not stop thee. But do not expect to find merriment down this road.\"";
+ mes "\"I must ask that thou sacrificest five thousand monster points for this, however.\"";
+ menu
+ "No, I don't want that.", L_close,
+ "Very well.", L_Next3;
+
+L_Next3:
+ if (Mobpt < 5000)
+ goto L_lacking_mobpoints;
+ mes "[Magic Sword]";
+ mes "\"So be it, then.\"";
+ mes "[1000 experience points]";
+ Mobpt = Mobpt - 5000;
+ getexp 1000, 0;
+ @Q_status = @Q_status + 1;
+ callsub S_Update_Var;
+ next;
+ mes "[Magic Sword]";
+ mes "\"The spell I shall teach thee is the hail of arrows spell. It will make arrows fall down from the heavens unto thy enemies.\"";
+ next;
+ mes "[Magic Sword]";
+ mes "\"Take twenty arrows, sprinkle sulphur powder over them, and then speak '" + get(.invocation$, "arrow-hail") + "'. Throw them high up in the air, and watch the hail unfold before thy feet.\"";
+ close;
+
+L_L2_almost_done:
+ mes "[Magic Sword]";
+ mes "\"Return to my sister now. I expect that she shall teach thee one more spell.\"";
+ close;
+
+L_lacking_mobpoints:
+ mes "[Magic Sword]";
+ mes "\"Thou lackest the monster points needed to prove thy worthiness. I shall not reveal more to thee until thou hast slain more monsters.\"";
+ close;
+
+L_Farewell2:
+ mes "[Magic Sword]";
+ mes "\"Please leave me in peace.\"";
+ close;
+
+S_Update_Var:
+ QUEST_MAGIC = (QUEST_MAGIC & ~(@Q_MASK) | (@Q_status << @Q_SHIFT));
+ return;
+}
diff --git a/npc/009-3/warp.txt b/npc/009-3/warp.txt
new file mode 100755
index 00000000..f0313c42
--- /dev/null
+++ b/npc/009-3/warp.txt
@@ -0,0 +1,26 @@
+009-3,162,80,0 script #PVPCaveBarrier NPC45,0,0,{
+ mes "Do you want to enter the PVP cave? It costs 150GP.";
+ menu
+ "No.", L_Exit,
+ "Yes.", L_Next;
+
+L_Next:
+ if (Zeny < 150)
+ goto L_NotEnoughMoney;
+ if (Zeny >= 150)
+ goto L_Pay;
+ goto L_Exit;
+
+L_Exit:
+ close;
+
+L_Pay:
+ Zeny = Zeny - 150;
+ warp "009-6", 36, 47;
+ close;
+
+L_NotEnoughMoney:
+ mes "You don't have enough money!";
+ close;
+
+}