Skip to content

Commit

Permalink
Add barter shop demo script.
Browse files Browse the repository at this point in the history
  • Loading branch information
4144 committed Jan 14, 2019
1 parent 42c1294 commit 939568e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/sample/npc_trader_sample.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,11 @@ OnMyResupply:
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;
}
21 changes: 21 additions & 0 deletions npc/custom/bartershop.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//===== Hercules Script ======================================
//= Barter shop demo
//===== By: ==================================================
//= 4144
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= Barter shop demo in prontera.
//============================================================

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;
sellitem Green_Herb, 100, Red_Potion, 4;
sellitem White_Herb, 100, Orange_Potion, 1;
sellitem Apple, -1, Orange_Potion, 1;
sellitem Praetorian_Shield, 100, Berserk_Potion, 10;
end;
}
1 change: 1 addition & 0 deletions npc/scripts_custom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
//"npc/custom/card_remover.txt",
//"npc/custom/item_signer.txt",
//"npc/custom/woe_controller.txt",
//"npc/custom/bartershop.txt",

//================= Other Scripts =========================================
// -- MVP Arena
Expand Down

0 comments on commit 939568e

Please sign in to comment.