summaryrefslogtreecommitdiff
path: root/npc/functions/shops.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-12 08:52:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-12 08:52:52 -0300
commit224e6b764b0b4422e866d2a6f5e150b9daf05975 (patch)
tree3fc01565035ca435bc62fe7991b0ad20b807954f /npc/functions/shops.txt
parent2090a49f46df16e9b99a2986c09329986db79da5 (diff)
downloadserverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.tar.gz
serverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.tar.bz2
serverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.tar.xz
serverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.zip
Inar now charge taxes. New function: shop2().
In future, Shop#bazar1 will move to type HIDDEN and will have a placeholder instead to use shop2() functions.
Diffstat (limited to 'npc/functions/shops.txt')
-rw-r--r--npc/functions/shops.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/functions/shops.txt b/npc/functions/shops.txt
index a4945c57e..39db86a66 100644
--- a/npc/functions/shops.txt
+++ b/npc/functions/shops.txt
@@ -21,3 +21,23 @@ function script restoreshopitem {
sellitem getarg(0), .@price, .@amount;
return;
}
+
+
+// shop2({NPC Name, {showmenu=true}})
+function script shop2 {
+ npctalk3 any(
+ l("The best wares!"),
+ l("Buy cheap, sell expensive!")
+ );
+ .@n$=getarg(0, strnpcinfo(0));
+
+ npcshopattach(.@n$);
+
+ if (getarg(1,true))
+ shop .@n$;
+ else
+ openshop .@n$;
+
+ closeclientdialog;
+ return;
+}