diff options
author | Reid <reidyaro@gmail.com> | 2016-03-24 22:23:40 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-03-24 22:23:40 +0100 |
commit | b9088b834419414b1dab70c6db6661cd1d25d98f (patch) | |
tree | d162e455ee1f891fab74fbbea78c5915a7e28676 | |
parent | 640ae8bcc49ad7f583e88c002e76937b5f77ca07 (diff) | |
download | serverdata-b9088b834419414b1dab70c6db6661cd1d25d98f.tar.gz serverdata-b9088b834419414b1dab70c6db6661cd1d25d98f.tar.bz2 serverdata-b9088b834419414b1dab70c6db6661cd1d25d98f.tar.xz serverdata-b9088b834419414b1dab70c6db6661cd1d25d98f.zip |
Add empty Janus script with a quest ID on the quest db.
-rw-r--r-- | db/quest_db.conf | 4 | ||||
-rw-r--r-- | npc/001-2-9/_import.txt | 2 | ||||
-rw-r--r-- | npc/001-2-9/janus.txt | 37 |
3 files changed, 40 insertions, 3 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf index 9ac5f495..d52ced5a 100644 --- a/db/quest_db.conf +++ b/db/quest_db.conf @@ -149,4 +149,8 @@ quest_db: ( Id: 30 Name: "ArtisQuests_Lloyd" }, +{ + Id: 31 + Name: "General_Janus" +}, ) diff --git a/npc/001-2-9/_import.txt b/npc/001-2-9/_import.txt index 7e72fe1e..bdcc5b8d 100644 --- a/npc/001-2-9/_import.txt +++ b/npc/001-2-9/_import.txt @@ -1,3 +1,3 @@ -// npc: npc/001-2-9/janus.txt +npc: npc/001-2-9/janus.txt npc: npc/001-2-9/mapflags.txt npc: npc/001-2-9/_warps.txt diff --git a/npc/001-2-9/janus.txt b/npc/001-2-9/janus.txt index add99ebc..b3efe82f 100644 --- a/npc/001-2-9/janus.txt +++ b/npc/001-2-9/janus.txt @@ -5,8 +5,42 @@ // Party NPC 001-2-9,30,28,0 script Janus NPC_JANUS,{ + function explain_service { + speech 5, l("?"); + + return; + } + speech 4, - l("Croc!"); + l("!"); + + menuint rif (General_Janus == 1, l("Field 1")), 1, + rif (General_Janus == 2, l("Field 2")), 2, + l("What service do you offer?"), 3, + l("Your name is Ianus or Janus?"), 4; + + switch (@menuret) + { + case 1: + speech 5, + l(""); + break; + case 2: + speech 5, + l(""); + break; + case 3: + explain_service; + break; + case 4: + speech 5, + l("Janus!"); + emotion 11; + + speech 12, + l("Ianus is from the legion of Aemil, don't compare me to this brigand."); + break; + } closedialog; goodbye; @@ -17,4 +51,3 @@ OnInit: .distance = 3; end; } - |