summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-01 01:37:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-01 01:37:44 +0300
commitbcd874b2e1ff8e74309f610d9738dfcc9c812404 (patch)
tree7d74c8824a40cb164269653c5e7593a7f99b1e33
parent7d6c6792571d0e776221e0b64b60790c1a22682e (diff)
downloadserverdata-bcd874b2e1ff8e74309f610d9738dfcc9c812404.tar.gz
serverdata-bcd874b2e1ff8e74309f610d9738dfcc9c812404.tar.bz2
serverdata-bcd874b2e1ff8e74309f610d9738dfcc9c812404.tar.xz
serverdata-bcd874b2e1ff8e74309f610d9738dfcc9c812404.zip
Add npc6 with custom shop into test map.s20170306
Also it using special npc what have points currency.
-rw-r--r--db/constants.conf1
-rw-r--r--npc/test/_import.txt1
-rw-r--r--npc/test/npc6.txt23
3 files changed, 25 insertions, 0 deletions
diff --git a/db/constants.conf b/db/constants.conf
index dd778a9a..0ef5f1cf 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -3754,6 +3754,7 @@ constants_db: {
NPC_ROBIN: 143
NPC_LEONARD: 144
NPC_OSCAR: 145
+ NPC_SHOP_BAG_TEST: 146
NPC_ALIGE: 401
NPC_ORC_SAILOR: 402
NPC_RATTO_SAILOR: 403
diff --git a/npc/test/_import.txt b/npc/test/_import.txt
index 9cb2ebd9..6c7f7e71 100644
--- a/npc/test/_import.txt
+++ b/npc/test/_import.txt
@@ -7,6 +7,7 @@
"npc/test/npc3.txt",
"npc/test/npc4.txt",
"npc/test/npc5.txt",
+"npc/test/npc6.txt",
"npc/test/npcmarriage.txt",
"npc/test/test1.txt",
"npc/test/test2.txt",
diff --git a/npc/test/npc6.txt b/npc/test/npc6.txt
new file mode 100644
index 00000000..7c4893ad
--- /dev/null
+++ b/npc/test/npc6.txt
@@ -0,0 +1,23 @@
+// Evol scripts.
+// Authors:
+// 4144
+// Description:
+// test npc1
+
+test,30,10,0 trader npc6 NPC_SHOP_BAG_TEST,{
+ end;
+
+OnCountFunds:
+ setcurrency 10000;
+ end;
+
+OnPayFunds:
+ dispbottom "Hi: price="+@price+" and points="+@points;
+ // check and remove points
+ purchaseok;
+ end;
+OnInit:
+ tradertype NST_CUSTOM;
+ sellitem Acorn, 500;
+ sellitem Bread, 200;
+}