summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-08 22:07:39 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-08 22:07:39 -0200
commit311efdbdfb76061e9d2166efab7613243f10ab77 (patch)
tree5aa173ecb9cb3dc70fff4b0251d2e1fcd3125758 /npc
parent47f6fad94cdb287805992192ed3553751a3307d6 (diff)
downloadserverdata-311efdbdfb76061e9d2166efab7613243f10ab77.tar.gz
serverdata-311efdbdfb76061e9d2166efab7613243f10ab77.tar.bz2
serverdata-311efdbdfb76061e9d2166efab7613243f10ab77.tar.xz
serverdata-311efdbdfb76061e9d2166efab7613243f10ab77.zip
Dustman Exchange Booth.
Diffstat (limited to 'npc')
-rw-r--r--npc/018-2-1/dustman.txt25
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;
+
}