;Info [ Npc Name{QuatersMaster} X=52 Y=45 MapName={5th_Living_quarters_Past} ]
(@buy @sell @storage @getback @repair @s_repair )
;Info [ Npc Name{QuatersMaster} X=52 Y=45 MapName={5th_Living_quarters_Past} ]
%100
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+43
[@main]
#IF
checkpkpoint 2
#SAY
I will not help an evil person like you... \ \
Exit/@exit
#ELSESAY
Welcome <$USERNAME> . How may i help you?\ \
Sell <items/@sell>\
Store <Items/@storage>\ 
Get back <Items/@getback>\
<Exchange/@mbind> stuff\
<Make a gold ticket/@GoldT>\
<Make a SurvivorBox/@Sbox>\

#ELSEACT
BreakTimeRecall 


[@sell]
I will buy all goods\ \ \
 <Back/@main>

[@storage]
Put in storage\ \
 <Back/@main>

[@getback]
Take back storage\ \
 <Back/@main>



;;------------------------------------------------------------------------------
;; [306] 进行厨师指示故事
;;------------------------------------------------------------------------------


[@Mbind]
#SAY

<Exchange money into gold bar/@changeGold>\
<Exchange GoldBar into money/@changeMoney>\
<Exchange GoldBars into GoldBarbundle/@Gbundle>\
<Exchange GoldBarbundle into GoldBars/@Gbundle2>\
<Exchange GoldBarbundles into Goldchest/@Gchest>\
<Exchange Goldchest into GoldBarbundle/@Gchest2>\
<Item bundling/@bind> \ 

<Cancel/@exit>

[@changeGold]
#IF
   checkgold 1000000
#SAY
Do you want to change money into GoldBar ? \
The commission is 2000 gold \

<Exchange/@changeGold_1> \
<Cancel/@exit>

#ELSESAY
Why do you ask me whilst lacking the funds ? \
Please come back if you have enough money. \ \
<Back/@main>

[@changeGold_1]
#IF 
   checkbaggage
   checkgold 1002000
#ACT
   take gold 1002000
   give GoldBar 1
#SAY
I exchanged your money into GoldBar. \ 
Would you like to exchange more ? \ \

<Exhange/@changeGold> \
<Back/@exit>

#ELSESAY
Why do you ask me whilst lacking the funds ? \
Please come back if you have enough money. \ \
<Back/@main>

[@changeMoney]
#IF
   checkitem GoldBar 1
#SAY 
Do you want to change GoldBar into money ? \
The commission is 2000 gold \

<Exchange/@changeMoney_1> \
<Cancel/@exit>

#ELSESAY
You have no GoldBar for me to Exchange... \
Come back only if u do have one. \ \
<Cancel/@exit>

[@changeMoney_1]
#IF
   checkitem GoldBar 1
   checkgold 4002001
#SAY
You cannot exchange GoldBar into money. \
your bankbalance would exceed its limit. \ \
<Cancel/@exit>

#ELSEACT
   goto @changeMoney_2


[@changeMoney_2]
#IF 
   checkitem GoldBar 1
#ACT
   take GoldBar 1
   give gold 998000
#SAY
GoldBar was exchanged into money. \ 
Would you like to exchange more ? \ \

<Exchange/@changeMoney> \
<Cancel/@exit>

[@bind]
I can bundle most potions and all kinds of teleport. \
The commission is 100 gold for each bundle. \ 
 <Bundle/@P_bind> Potions \
 <Bundle/@Z_bind> Teleports \

[@P_bind]
 <Bundle/@ch_bind1> (HP)DrugLarge \
 <Bundle/@ma_bind1> (MP)DrugLarge \ 
 <Bundle/@ch_bind2> (HP)DrugMedium \
 <Bundle/@ma_bind2> (MP)DrugMedium \
 <Bundle/@ch_bind3> (HP)DrugSmall \
 <Bundle/@ma_bind3> (MP)DrugSmall\
<Back/@bind>

[@Z_bind]
 <Bundle/@zum_bind1> DungeonEscape \
 <Bundle/@zum_bind2> RandomTeleport \
 <Bundle/@zum_bind3> TownTeleport \
 <Bundle/@zum_bind4> TeleportHome \
 <Back/@bind>

[@ch_bind1]
#IF
   checkitem (HP)DrugLarge 6
#ACT
   goto @ch_bind1_1
#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>

[@ch_bind1_1]
#IF 
   checkgold 100
   checkitem (HP)DrugLarge 6
#ACT
   take gold 100
   take (HP)DrugLarge 6
   give (HP)DrugBundle 1
#SAY
Your potions are bundled. \
Would you like to bundle more ?\ \

<Bundle up again/@P_bind> \
<Cancel/@exit>

#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>

[@ma_bind1]
#IF
   checkitem (MP)DrugLarge 6
#ACT
   goto @ma_bind1_1
#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>

[@ma_bind1_1]
#IF 
   checkgold 100
   checkitem (MP)DrugLarge 6
#ACT
   take gold 100
   take (MP)DrugLarge 6
   give (MP)DrugBundle 1
#SAY
Your potions are bundled. \
Would you like to bundle more ?\ \

<Bundle up again/@P_bind> \
<Cancel/@exit>

#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>

[@ch_bind2]
#IF
   checkitem (HP)DrugMedium 6
#ACT
   goto @ch_bind2_1
#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>


[@ch_bind2_1]
#IF 
   checkgold 100
   checkitem (HP)DrugMedium 6
#ACT
   take gold 100
   take (HP)DrugMedium 6
   give (HP)MDrugBundl 1
#SAY
Your potions are bundled. \
Would you like to bundle more ?\ \

<Bundle up again/@P_bind> \
<Cancel/@exit>

#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>

[@ma_bind2]
#IF
   checkitem (MP)DrugMedium 6
#ACT
   goto @ma_bind2_1

#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>


[@ma_bind2_1]
#IF 
   checkgold 100
   checkitem (MP)DrugMedium 6
#ACT
   take gold 100
   take (MP)DrugMedium 6
   give (MP)MDrugbundl 1

#SAY
Your potions are bundled. \
Would you like to bundle more ?\ \

<Bundle up again/@P_bind> \
<Cancel/@exit>

#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>


[@ch_bind3]
#IF
   checkitem (HP)DrugSmall 6
#ACT
   goto @ch_bind3_1

#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>

[@ch_bind3_1]
#IF 
   checkgold 100
   checkitem (HP)DrugSmall 6
#ACT
   take gold 100
   take (HP)DrugSmall 6
   give (HP)SdrugBundl 1

#SAY
Your potions are bundled. \
Would you like to bundle more ?\ \

<Bundle up again/@P_bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>

[@ma_bind3]
#IF
   checkitem (MP)DrugSmall 6
#ACT
   goto @ma_bind3_1

#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>


[@ma_bind3_1]
#IF 
   checkgold 100
   checkitem (MP)DrugSmall 6
#ACT
   take gold 100
   take (MP)DrugSmall 6
   give (MP)SDrugBundl 1

#SAY
Your potions are bundled. \
Would you like to bundle more ?\ \

<Bundle up again/@P_bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of potions. \
Please come back if u do have enough potions. \ \
<Cancel/@exit>


[@zum_bind1]
#IF
   checkitem DungeonEscape 6
#ACT
   goto @zum_bind1_1

#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>


[@zum_bind1_1]
#IF 
   checkgold 100
  checkitem DungeonEscape 6
#ACT
   take gold 100
   take DungeonEscape 6
   give Escapebundle 1

#SAY
Your teleports are bundled. \
Would you like to bundle more ?\ \

<Bundle again/@z_bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>



[@zum_bind2]
#IF
   checkitem RandomTeleport 6
#ACT
   goto @zum_bind2_1

#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>

[@zum_bind2_1]
#IF 
   checkgold 100
   checkitem RandomTeleport 6
#ACT
   take gold 100
   take RandomTeleport 6
   give RandomBundle 1

#SAY
Your teleports are bundled. \
Would you like to bundle more ?\ \


<Bundle again/@z_bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>



[@zum_bind3]
#IF
   checkitem TownTeleport 6
#ACT
   goto @zum_bind3_1

#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>



[@zum_bind3_1]
#IF 
   checkgold 100
   checkitem TownTeleport 6
#ACT
   take gold 100
   take TownTeleport 6
   give TownTeleBundle 1

#SAY
Your teleports are bundled. \
Would you like to bundle more ?\ \


<Bundle again/@z_bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>



[@zum_bind4]
#IF
   checkitem TeleportHome 6
#ACT
   goto @zum_bind4_1

#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>


[@zum_bind4_1]
#IF 
   checkgold 100
   checkitem TeleportHome 6
#ACT
   take gold 100
   take TeleportHome 6
   give TeleHomeBundle 1

#SAY
Your teleports are bundled. \
Would you like to bundle more ?\ \


<Bundle again/@z_bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of teleports. \
Please come back if u do have enough teleports. \ \
<Cancel/@exit>


[@GoldT]
#if
Checkitem goldchest 6
#Act
take goldchest 6
give goldticket 1
#Say
To turn your ticket back into\
chests, just click on it\ \
<bye/@exit>
#ElseSay
you need 6 gold chests\ \
\ \
\ \
<bye/@exit>


[@Gbundle]
#if
Checkitem goldbar 5
#Act
take goldbar 5
give GoldBarbundle 1
#Say
there you go!\ \
\ \
<bye/@exit>
#ElseSay
you need 5 goldBars\ \
\ \
\ \
<bye/@exit>

[@Gbundle2]
#if
Checkitem goldbarbundle  1
#Act
take goldbarbundle 1
give GoldBar 5
#Say
there you go!\ \
\ \
<bye/@exit>
#ElseSay
you need 1 goldbarbundle\ \
\ \
\ \
<bye/@exit>

[@Gchest]
#if
Checkitem goldbarbundle  2
#Act
take goldbarbundle 2
give Goldchest
#Say
there you go!\ \
\ \
<bye/@exit>
#ElseSay
you need 2 goldbarbundle\ \
\ \
\ \
<bye/@exit>

[@Gchest2]
#if
Checkitem Goldchest  1
#Act
take Goldchest 1
give goldbarbundle 2
#Say
there you go!\ \
\ \
<bye/@exit>
#ElseSay
you need 1 Goldchest\ \
\ \
\ \
<bye/@exit>


[@Sbox]
#say
You will need 6 Superboost potions and\
1 Goldba to make a Survivorbox\ \
you still want to make one?\ \
<Make/@makeSbox>\
<bye/@exit>

[@makeSbox]
#if
Checkitem Superboost  6
Checkitem goldbar 1
#Act
take goldbar 1
take Superboost  6
give Survivorbox
#Say
there you go!\ \
\ \
<bye/@exit>
#ElseSay
Check your items. you are missing\ 
somthing needed to make box\
\ \
\ \
<bye/@exit>