From bcd874b2e1ff8e74309f610d9738dfcc9c812404 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Feb 2017 01:37:44 +0300 Subject: Add npc6 with custom shop into test map. Also it using special npc what have points currency. --- npc/test/_import.txt | 1 + npc/test/npc6.txt | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 npc/test/npc6.txt (limited to 'npc') 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; +} -- cgit v1.2.3-60-g2f50