Here is the scripts command and scripts sample of hercules.
//=====================================
12 - NPC Trader-Related Commands
//=====================================
Commands that control NPC Trader Shops
See /doc/sample/npc_trader_sample.txt
---------------------------------------
*openshop({NPC_Name});
opens the trader shop from the currently-attached npc unless,
when the optional NPC_Name param is used.
---------------------------------------
*sellitem <Item_ID>{,<price>{,<qty>}};
adds (or modifies) <Item_ID> data to the shop,
when <price> is not provided (or when it is -1) itemdb default is used.
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.
---------------------------------------
*stopselling <Item_ID>;
attempts to remove <Item_ID> from the current shop list.
---------------------------------------
*setcurrency <Val1>{,<Val2>};
updates the currently attached player shop funds,
to be used within a "OnCountFunds" event of a NST_CUSTOM trader type.
<Val1> is the value used in the *Cash* Points field
<Val2> is the value used in the Kafra Points field
---------------------------------------
*tradertype(<Type>);
Modifies the npc trader type, item list is cleared upon modifiying the value.
By default, all npcs staart with tradertype(NST_ZENY);
- NST_ZENY (0) Normal Zeny Shop
- NST_CASH (1) Normal Cash Shop
- 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)
---------------------------------------
*purchaseok();
Signs that the transaction (on a NST_CUSTOM trader) has been successful,
to be used within a "OnPayFunds" event of a NST_CUSTOM trader.
---------------------------------------
*shopcount(<Item_ID>);
Returns the amount of still-available <Item_ID> in the shop (on a NST_MARKET trader).
---------------------------------------
and here is the scripts
Has anyone written the actual Para Market NPCs, though?
have you checked it?
here is the thread http://hercules.ws/board/topic/4989-paramarket-new-npc-shop/#entry32230