summaryrefslogtreecommitdiff
path: root/npc/017-3/doug.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-12 14:30:29 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-12 14:30:29 -0300
commit3bc9fcaeaedd159077cf80c9bc4bb551afeb63a9 (patch)
tree17eb450eae0667f8ce5722d9a3f883c94f14cba9 /npc/017-3/doug.txt
parent62e0ab4a2b093c30ad8ce22fbb5e501b6be83259 (diff)
downloadserverdata-3bc9fcaeaedd159077cf80c9bc4bb551afeb63a9.tar.gz
serverdata-3bc9fcaeaedd159077cf80c9bc4bb551afeb63a9.tar.bz2
serverdata-3bc9fcaeaedd159077cf80c9bc4bb551afeb63a9.tar.xz
serverdata-3bc9fcaeaedd159077cf80c9bc4bb551afeb63a9.zip
Dimond's Cove NPCs
Diffstat (limited to 'npc/017-3/doug.txt')
-rw-r--r--npc/017-3/doug.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/npc/017-3/doug.txt b/npc/017-3/doug.txt
new file mode 100644
index 000000000..4a38f7838
--- /dev/null
+++ b/npc/017-3/doug.txt
@@ -0,0 +1,45 @@
+// TMW2/LoF scripts.
+// Authors:
+// TMW-LoF Team
+// Jesusalva
+// Description:
+// Permanently repeatable quest, without any special limit
+
+017-3,68,87,0 script Doug NPC_PLAYER,{
+ mesn;
+ mesq l("This room is too dark. I want to brighten it up.");
+ next;
+ .@price=*getiteminfo(CaveSnakeLamp, ITEMINFO_SELLPRICE)*11/10)*5;
+ mesn;
+ mesq l("I am willing to pay @@ GP for each 5 @@ you bring me!", .@price, getitemlink(CaveSnakeLamp));
+ next;
+ select
+ rif(countitem(CaveSnakeLamp >= 5), l("Here they are!")),
+ l("Not now...");
+ mes "";
+ if (@menu == 1) {
+ delitem CaveSnakeLamp, 5;
+ Zeny=Zeny+.@price;
+ getexp .@price, 5;
+ 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;
+
+OnInit:
+ .@npcId = getnpcid(0, .name$);
+ setunitdata(.@npcId, UDT_HEADTOP, FancyHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, CreasedShirt);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
+ setunitdata(.@npcId, UDT_WEAPON, CandorBoots); // Boots
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 2);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 4);
+
+ .sex=G_MALE;
+ .distance=5;
+ end;
+}
+