diff options
-rw-r--r-- | db/quest_db.conf | 4 | ||||
-rw-r--r-- | npc/012-1/guards.txt | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf index 5e9d9ac95..dce9e432c 100644 --- a/db/quest_db.conf +++ b/db/quest_db.conf @@ -281,6 +281,10 @@ quest_db: ( Id: 101 Name: "HurnscaldQuest_Lieutenant" }, +{ + Id: 102 + Name: "HurnscaldQuest_HungryGuard" +}, // ID 111 to 130: Nivalis Quests { diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt index ae643b350..4238af41c 100644 --- a/npc/012-1/guards.txt +++ b/npc/012-1/guards.txt @@ -546,6 +546,28 @@ OnInit: } 012-1,94,56,0 script Guard#012-1.1 NPC_GUARD1,{ + .@q=getq(HurnscaldQuest_HungryGuard); + if (.@q == 0) { + mesn l("Guard"); + mesq l("Hey, you! Could you bring me an @@?", getitemlink(RedApple)); + next; + mesn l("Guard"); + mesq l("I'm hungry like a bear :b"); + if (!countitem(RedApple)) + close; + select + l("Here, you can have this one!"), + l("Nope, sorry!"); + mes ""; + if (@menu == 1) { + delitem RedApple, 1; + setq HurnscaldQuest_HungryGuard, 1; + getexp 500, 0; + mesn l("Guard"); + mesq l("Oooh, many thanks! ^.^"); + } + close; + } legiontalk; end; |