; ===================================
; Market Def NPC File : 6Bwh-0125
; EasternInn
; -----------------------------------
; Name: Mary
; Job: 
; Map No: 0126
; Pos X 8
; Pos Y 6
; File name: *removed*
; Comment: EasternInn

;================================================= =
;

;Settings
(@buy @sell @repair @s_repair @storage @getBack)
%100

;Pkr Tag (NPC won't talk to Pkrs)
[@main]
#IF
checkpkpoint 2
#SAY
I will not help an evil person like you..\ \
<Ok/@exit>

#ELSEACT
goto @main-1


[@main-1]
Cough cough....I'm the keeper of this warehouse.\
We don't charge people for storage service yet\
so use it before we do.\ \
<Deposit/@storage>\
<Withdraw/@getBack>\
<Teleport outside/@Tmove>\
<Bind/@mBind> scrolls,amulets or drugs\
<Close/@exit>

[@Tmove]
#IF
#ACT
mapmove 0 288 253
break

[@storage]
What kind of item do you like to store?\ \ \
 <Back/@main>

[@getBack]
Please choose from list what you want to take Back.\ \ \
 <Back/@main>

[@MBind]
#IF
#SAY
Hehe..I will tell you what I can do for you.\ \
<Exchange/@changeGold>the money to gold bars\
<Exchange/@changeMoney>the gold bars to money\
<Bind/@Bind>\
<Close/@exit>

[@changeGold]
#IF
checkgold 1000000
#SAY
Do you want to change money into a goldbar?\
The commission is 2000 gold\
<Exchange/@changeGold_1>\
<Cancel/@exit>

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

[@changeGold_1]
#IF 
checkgold 1002000
#ACT
take gold 1002000
give GoldBar 1
#SAY
I Exchanged your money into goldbar.\
Would you like to Exchange more?\ \
<Exchange more/@changeGold> \
<Back/@exit>

#ELSESAY
Why do you ask me whilst lacking the funds?\
Please come Back when 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 you do have one.\ \
<Cancel/@exit>

[@changeMoney_1]
#IF
checkitem GoldBar 1
checkgold 49002001
#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 more/@changeMoney>\
<Cancel/@exit>

[@Bind]
As I told you, I can bundle quite all kind of\
potions and all kind of teleport. Do you want to try?\
it will cost 100 gold for each bundle you want.\ \
<Bind/@P_Bind> drugs\
<Bind/@Z_Bind> scrolls\

[@P_Bind]
<Bind/@ch_Bind1> (HP)DrugLarge\
<Bind/@ma_Bind1> (MP)DrugLarge\
<Bind/@ch_Bind2> (HP)DrugMedium\
<Bind/@ma_Bind2> (MP)DrugMedium\
<Bind/@ch_Bind3> (HP)DrugSmall\
<Bind/@ma_Bind3> (MP)DrugSmall\
<Back/@Bind>

[@Z_Bind]
<Bind/@zum_Bind1> DungeonEscape scrolls\
<Bind/@zum_Bind2> RandomTeleport scrolls\
<Bind/@zum_Bind3> TownTeleport scrolls\
<Bind/@zum_Bind4> TeleportHome scrolls\
<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 you 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?\ \
<Bind more/@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 you 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?\ \
<Bind more/@P_Bind>\
<Cancel/@exit>

#ELSESAY
You do not have the needed amount of potions.\
Please come Back when you 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 you 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)MediumDrugBundle 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind more/@P_Bind> \
<Cancel/@exit>

#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you 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 you 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)MediumDrugBundle 1

#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind more/@P_Bind>\
<Cancel/@exit>

#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you 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 you 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)SmallDrugBundle 1

#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind more/@P_Bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you 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 you 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)SmallDrugBundle 1

#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind more/@P_Bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you 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 you do have enough teleports.\ \
<Cancel/@exit>


[@zum_Bind1_1]
#IF 
checkgold 100
checkitem DungeonEscape 6
#ACT
take gold 100
take DungeonEscape 6
give DungeonEscapeBundle 1

#SAY
Your teleports are bundled.\
Would you like to bundle more?\ \
<Bind more/@z_Bind>\
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of teleports.\
Please come Back if you 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 you do have enough teleports.\ \
<Cancel/@exit>

[@zum_Bind2_1]
#IF 
checkgold 100
checkitem RandomTeleport 6
#ACT
take gold 100
take RandomTeleport 6
give RandomTeleportBundle 1

#SAY
Your teleports are bundled.\
Would you like to bundle more?\ \
<Bind more/@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 you do have enough teleports.\ \
<Cancel/@exit>


[@zum_Bind3_1]
#IF 
checkgold 100
checkitem TownTeleport 6
#ACT
take gold 100
take TownTeleport 6
give TownTeleportBundle 1

#SAY
Your teleports are bundled.\
Would you like to bundle more?\ \
<Bind more/@z_Bind> \
<Cancel/@exit>


#ELSESAY
You do not have the needed amount of teleports.\
Please come Back if you 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 you do have enough teleports.\ \
<Cancel/@exit>


[@zum_Bind4_1]
#IF 
checkgold 100
checkitem TeleportHome 6
#ACT
take gold 100
take TeleportHome 6
give TeleportHomeBundle 1

#SAY
Your teleports are bundled.\
Would you like to bundle more?\ \
<Bind more/@z_Bind>\
<Cancel/@exit>

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