diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-27 21:42:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-14 20:18:10 +0300 |
commit | fa1cb492536f2853c59a995dc54aa51ead420546 (patch) | |
tree | b0b3751721d688a4795ca7a8a7b5909dca09191a /doc | |
parent | 93b9a86bed2eb3a54b49557f663e06804985654f (diff) | |
download | hercules-fa1cb492536f2853c59a995dc54aa51ead420546.tar.gz hercules-fa1cb492536f2853c59a995dc54aa51ead420546.tar.bz2 hercules-fa1cb492536f2853c59a995dc54aa51ead420546.tar.xz hercules-fa1cb492536f2853c59a995dc54aa51ead420546.zip |
Add barter type shop and add packet ZC_NPC_BARTER_OPEN
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 57d47b1b5..a545357aa 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -323,10 +323,12 @@ The types that a trader object can have are the following: - NST_MARKET (2) Normal NPC Market Shop (where items have limited availability and need to be refurbished) - NST_CUSTOM (3) Custom Shop (any currency, item/var/etca, check sample) +- NST_BARTER (4) Barter Shop (each item with own item currency) Unless otherwise specified via *tradertype an trader object will be defined as NST_ZENY. Note: NST_MARKET is only available with PACKETVER 20131223 or newer. +Note: NST_BARTER is only available with PACKETVER 20181226 zero or newer. See '12 - NPC Trader-Related Commands' and /doc/sample/npc_trader_sample.txt for more information regarding how to use this NPC type. @@ -9951,6 +9953,7 @@ when the optional NPC_Name param is used. --------------------------------------- *sellitem(<Item_ID>{, <price>{, <qty>}}) +*sellitem(<Item_ID>, <qty>, <currency_id>, <currency_amount>) adds (or modifies) <Item_ID> data to the shop, when <price> is not provided (or when it is -1) itemdb default is used. @@ -9959,6 +9962,8 @@ qty is only necessary for NST_MARKET trader types. when <Item_ID> is already in the shop, the previous data (price/qty), is overwritten with the new. +currency_id and currency_amount can be used only with shop type NST_BARTER + --------------------------------------- *stopselling(<Item_ID>) |