summaryrefslogtreecommitdiff
path: root/npc/018-2-4/lv2.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-20 04:15:23 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-20 04:15:23 -0200
commit95f376d0c2f102ed17e0979c988aa5a1c15efdd5 (patch)
tree80d449827ebb33b8dfabf54625b9fb1cc3fc7e75 /npc/018-2-4/lv2.txt
parentcf9d7237c0bad868c77f4344a1e2a748e7e2d11d (diff)
downloadserverdata-95f376d0c2f102ed17e0979c988aa5a1c15efdd5.tar.gz
serverdata-95f376d0c2f102ed17e0979c988aa5a1c15efdd5.tar.bz2
serverdata-95f376d0c2f102ed17e0979c988aa5a1c15efdd5.tar.xz
serverdata-95f376d0c2f102ed17e0979c988aa5a1c15efdd5.zip
Minimal version of exchangers (WIP)
Diffstat (limited to 'npc/018-2-4/lv2.txt')
-rw-r--r--npc/018-2-4/lv2.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/npc/018-2-4/lv2.txt b/npc/018-2-4/lv2.txt
new file mode 100644
index 000000000..13a832b8c
--- /dev/null
+++ b/npc/018-2-4/lv2.txt
@@ -0,0 +1,51 @@
+// TMW2/LoF scripts.
+// Authors:
+// TMW-LoF Team
+// Jesusalva
+// Description:
+// Heroes Hold Exchanger - Level 2
+
+018-2-4,40,28,0 script Advanced Exchanger#0 NPC_M_COINKEEPER,{
+ openshop;
+ closedialog;
+ close;
+
+OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, TopHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, Chainmail);
+ setunitdata(.@npcId, UDT_WEAPON, JeansShorts);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 25);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 4);
+
+ .sex = G_OTHER;
+ .distance = 5;
+ npcsit;
+
+ tradertype(NST_CUSTOM);
+
+ sellitem ElixirOfLife,320;
+ sellitem CelestiaTea,180;
+ sellitem HastePotion,150;
+ sellitem StrengthPotion,150;
+ sellitem Grenade,rand(90,140); // I really don't care about the price of this. Used to be 12.
+ sellitem CursedArrow,80;
+ sellitem Curshroom,60;
+ end;
+
+OnCountFunds:
+ setcurrency(countitem(HeroCoin));
+ end;
+
+OnPayFunds:
+ if( countitem(HeroCoin) < @price )
+ end;
+ delitem HeroCoin,@price;
+ purchaseok();
+ end;
+
+}
+
+018-2-4,40,49,0 duplicate(Advanced Exchanger#0) Advanced Exchanger#1 NPC_M_COINKEEPER
+