From 939568eb4adab9b1353b09885f9ea510a45eccc9 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sat, 29 Dec 2018 22:08:57 +0300
Subject: Add barter shop demo script.

---
 doc/sample/npc_trader_sample.txt |  8 ++++++++
 npc/custom/bartershop.txt        | 21 +++++++++++++++++++++
 npc/scripts_custom.conf          |  1 +
 3 files changed, 30 insertions(+)
 create mode 100644 npc/custom/bartershop.txt

diff --git a/doc/sample/npc_trader_sample.txt b/doc/sample/npc_trader_sample.txt
index 0d50af8c5..24c53330b 100644
--- a/doc/sample/npc_trader_sample.txt
+++ b/doc/sample/npc_trader_sample.txt
@@ -56,3 +56,11 @@ OnMyResupply:
 		sellitem Red_Potion,-1,49;
 	end;
 }
+/* demonstrate barter shop */
+prontera,159,284,4	trader	Barter Shop#prt	4_M_KID1,{
+OnInit:
+	tradertype(NST_BARTER);
+	sellitem White_Herb, 100, Red_Potion, 2;
+	sellitem Blue_Herb, 200, Orange_Potion, 3;
+	end;
+}
diff --git a/npc/custom/bartershop.txt b/npc/custom/bartershop.txt
new file mode 100644
index 000000000..bcb61795e
--- /dev/null
+++ b/npc/custom/bartershop.txt
@@ -0,0 +1,21 @@
+//===== Hercules Script ======================================
+//= Barter shop demo
+//===== By: ==================================================
+//= 4144
+//===== Current Version: =====================================
+//= 1.0
+//===== Description: =========================================
+//= Barter shop demo in prontera.
+//============================================================
+
+prontera,159,284,4	trader	Barter Shop#prt	4_M_KID1,{
+OnInit:
+	tradertype(NST_BARTER);
+	sellitem White_Herb, 100, Red_Potion, 2;
+	sellitem Blue_Herb, 200, Orange_Potion, 3;
+	sellitem Green_Herb, 100, Red_Potion, 4;
+	sellitem White_Herb, 100, Orange_Potion, 1;
+	sellitem Apple, -1, Orange_Potion, 1;
+	sellitem Praetorian_Shield, 100, Berserk_Potion, 10;
+	end;
+}
diff --git a/npc/scripts_custom.conf b/npc/scripts_custom.conf
index 14384fd17..a5aad9767 100644
--- a/npc/scripts_custom.conf
+++ b/npc/scripts_custom.conf
@@ -50,6 +50,7 @@
 //"npc/custom/card_remover.txt",
 //"npc/custom/item_signer.txt",
 //"npc/custom/woe_controller.txt",
+//"npc/custom/bartershop.txt",
 
 //================= Other Scripts =========================================
 // -- MVP Arena
-- 
cgit v1.2.3-70-g09d2