diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-01-08 22:07:39 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-01-08 22:07:39 -0200 |
commit | 311efdbdfb76061e9d2166efab7613243f10ab77 (patch) | |
tree | 5aa173ecb9cb3dc70fff4b0251d2e1fcd3125758 /npc/018-2-1 | |
parent | 47f6fad94cdb287805992192ed3553751a3307d6 (diff) | |
download | serverdata-311efdbdfb76061e9d2166efab7613243f10ab77.tar.gz serverdata-311efdbdfb76061e9d2166efab7613243f10ab77.tar.bz2 serverdata-311efdbdfb76061e9d2166efab7613243f10ab77.tar.xz serverdata-311efdbdfb76061e9d2166efab7613243f10ab77.zip |
Dustman Exchange Booth.
Diffstat (limited to 'npc/018-2-1')
-rw-r--r-- | npc/018-2-1/dustman.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/npc/018-2-1/dustman.txt b/npc/018-2-1/dustman.txt index 455aedd9c..3dac2c29c 100644 --- a/npc/018-2-1/dustman.txt +++ b/npc/018-2-1/dustman.txt @@ -132,6 +132,12 @@ L_SkipIntro: if (.state == 0) { mesn; mesq l("The event starts hourly, when the minute clock hits zero. I'll tell everyone on this room when it starts and ends."); + mesc l("Do you want to exchange some of your @@ @@ for items?", countitem(BottledDust), getitemid(BottledDust)); + mes ""; + if (askyesno() == ASK_YES) { + openshop; + closedialog; + } close; } @@ -187,6 +193,13 @@ OnInit: .sex=G_MALE; .distance=5; .state=0; // 0- Closed, 1- Open TODO begin at right state + + tradertype(NST_CUSTOM); + + // CoD Exchange Booth Selection + sellitem Dustynator,3000; + sellitem StrangeCoin,10; + sellitem HeroCoin,1; end; OnMinute00: @@ -206,5 +219,17 @@ OnMinute30: donpcevent("#COD_BossManager::OnCleanUp"); end; +// CoD Exchange Booth Prices +OnCountFunds: + setcurrency(countitem(BottledDust)); + end; + +OnPayFunds: + if( countitem(BottledDust) < @price ) + end; + delitem BottledDust,@price; + purchaseok(); + end; + } |