summaryrefslogtreecommitdiff
path: root/npc/027-2_Caretakers_House
diff options
context:
space:
mode:
Diffstat (limited to 'npc/027-2_Caretakers_House')
-rw-r--r--npc/027-2_Caretakers_House/_import.txt11
-rw-r--r--npc/027-2_Caretakers_House/_warps.txt21
-rwxr-xr-xnpc/027-2_Caretakers_House/alacrius.txt40
-rwxr-xr-xnpc/027-2_Caretakers_House/alacrius2.txt113
-rwxr-xr-xnpc/027-2_Caretakers_House/gy_inn_shops.txt35
-rwxr-xr-xnpc/027-2_Caretakers_House/testnpcs.txt74
6 files changed, 290 insertions, 4 deletions
diff --git a/npc/027-2_Caretakers_House/_import.txt b/npc/027-2_Caretakers_House/_import.txt
index 58d2b8c0..e288d6cb 100644
--- a/npc/027-2_Caretakers_House/_import.txt
+++ b/npc/027-2_Caretakers_House/_import.txt
@@ -1,4 +1,7 @@
-map: 027-2.gat
-npc: npc/027-2_Caretakers_House/_mobs.txt
-npc: npc/027-2_Caretakers_House/_warps.txt
-npc: npc/027-2_Caretakers_House/caretaker.txt
+map: 027-2.gat
+npc: npc/027-2_Caretakers_House/_mobs.txt
+npc: npc/027-2_Caretakers_House/_warps.txt
+npc: npc/027-2_Caretakers_House/caretaker.txt
+npc: npc/027-2_Caretakers_House/alacrius.txt
+npc: npc/027-2_Caretakers_House/gy_inn_shops.txt
+npc: npc/027-2_Caretakers_House/testnpcs.txt \ No newline at end of file
diff --git a/npc/027-2_Caretakers_House/_warps.txt b/npc/027-2_Caretakers_House/_warps.txt
index 8b7af158..160e4dae 100644
--- a/npc/027-2_Caretakers_House/_warps.txt
+++ b/npc/027-2_Caretakers_House/_warps.txt
@@ -1,3 +1,24 @@
// 027-2 Caretaker's House warps
+<<<<<<< HEAD
+027-2.gat,25,32 warp toGraveyard -1,-1,027-1.gat,88,85
+
+
+
+// 027-2 Graveyard Inn 1rst floor Warps
+
+027-2.gat,127,35,0 warp ToInnSecondFloorL -1,-1,027-2.gat,75,92
+027-2.gat,128,35,0 warp ToInnSecondFloorR -1,-1,027-2.gat,76,92
+027-2.gat,106,46,0 warp GYInnExit 1,-1,debugroom.gat,30,27
+
+027-2.gat,111,37,0 warp ToReaper 1,-1,027-4.gat,40,38
+
+
+
+// 027-2 Graveyard Inn 2nd floor Warps
+
+027-2.gat,75,93,0 warp ToInnFirstFloorL -1,-1,027-2.gat,127,36
+027-2.gat,76,93,0 warp ToInnFirstFloorR -1,-1,027-2.gat,128,36
+=======
027-2.gat,26,33 warp toGraveyard -1,-1,027-1.gat,88,85
+>>>>>>> 1e1e26e1255a487a14ca99c60c3ab51ad3988f9b
diff --git a/npc/027-2_Caretakers_House/alacrius.txt b/npc/027-2_Caretakers_House/alacrius.txt
new file mode 100755
index 00000000..eee471ad
--- /dev/null
+++ b/npc/027-2_Caretakers_House/alacrius.txt
@@ -0,0 +1,40 @@
+// Starts the reaper quest
+
+027-2.gat,104,39,0 script Alacrius 313,{
+ // if started, go to started
+ // if fail go to failed
+ // if complete go to complete
+ // if cooldown go to cooldown
+
+// start quest section
+ mes "hi want to fight the reaper?";
+ menu
+ "Let's go",L_START,
+ "No thank you",-;
+ close;
+
+L_START:
+ monster "027-4.gat",40,55,"Reaper Quest",1111,1,"Reaper::OnDead";
+ enablenpc "#gatecontrol";
+ enablenpc "#closedgate";
+ disablenpc "#opengate";
+// Open doors to reaper level
+ warp "027-3.gat",41,70;
+ initnpctimer;
+ close;
+
+// 5 min mark for testing purposes, up it when finished.
+OnTimer300000:
+ mapwarp "027-3.gat", "027-2.gat",104,41;
+ mapwarp "027-4.gat", "027-2.gat",104,41;
+ killmonsterall "027-4.gat";
+ end;
+OnTimer301000:
+ npctalk "You have failed the mission";
+ end;
+
+// cooldown before the quest can be restarted
+OnTimer360000:
+ // set quest var
+ end;
+}
diff --git a/npc/027-2_Caretakers_House/alacrius2.txt b/npc/027-2_Caretakers_House/alacrius2.txt
new file mode 100755
index 00000000..70cf0c42
--- /dev/null
+++ b/npc/027-2_Caretakers_House/alacrius2.txt
@@ -0,0 +1,113 @@
+// Starts the reaper quest
+
+027-2.gat,104,39,0 script Alacrius 313,{
+ if ($@FIGHT_ALACRIUS_STATUS != 0) goto L_Enjoy;
+
+
+ mes "[ALACRIUS]";
+ mes "\"Hello, I'm Alacrius. \"";
+ next;
+ mes "[ALACRIUS]";
+ mes "\"Very long time ago, i figured a way to cheat the death and the limits of time and space. You may think it actually is evil, but I made it because of true love... \"";
+ next;
+ mes "[ALACRIUS]";
+ mes "\"The reaper kidnapped my beloved wife, and took her to the underworld, so I had to find a way to stop him, and as time went by, I became what you can see now... But if you dare to cheat death, time and space you'll have to pay a high price... \"";
+ next;
+
+ mes "[ALACRIUS]";
+ mes "\"Being away from the time and space doesn't allow me to try to save my beloved wife... I need your help, do you think you have what it takes to handle the most powerful monsters over the world of Mana? \"";
+ next;
+
+ menu
+ "Let's go",L_PLAY_OK,
+ "No thank you",-;
+ close;
+
+
+L_PLAY_OK:
+
+ if ($@FIGHT_ALACRIUS_STATUS != 0) goto L_AlreadyStarted;
+ set $@FIGHT_ALACRIUS_STATUS, 1;
+ set $@MO_REAPER, 0;
+ startnpctimer;
+ set @PRIZE, 1;
+
+ goto L_Exit;
+
+L_Enjoy:
+ if ($@MO_REAPER == 1) goto L_AllDead;
+ mes "[ALACRIUS]";
+ mes "\"...Please hurry up, the time is running...\"";
+ goto L_Exit;
+
+L_AlreadyStarted:
+ mes "[ALACRIUS]";
+ mes "\"The Reaper is alive.\"";
+ goto L_Exit;
+
+L_Exit:
+ close;
+ end;
+
+
+// Time to fight
+OnTimer10000:
+
+ monster "027-2.gat",0,0,"Reaper Quest",1111,1,"Alacrius::OnDeadReaper";
+ end;
+
+OnDeadReaper:
+ set $@MO_REAPER, $@MO_REAPER + 1;
+ killmonster "027-2.gat","All";
+ end;
+
+OnDeadLost:
+ set $@MO_LOST, $@MO_LOST + 1;
+ end;
+
+
+OnTimer120000:
+
+ set $@MO_REAPER,0;
+ set $@FIGHT_ALACRIUS_STATUS, 0;
+ killmonster "027-2.gat","All";
+ stopnpctimer;
+ setnpctimer 0;
+ set @PRIZE, 0;
+ npctalk "Oh my beloved wife, you could not have been rescued! I will have to purge my mistakes again...";
+ npctalk "Please, help my beloved wife!!";
+
+ end;
+
+OnDead:
+ end;
+
+
+L_AllDead:
+ if(@PRIZE == 0) goto L_NOHERO;
+
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
+ getitem "CasinoCoins", 1;
+
+ mes "[ALACRIUS]";
+ mes "Thank you very much, you saved my love!! Here you are, a prize according to the dangers you've been exposed to.";
+ set @PRIZE , 0;
+ set $@MO_REAPER,0;
+ close;
+ end;
+
+L_TooMany:
+ mes "[ALACRIUS]";
+ mes "You have no room for the reward.";
+ close;
+
+L_NOHERO:
+ mes "[ALACRIUS]";
+ mes "Sorry, but you didn't save my love... Try it again when you're ready...";
+ close;
+ end;
+OnInit:
+ initnpctimer;
+ stopnpctimer;
+} \ No newline at end of file
diff --git a/npc/027-2_Caretakers_House/gy_inn_shops.txt b/npc/027-2_Caretakers_House/gy_inn_shops.txt
new file mode 100755
index 00000000..66050e9d
--- /dev/null
+++ b/npc/027-2_Caretakers_House/gy_inn_shops.txt
@@ -0,0 +1,35 @@
+// chef: function,
+// barmaid: function,
+// shopkeeper: multiples and function,
+// magic undead shop: function,
+// chief barman: function,
+// receptionist: function,
+// banker: function
+
+
+027-2.gat,113,28,0 shop Chef Skeleton 300,519:100
+027-2.gat,101,28,0 shop Barmaid 301,519:100,533:150,534:90,562:500,676:200
+027-2.gat,103,28,0 shop Shopkeeper 302,586:1000,524:1600,544:10000,632:10000,528:1000,735:1
+027-2.gat,107,28,0 shop Magic Undead Shop 304,501
+027-2.gat,117,28,0 shop Chief Barman 309,539:175,567:500,568:500
+
+// Inn
+027-2.gat,107,39,0 script Bloody Receptionist 320,{
+ set @npcName$, "Barbara Grey";
+ set @cost, 1000;
+
+ mes "[" + @npcName$ + "]";
+ mes "\"Don't be shy darling.";
+ mes "\"Come on in and have a nice long ... long slumber ...";
+ next;
+ callfunc "Inn";
+ close;
+}
+
+// Bank and Storage
+027-2.gat,119,31,0 script Undead Banker 321,{
+ set @npcName$, "J.P. Morbid";
+ callfunc "Banker";
+ close;
+}
+
diff --git a/npc/027-2_Caretakers_House/testnpcs.txt b/npc/027-2_Caretakers_House/testnpcs.txt
new file mode 100755
index 00000000..ffae6246
--- /dev/null
+++ b/npc/027-2_Caretakers_House/testnpcs.txt
@@ -0,0 +1,74 @@
+// Temporary placing of all non shop npcs
+// A proper break down of files will need to be done later
+
+// drunk lover: quest,
+// werewolf: gambling,
+// chef's helper: simple dialog,
+// horn mage: golbenez,
+// drunker: simple dialog,
+// barman: crafting related,
+// swordguy: weapon master,
+// ghost from dead drunk: simple dialog,
+// crying child: I don't know,
+// Innkeeper's ghost: quest,
+// evil guard: simple dialog,
+// hangman: quest,
+// headless: quest or simple dialog,
+// lightman: quest,
+
+
+027-2.gat,105,28,0 script Drunk Lover 303,{
+ end;
+}
+
+027-2.gat,109,28,0 script Werewolf 305,{
+ end;
+}
+
+027-2.gat,111,28,0 script Chef's helper 306,{
+ end;
+}
+
+027-2.gat,115,28,0 script Drunker 308,{
+ end;
+}
+
+027-2.gat,119,28,0 script Barman 310,{
+ end;
+}
+
+027-2.gat,117,31,0 script SwordGuy 311,{
+ end;
+}
+
+027-2.gat,101,31,0 script Ghost Drunker 312,{
+ end;
+}
+
+027-2.gat,103,31,0 script Golbenez 307,{
+ end;
+}
+
+027-2.gat,105,31,0 script Crying Child 314,{
+ end;
+}
+
+027-2.gat,107,31,0 script Innkeeper's Ghost 315,{
+ end;
+}
+
+027-2.gat,109,31,0 script Evil Guard 316,{
+ end;
+}
+
+027-2.gat,111,31,0 script Hanged Lover 317,{
+ end;
+}
+
+027-2.gat,113,31,0 script Headless Lover 318,{
+ end;
+}
+
+027-2.gat,115,31,0 script Lantern Man 319,{
+ end;
+}