diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-05 11:34:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-06-26 21:14:20 +0300 |
commit | 610130172552889d6dfb4c5ebc964bb90fdc73d2 (patch) | |
tree | 79b344a1753308a461c7a27613f92fc7f67a08ee /doc/sample/npc_trader_sample.txt | |
parent | ba2840f8462390889ad5f3031b5bcc3068e3aba5 (diff) | |
download | hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.gz hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.bz2 hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.xz hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.zip |
Remove conf dir.
Diffstat (limited to 'doc/sample/npc_trader_sample.txt')
-rw-r--r-- | doc/sample/npc_trader_sample.txt | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/doc/sample/npc_trader_sample.txt b/doc/sample/npc_trader_sample.txt deleted file mode 100644 index 24c53330b..000000000 --- a/doc/sample/npc_trader_sample.txt +++ /dev/null @@ -1,66 +0,0 @@ -//===== Hercules Script ======================================= -//= Sample: NPC Trader -//===== By: ================================================== -//= Hercules Dev Team -//===== Current Version: ===================================== -//= 20131225 -//===== Description: ========================================= -//= Demonstrates NPC Trader. -//============================================================ - -/* ordinary zeny trader */ -prontera,152,151,1 trader TestTrader 4_F_EDEN_OFFICER,{ - OnInit: - sellitem Valkyrja's_Shield; - end; -} -/* ordinary cash trader */ -prontera,152,152,1 trader TestTraderCash 4_F_EDEN_OFFICER,{ - OnInit: - tradertype(NST_CASH); - sellitem Valkyrja's_Shield; - end; -} -/* custom npc trader */ -prontera,153,152,1 trader TestCustom2 4_F_EDEN_OFFICER,{ - OnInit: - tradertype(NST_CUSTOM); - sellitem Red_Potion,2; - end; - -/* allows currency to be item 501 and 502 */ -OnCountFunds: - setcurrency(countitem(Red_Potion),countitem(Orange_Potion)); - end; - -/* receives @price (total cost) and @points (the secondary input field for cash windows) */ -OnPayFunds: - dispbottom "Hi: price="+@price+" and points="+@points; - if( countitem(Orange_Potion) < @points || countitem(Red_Potion) < @price-@points ) - end; - delitem Orange_Potion,@points; - delitem Red_Potion,@price-@points; - purchaseok(); - end; -} -/* demonstrates Market Trader */ -prontera,150,160,6 trader HaiMarket 4_F_EDEN_OFFICER,{ -OnInit: - tradertype(NST_MARKET); - sellitem Red_Potion,-1,49; - end; - -OnClock0000://resupplies red potions on midnight -OnMyResupply: - if( shopcount(Red_Potion) < 20 ) - sellitem Red_Potion,-1,49; - end; -} -/* demonstrate barter shop */ -prontera,159,284,4 trader Barter Shop#prt 4_M_KID1,{ -OnInit: - tradertype(NST_BARTER); - sellitem White_Herb, 100, Red_Potion, 2; - sellitem Blue_Herb, 200, Orange_Potion, 3; - end; -} |