summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/quest_db.conf4
-rw-r--r--npc/017-3/doug.txt47
2 files changed, 31 insertions, 20 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf
index 1c4ae7f4f..a03cc9b7e 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -266,6 +266,10 @@ quest_db: (
Id: 272
Name: "LoFQuest_Fairy"
},
+{
+ Id: 273
+ Name: "LoFQuest_Doug"
+},
// ID 300 to 320: Seasonal/Annual/Monthly quests
{
diff --git a/npc/017-3/doug.txt b/npc/017-3/doug.txt
index 30e28e392..bde54a8e0 100644
--- a/npc/017-3/doug.txt
+++ b/npc/017-3/doug.txt
@@ -7,29 +7,36 @@
// Weekly Quest
017-3,68,87,0 script Doug NPC_PLAYER,{
- close; // Disabled
- mesn;
- mesq l("This room is too dark. I want to brighten it up.");
- next;
- .@price=(getiteminfo(CaveSnakeLamp, ITEMINFO_SELLPRICE)*3)*8;
- mesn;
- mesq l("I am willing to pay @@ GP for 10 @@ you bring me!", .@price, getitemlink(CaveSnakeLamp));
- next;
- select
- rif(countitem(CaveSnakeLamp) >= 10, l("Here they are!")),
- l("Not now...");
- mes "";
- if (@menu == 1) {
- delitem CaveSnakeLamp, 10;
- Zeny=Zeny+.@price; //864
- getexp (.@price*rand(1,2)), 10; // 864 - 1728
+ .@q2=getq2(LoFQuest_Doug);
+ if (.@q2 < santime() || gcsantime(.@q2)) {
mesn;
- mesq l("Many, many thanks!");
+ mesq l("This room is too dark. I want to brighten it up.");
next;
+ .@price=(getiteminfo(CaveSnakeLamp, ITEMINFO_SELLPRICE)*3)*8;
+ mesn;
+ mesq l("I am willing to pay @@ GP for 10 @@ you bring me!", .@price, getitemlink(CaveSnakeLamp));
+ next;
+ select
+ rif(countitem(CaveSnakeLamp) >= 10, l("Here they are!")),
+ l("Not now...");
+ mes "";
+ if (@menu == 1) {
+ delitem CaveSnakeLamp, 10;
+ Zeny=Zeny+.@price; //864
+ getexp (.@price*rand(1,2)), 10; // 864 - 1728
+ setq2 LoFQuest_Doug, santime()+(60*60*24*7);
+ mesn;
+ mesq l("Many, many thanks!");
+ next;
+ }
+ mesn;
+ mesq l("Too bad these lamps wear off after a while... I am making stocks of them now!");
+ close;
+ } else {
+ mesn;
+ mesq l("Thanks for the help!");
+ close;
}
- mesn;
- mesq l("Too bad these lamps wear off after a while... I am making stocks of them now!");
- close;
OnInit:
.@npcId = getnpcid(0, .name$);