summaryrefslogtreecommitdiff
path: root/npc/017-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-15 22:58:36 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-15 22:58:36 -0300
commit4b613d8f6c5981b499cef600596640b7a8cc0718 (patch)
tree536ef505241a45785e2c71e2b1caf814f9f0b7dc /npc/017-3
parent81e9cbc27146be24dc98acda00d9f57885398efb (diff)
downloadserverdata-4b613d8f6c5981b499cef600596640b7a8cc0718.tar.gz
serverdata-4b613d8f6c5981b499cef600596640b7a8cc0718.tar.bz2
serverdata-4b613d8f6c5981b499cef600596640b7a8cc0718.tar.xz
serverdata-4b613d8f6c5981b499cef600596640b7a8cc0718.zip
Doug quest is weekly
Diffstat (limited to 'npc/017-3')
-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$);