summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/017-3/doug.txt47
1 files changed, 27 insertions, 20 deletions
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$);