summaryrefslogtreecommitdiff
path: root/npc/018-2-4
diff options
context:
space:
mode:
Diffstat (limited to 'npc/018-2-4')
-rw-r--r--npc/018-2-4/_import.txt4
-rw-r--r--npc/018-2-4/lv1.txt51
-rw-r--r--npc/018-2-4/lv2.txt51
-rw-r--r--npc/018-2-4/lv3.txt51
-rw-r--r--npc/018-2-4/lv4.txt51
5 files changed, 208 insertions, 0 deletions
diff --git a/npc/018-2-4/_import.txt b/npc/018-2-4/_import.txt
index b42778120..f0d26d4d4 100644
--- a/npc/018-2-4/_import.txt
+++ b/npc/018-2-4/_import.txt
@@ -1,3 +1,7 @@
// Map 018-2-4: Heroes' Hold - Exchange Hall
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/018-2-4/_warps.txt",
+"npc/018-2-4/lv1.txt",
+"npc/018-2-4/lv2.txt",
+"npc/018-2-4/lv3.txt",
+"npc/018-2-4/lv4.txt",
diff --git a/npc/018-2-4/lv1.txt b/npc/018-2-4/lv1.txt
new file mode 100644
index 000000000..2a06eb873
--- /dev/null
+++ b/npc/018-2-4/lv1.txt
@@ -0,0 +1,51 @@
+// TMW2/LoF scripts.
+// Authors:
+// TMW-LoF Team
+// Jesusalva
+// Description:
+// Heroes Hold Exchanger - Level 1
+
+018-2-4,33,28,0 script Novice Exchanger#0 NPC_M_COINKEEPER,{
+ openshop;
+ closedialog;
+ close;
+
+OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, TopHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, CandorShirt);
+ setunitdata(.@npcId, UDT_WEAPON, CandorShorts);
+ 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,33,49,0 duplicate(Novice Exchanger#0) Novice Exchanger#1 NPC_M_COINKEEPER
+
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
+
diff --git a/npc/018-2-4/lv3.txt b/npc/018-2-4/lv3.txt
new file mode 100644
index 000000000..ea7680217
--- /dev/null
+++ b/npc/018-2-4/lv3.txt
@@ -0,0 +1,51 @@
+// TMW2/LoF scripts.
+// Authors:
+// TMW-LoF Team
+// Jesusalva
+// Description:
+// Heroes Hold Exchanger - Level 3
+
+018-2-4,47,28,0 script Master Exchanger#0 NPC_M_COINKEEPER,{
+ openshop;
+ closedialog;
+ close;
+
+OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, TopHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, WarlordPlate);
+ setunitdata(.@npcId, UDT_WEAPON, JeansChaps);
+ 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,47,49,0 duplicate(Master Exchanger#0) Master Exchanger#1 NPC_M_COINKEEPER
+
diff --git a/npc/018-2-4/lv4.txt b/npc/018-2-4/lv4.txt
new file mode 100644
index 000000000..f42595cf4
--- /dev/null
+++ b/npc/018-2-4/lv4.txt
@@ -0,0 +1,51 @@
+// TMW2/LoF scripts.
+// Authors:
+// TMW-LoF Team
+// Jesusalva
+// Description:
+// Heroes Hold Exchanger - Level 4
+
+018-2-4,54,28,0 script Ultimate Exchanger#0 NPC_M_COINKEEPER,{
+ openshop;
+ closedialog;
+ close;
+
+OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, TopHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, SaviorArmor);
+ setunitdata(.@npcId, UDT_WEAPON, JeansChaps);
+ 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,54,49,0 duplicate(Ultimate Exchanger#0) Ultimate Exchanger#1 NPC_M_COINKEEPER
+