diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/shops.txt | 20 |
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; +} |