summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/const.txt1
-rw-r--r--db/questvars.txt33
-rw-r--r--npc/000-1/darlin.txt4
-rw-r--r--npc/000-1/gugli.txt40
-rw-r--r--npc/000-2-3/nard.txt29
5 files changed, 82 insertions, 25 deletions
diff --git a/db/const.txt b/db/const.txt
index a36b3d21..e5652392 100644
--- a/db/const.txt
+++ b/db/const.txt
@@ -216,3 +216,4 @@ ShipQuests_Gulukan 12
ShipQuests_Jalad 13
ShipQuests_QMuller 14
ShipQuests_Tibbo 15
+ShipQuests_Gugli 16 \ No newline at end of file
diff --git a/db/questvars.txt b/db/questvars.txt
index ad1f898a..21d5f4d7 100644
--- a/db/questvars.txt
+++ b/db/questvars.txt
@@ -7,19 +7,20 @@
// JJAA PPPP AAKA DTNN D
// uull eeee rrnM oCAA a
-ShipQuests,3,1 // ShipQuests_Julia 0
-ShipQuests,3,256 // ShipQuests_Arpan 1
-ShipQuests,3,4 // ShipQuests_Alige 2
-ShipQuests,15,16 // ShipQuests_Peter 3
-ShipQuests,3,32768 // ShipQuests_Nard 4
-ShipQuests,1,1024 // ShipQuests_Knife 5
-ShipQuests,1,2048 // ShipQuests_ArpanMoney 6
-ShipQuests,1,4096 // ShipQuests_Door 7
-ShipQuests,3,8192 // ShipQuests_Darlin 8
-ShipQuests,3,131072 // ShipQuests_Couwan 9
-ShipQuests,1,262144 // ShipQuests_Ale 10
-ShipQuests,1,524288 // ShipQuests_Astapolos 11
-ShipQuests,1,1048576 // ShipQuests_Gulukan 12
-ShipQuests,1,2097152 // ShipQuests_Jalad 13
-ShipQuests,1,4194304 // ShipQuests_QMuller 14
-ShipQuests,1,8388608 // ShipQuests_Tibbo 15
+ShipQuests,3,1 // ShipQuests_Julia 0
+ShipQuests,3,256 // ShipQuests_Arpan 1
+ShipQuests,3,4 // ShipQuests_Alige 2
+ShipQuests,15,16 // ShipQuests_Peter 3
+ShipQuests,3,32768 // ShipQuests_Nard 4
+ShipQuests,1,1024 // ShipQuests_Knife 5
+ShipQuests,1,2048 // ShipQuests_ArpanMoney 6
+ShipQuests,1,4096 // ShipQuests_Door 7
+ShipQuests,3,8192 // ShipQuests_Darlin 8
+ShipQuests,3,131072 // ShipQuests_Couwan 9
+ShipQuests,1,262144 // ShipQuests_Ale 10
+ShipQuests,1,524288 // ShipQuests_Astapolos 11
+ShipQuests,1,1048576 // ShipQuests_Gulukan 12
+ShipQuests,1,2097152 // ShipQuests_Jalad 13
+ShipQuests,1,4194304 // ShipQuests_QMuller 14
+ShipQuests,1,8388608 // ShipQuests_Tibbo 15
+ShipQuests,3,16777216 // ShipQuests_Gugli 16 \ No newline at end of file
diff --git a/npc/000-1/darlin.txt b/npc/000-1/darlin.txt
index 74ebe361..fab9ea17 100644
--- a/npc/000-1/darlin.txt
+++ b/npc/000-1/darlin.txt
@@ -136,8 +136,8 @@ l_Bye:
l_Quit:
close;
-OnQuestGiven:
- mesq l("HEY") + " " + strcharinfo(0) + "!";
+OnQuestGiven:
+ mesq l("HEY @@!", strcharinfo(0));
next;
mesq l("DID YOU FIND OUT WHAT THE LIGHT WAS?");
next;
diff --git a/npc/000-1/gugli.txt b/npc/000-1/gugli.txt
index 993888ab..cf02a867 100644
--- a/npc/000-1/gugli.txt
+++ b/npc/000-1/gugli.txt
@@ -4,17 +4,42 @@
// Reid
// Description:
// Elmo's twin
-// Charged of an important quest from Nard.
+// Charged of an important quest from Nard, he asks you to help other sailors to keep their box to the ship.
// Variable:
// 0 ShipQuests_Couwan
+// 1 ShipQuests_Nard
+// 2 ShipQuests_Gugli
// Values:
// 00 Never talked with Couwan.
// 01 Spoke, and received the quest scam.
// 02 Done quest scam.
+// 10 Introduction of the box and Nard. This is displayed when the player never spoke to Nard or his box.
+// 11 Nard spoke and gave access to the outdoor of the ship.
+// 12 Completed the quest.
+// 13 Opened the chest and finished the introduction.
+// 20 Never talked with Gugli.
+// 21 Gugli gives you the task.
+// 22 Gave all of the box to Gugli.
-000-1.gat,85,108,0,1 script Gugli 313;2,{
+000-1.gat,85,108,0,1 script Gugli 313,2,1;2,{
mesn;
+ set @n, getq(ShipQuests_Nard);
+ set @g, getq(ShipQuests_Gugli);
+ if (@n > 1 | @g == 2) goto l_End;
+ if (@g == 1) goto l_TaskGiven;
+ if (@g > 1) goto l_TaskCompleted;
+
+ mesq l("Hello I give you a quest.");
+ setq ShipQuests_Gugli, 1;
+ close;
+
+l_End:
+ mesq l("Hello you done the quest.");
+
+ close;
+
+l_TaskGiven:
mesq l("Great to see you! What can I do for you today?");
next;
@@ -43,4 +68,15 @@ l_Couwan:
message strcharinfo(0), l("You receive 50GP!");
close;
+l_TaskDone:
+ mesq l("Hello you just done the quest.");
+
+ setq ShipQuests_Gugli, 2;
+ close;
+
+l_TaskCompleted:
+ mesq l("Hello the quest is over.");
+
+ close;
+
}
diff --git a/npc/000-2-3/nard.txt b/npc/000-2-3/nard.txt
index 82d4f37f..064a6527 100644
--- a/npc/000-2-3/nard.txt
+++ b/npc/000-2-3/nard.txt
@@ -9,20 +9,26 @@
// ShipQuests
// Variable:
// ShipQuests_Nard
+// ShipQuests_Gugli
// Values:
-// 0 Introduction of the box and Nard. This is displayed when the player never spoke to Nard or his box.
-// 1 Nard spoke and gave access to the outdoor of the ship.
-// 2 Completed the quest.
-// 3 Opened the chest and finished the introduction.
+// 00 Introduction of the box and Nard. This is displayed when the player never spoke to Nard or his box.
+// 01 Nard spoke and gave access to the outdoor of the ship.
+// 02 Completed the quest.
+// 03 Opened the chest and finished the introduction.
+// 10 Never talked with Gugli.
+// 11 Gugli gives you the task.
+// 12 Gave all of the box to Gugli.
000-2-3.gat,25,26,0,1 script Nard 306;5,{
set @q, getq(ShipQuests_Nard);
+ set @a, getq(ShipQuests_Gugli);
l_Checker:
if (@q == 1) goto l_NotYet;
if (@q == 2) goto l_Give;
if (@q > 2) goto l_Already;
+ if (@a == 2) goto l_Done;
mesn;
mesq l("Hello.");
@@ -135,7 +141,20 @@ l_Give:
l_Already:
mesn;
- mesq l("I don't need any help right now, come back later.");
+ mesq l("I don't need any help right now, come back later.");
+
+ close;
+
+l_Done:
+ mesn;
+ mesq l("Hi @@.", strcharinfo(0));
+ next;
+ mesq l("Elmo and Gugli reported me that you done the ccccccccccccccccccccccccccccccccccccccccccccc IIIIIIIIIIICCCCCCCCCCCCCCCCIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII ");
+ next;
+
+
+
+ setq ShipQuests_Nard, 2;
close;
}