summaryrefslogtreecommitdiff
path: root/doc/sample/npc_trader_sample.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-12-26 01:34:12 +0100
committerHaru <haru@dotalux.com>2013-12-30 16:08:20 +0100
commit21fa0901dc8723627c6970aa6eff97bc27e36533 (patch)
tree8890d4191c1ea44af96b6e51d8e149b1e885f043 /doc/sample/npc_trader_sample.txt
parenta9156de759bc444a5f7256b86f6c4bac6a1ab47d (diff)
downloadhercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.gz
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.bz2
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.xz
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.zip
Modernized syntax and fixed errors in the sample scripts
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc/sample/npc_trader_sample.txt')
-rw-r--r--doc/sample/npc_trader_sample.txt36
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/sample/npc_trader_sample.txt b/doc/sample/npc_trader_sample.txt
index abc87f6b4..0d50af8c5 100644
--- a/doc/sample/npc_trader_sample.txt
+++ b/doc/sample/npc_trader_sample.txt
@@ -3,56 +3,56 @@
//===== By: ==================================================
//= Hercules Dev Team
//===== Current Version: =====================================
-//= 20131223
+//= 20131225
//===== Description: =========================================
//= Demonstrates NPC Trader.
//============================================================
/* ordinary zeny trader */
-prontera,152,151,1 trader TestTrader 952,{
+prontera,152,151,1 trader TestTrader 4_F_EDEN_OFFICER,{
OnInit:
- sellitem 2115;
+ sellitem Valkyrja's_Shield;
end;
}
/* ordinary cash trader */
-prontera,152,152,1 trader TestTraderCash 952,{
+prontera,152,152,1 trader TestTraderCash 4_F_EDEN_OFFICER,{
OnInit:
tradertype(NST_CASH);
- sellitem 2115;
+ sellitem Valkyrja's_Shield;
end;
}
/* custom npc trader */
-prontera,153,152,1 trader TestCustom2 952,{
+prontera,153,152,1 trader TestCustom2 4_F_EDEN_OFFICER,{
OnInit:
tradertype(NST_CUSTOM);
- sellitem 501,2;
+ sellitem Red_Potion,2;
end;
-
+
/* allows currency to be item 501 and 502 */
OnCountFunds:
- setcurrency(countitem(501),countitem(502));
+ 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(502) < @points || countitem(501) < @price-@points )
+ if( countitem(Orange_Potion) < @points || countitem(Red_Potion) < @price-@points )
end;
- delitem 502,@points;
- delitem 501,@price-@points;
+ delitem Orange_Potion,@points;
+ delitem Red_Potion,@price-@points;
purchaseok();
end;
}
/* demonstrates Market Trader */
-prontera,150,160,6 trader HaiMarket 952,{
+prontera,150,160,6 trader HaiMarket 4_F_EDEN_OFFICER,{
OnInit:
tradertype(NST_MARKET);
- sellitem 501,-1,49;
+ sellitem Red_Potion,-1,49;
end;
-
+
OnClock0000://resupplies red potions on midnight
OnMyResupply:
- if( shopcount(501) < 20 )
- sellitem 501,-1,49;
+ if( shopcount(Red_Potion) < 20 )
+ sellitem Red_Potion,-1,49;
end;
-} \ No newline at end of file
+}