diff options
author | Reid <reidyaro@gmail.com> | 2012-09-17 00:24:26 +0200 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2012-09-17 00:24:54 +0200 |
commit | c05713f1ee062e5ac6c51d21d02115d8fca3b9c8 (patch) | |
tree | bdcdd709154a7c3665149784392f5993c9d28c0a /npc | |
parent | 8e18a985ee45cc818e65c202ec3d5af20a279df3 (diff) | |
download | clientdata-c05713f1ee062e5ac6c51d21d02115d8fca3b9c8.tar.gz clientdata-c05713f1ee062e5ac6c51d21d02115d8fca3b9c8.tar.bz2 clientdata-c05713f1ee062e5ac6c51d21d02115d8fca3b9c8.tar.xz clientdata-c05713f1ee062e5ac6c51d21d02115d8fca3b9c8.zip |
Add basic of Gugli quest.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/000-1/darlin.txt | 4 | ||||
-rw-r--r-- | npc/000-1/gugli.txt | 40 | ||||
-rw-r--r-- | npc/000-2-3/nard.txt | 29 |
3 files changed, 64 insertions, 9 deletions
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; } |