summaryrefslogtreecommitdiff
path: root/npc/017-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-13 00:14:20 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-13 00:14:20 -0300
commit5447c0e512d63b3b7642f3daafde072224ec850b (patch)
treeff820aa133a9a15ea31edd511a3a5367be632077 /npc/017-1
parent936ac7f01e46753ac0048dbe28a6d8cace8b6e89 (diff)
downloadserverdata-5447c0e512d63b3b7642f3daafde072224ec850b.tar.gz
serverdata-5447c0e512d63b3b7642f3daafde072224ec850b.tar.bz2
serverdata-5447c0e512d63b3b7642f3daafde072224ec850b.tar.xz
serverdata-5447c0e512d63b3b7642f3daafde072224ec850b.zip
Nowhere man from LoF
Diffstat (limited to 'npc/017-1')
-rw-r--r--npc/017-1/_import.txt1
-rw-r--r--npc/017-1/nowhere_man.txt77
2 files changed, 78 insertions, 0 deletions
diff --git a/npc/017-1/_import.txt b/npc/017-1/_import.txt
index 1233f5fa5..865a28863 100644
--- a/npc/017-1/_import.txt
+++ b/npc/017-1/_import.txt
@@ -4,5 +4,6 @@
"npc/017-1/_warps.txt",
"npc/017-1/guards.txt",
"npc/017-1/mapflags.txt",
+"npc/017-1/nowhere_man.txt",
"npc/017-1/signs.txt",
"npc/017-1/soul-menhir.txt",
diff --git a/npc/017-1/nowhere_man.txt b/npc/017-1/nowhere_man.txt
new file mode 100644
index 000000000..be90dbe3f
--- /dev/null
+++ b/npc/017-1/nowhere_man.txt
@@ -0,0 +1,77 @@
+// TMW2/LoF scripts.
+// Authors:
+// TMW-LoF Team
+// Jesusalva
+// Description:
+// Leather gloves.
+// IMPORTANT @Saulc : DO NOT GIVE ANY EXPERIENCE ON THIS NPC.
+// This is sort of a bet, you know. “Go hunt Mountain Snakes”, or bet some precious
+// crafting material on this NPC. Two choices. The easy way is RISKY, not REWARDING.
+// The refund is the exact fair price, retrieved from database. The only "loss" here
+// is that you would rather do something else with Leather Patch but instead, you "sold" it.
+// If you sell items you don't get experience, so you shouldn't get any exp here either.
+
+017-1,155,162,0 script Nowhere Man NPC_UKAR,{
+ mesn;
+ mesq l("Welcome! I come from nowhere, and I hunt Mountain Snakes. One of their rare drops are the @@!", getitemlink(LeatherGloves));
+ next;
+ mesn;
+ mesq l("Of course, with 5 @@ and 3000 GP I could make one too, but I can fail.", getitemlink(LeatherPatch));
+ next;
+ mesn;
+ mesq l("If I fail, I'll refund you in gold. Do you want me to try it?");
+ next;
+ if (askyesno() != ASK_YES) {
+ mesn;
+ mesq l("Well, that's a pity! I used to know the formula to make @@, but you know. Old age.", getitemlink(SulfurPowder));
+ close;
+ }
+ if (countitem(LeatherPatch) < 5 || Zeny < 3000)
+ goto L_Missing;
+ inventoryplace LeatherGloves, 1;
+ delitem LeatherPatch, 5;
+ Zeny=Zeny-3000;
+ if (rand(1,100) > 40)
+ goto L_Success;
+ else
+ goto L_Failure;
+
+L_Failure:
+ mesn;
+ mesq l("Aah, the old age. Sorry. I won't be able to make the gloves for you today. %%3");
+ Zeny=Zeny+(getiteminfo(LeatherPatch, ITEMINFO_SELLPRICE)*5)+3000;
+ next;
+ mesn;
+ mesq l("As promised, here is @@ GP, the fair price for your material, and refunds.", format_number((getiteminfo(LeatherPatch, ITEMINFO_SELLPRICE)*5)+3000));
+ close;
+
+L_Success:
+ getitem LeatherGloves, 1;
+ mesn;
+ mesq l("Well, look at it: I did it!");
+ next;
+ mesn;
+ mesq l("Please, enjoy your leather gloves.");
+ close;
+
+L_Missing:
+ mesn;
+ mesq l("That's not everything I asked for.");
+ close;
+
+
+OnInit:
+ .@npcId = getnpcid(0, .name$);
+ setunitdata(.@npcId, UDT_HEADTOP, IceGladius);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, CreasedShirt);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
+ setunitdata(.@npcId, UDT_WEAPON, CreasedShorts);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 2);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 4);
+
+ .sex=G_MALE;
+ .distance=5;
+ end;
+
+}
+