[@main]
Here is a list with upgrades that you can\
do.\\

<Potions/@pot> Upgrade - <Info/@infopot>\
<Tigers/@tiger> Upgrade - <Info/@infotiger>\
<Free use of Escape/@escape> - <Info/@escapeinfo>\
<Free use of Teleport NPC/@telenpc> - <Info/@telenpcinfo>\

[@Infopot]
The Potions Upgrade has 3 different levels of upgrade:\
*HP/MP [I]\
*HP/MP [II]\
*HP/MP [III]\
Every potion upgrade will provide you higher MP/HP \
from every pot.\\
<Prices/@potinfoprice>\
<Back/@main>\

[@potinfoprice]
#SAY
These are the prices:\\
*First Upgrade: 5.000.000 gold\
*Second Upgrade: 10.000.000 gold\
*Third Upgrade: 15.000.000 gold\\

<Close/@exit>\


[@infotiger]
The Tiger Upgrades has 5 upgrades. To start the first\
upgrade you need a White Tiger or Bengal Tiger. With every\
upgrade your tiger will have higher stats.\\
<Prices/@tigerinfoprice>\
<Back/@main>

[@tigerinfoprice]
#SAY
These are the prices:\\
*First Upgrade: 5.000.000 gold\
*Second Upgrade: 10.000.000 gold\
*Third Upgrade: 15.000.000 gold\
*Fourth Upgrade: 20.000.000 gold\
*Fifth Upgrade: 25.000.000 gold\\

<Close/@exit>\


[@escapeinfo]
Purchasing this upgrade will allow you to use @escape without\
paying any money.\
<Price: 300.000 gold per week>\\

<Back/@main>\

[@telenpcinfo]
Purcashins this upgrade will allow you to use the teleport npc\
without having to pay any money.\
<Price: 500.000 gold per week>\\

<Back/@main>\

[@pot]
Here are the upgrades that are available.\\

Purchase <Pot Upgrade 1/@potu1>\
Purchase <Pot Upgrade 2/@potu2>\
Purchase <Pot Upgrade 3/@potu3>\\

<Back/@main>

[@tiger]
Here are the upgrades that are available.\\
Purchase <Tiger Upgrade 1/@tigeru1>\
Purchase <Tiger Upgrade 2/@tigeru2>\
Purchase <Tiger Upgrade 3/@tigeru3>\
Purchase <Tiger Upgrade 4/@tigeru4>\
Purchase <Tiger Upgrade 5/@tigeru5>\\

<Back/@main>

[@escape]
Here is the only upgrade in this category.\\

Purchase <Escape free use/@escapeu1>\\

<Back/@main>

[@telenpc]
Here is the only upgrade in this category.\\

Purchase <Teleport free use/@teleu1>\\

<Back/@main>


[@potu1]
#IF
checknamelist ..\Market_def\Upgrade\potu1.txt
#SAY
You already have this upgrade.\\

<Close/@main>\

#ELSEACT
goto @buypotu1

[@buypotu1]
It will cost you 5 mil to buy this upgrade.\\

<Buy/@buypotu1s>\
<Exit/@exit>\

[@buypotu1s]
#IF
checkgold 5000000
#ACT
addnamelist  ..\Market_def\Upgrade\potu1.txt
take gold 5000000
SENDMSG "Succesfully purchased First Potion Upgrade." 3
#ELSESAY
You don't have enough money. (5000000 gold)


[@potu2]
#IF
checknamelist ..\Market_def\Upgrade\potu1.txt
#ACT
goto @potu22
#ELSESAY
You didn't purchase the first upgrade.\\

<Close/@exit>\

[@potu22]
#IF
checknamelist ..\Market_def\Upgrade\potu2.txt
#SAY
You already purchased this upgrade.\\

<Close/@exit>\

#ELSEACT
goto @buypotu22

[@buypotu22]
It will cost you 10 mil to buy this upgrade.\\

<Buy/@buypotu2s>\
<Exit/@exit>\

[@buypotu2s]
#IF
checkgold 10000000
#ACT
take gold 10000000
addnamelist ..\Market_def\Upgrade\potu2.txt
SENDMSG "Succesfully purchased Second Potion Upgrade." 3

[@potu3]
#IF
checknamelist ..\Market_def\Upgrade\potu2.txt
#ACT
goto @potu33
#ELSESAY
You didn't purchase the second or first upgrade.\\

<Close/@exit>\

[@potu33]
#IF
checknamelist ..\Market_def\Upgrade\potu3.txt
#SAY
You already purchased all upgrades.\\

<Close/@exit>\

#ELSEACT
goto @buypotu33

[@buypotu33]
It will cost you 15 mil to buy this upgrade.\\

<Buy/@buypotu3s>\
<Exit/@exit>\

[@buypotu3s]
#IF
checkgold 15000000
#ACT
take gold 15000000
SENDMSG "Succesfully purchased Third Potion Upgrade." 3
addnamelist ..\Market_def\Upgrade\potu3.txt

[@tigeru1]
#IF
checknamelist ..\Market_def\Upgrade\tiger1.txt
#SAY
You already purchased this upgrade.\\

<Close/@exit>\


#ELSEACT
goto @tigeru11

[@tigeru11]
For the first upgrade you need a White Tiger or Bengal\
Tiger and 5mil gold.\\

<Buy/@buytigeru11>\
<Exit/@exit>\

[@buytigeru11]
#IF
checkitem WhiteTiger 1
checkgold 5000000
#ACT
take WhiteTiger 1
take gold 5000000
give BronzeTiger 1
SENDMSG "Succesfully purchased first Tiger Upgrade." 3
addnamelist ..\Market_def\Upgrade\tiger1.txt
#ELSEACT
goto @buytigeru111

[@buytigeru111]
#IF
checkitem BengalTiger 1
checkgold 5000000
#ACT
take BengalTiger 1
take gold 5000000
give BronzeTiger 1
SENDMSG "Succesfully purchased first Tiger Upgrade." 3
addnamelist ..\Market_def\Upgrade\tiger1

[@tigeru2]
#IF
checknamelist ..\Market_def\Upgrade\tiger1.txt
#ACT
goto @tigeru22
#ELSESAY
You didn't purchase the first upgrade.\\

<Close/@exit>\

[@tigeru22]
#IF
checknamelist ..\Market_def\Upgrade\tiger2.txt
#SAY
You already purchased this upgrade.\\

<Close/@exit>\
#ELSEACT
goto @buytigeru22

[@buytigeru22]
To buy this upgrade you need a Bronze Tiger\
and 10 mil gold.\\

<Buy/@buytigeru22s>\
<Exit/@exit>\


[@buytigeru22s]
#IF
checkgold 10000000
checkitem BronzeTiger 1
#ACT
take gold 10000000
take BronzeTiger 1
give SilverTiger 1
SENDMSG "Succesfully purchased second Tiger Upgrade." 3
addnamelist ..\Market_def\Upgrade\tiger2.txt
#ELSESAY
You don't seem to have enough gold. (10000000 gold)

[@tigeru3]
#IF
checknamelist ..\Market_def\Upgrade\tiger2.txt
#ACT
goto @tigeru33
#ELSESAY
You didn't purchase a previous upgrade.\\

<Close/@exit>\

[@tigeru33]
#IF
checknamelist ..\Market_def\Upgrade\tiger3.txt
#SAY
You already purchased this upgrade.\\

<Close/@exit>\

#ELSEACT
goto @buytigeru33

[@buytigeru33]
To buy this upgrade you need a Silver Tiger\
and 15 mil gold.\\

<Buy/@buytigeru33s>\
<Exit/@exit>\

[@buytigeru33s]
#IF
checkgold 15000000
checkitem SilverTiger 1
#ACT
take gold 15000000
take SilverTiger 1
give GoldTiger 1
SENDMSG "Succesfully purchased third Tiger Upgrade." 3
addnamelist ..\Market_def\Upgrade\tiger3.txt
#ELSESAY
You don't seem to have enough gold. (15000000 gold)

[@tigeru4]
#IF
checknamelist ..\Market_def\Upgrade\tiger3.txt
#ACT
goto @tigeru44
#ELSESAY
You didn't purchase one of the previous upgrades.\\

<Close/@exit>\

[@tigeru44]
#IF
checknamelist ..\Market_def\Upgrade\tiger4.txt
#SAY
You already purchased this upgrade.\\

<Close/@exit>\
#ELSEACT
goto @buytigeru44

[@buytigeru44]
To buy this upgrade you need a Gold Tiger\
and 20 mil gold.\\

<Buy/@buytigeru44s>\
<Close/@exit>\

[@buytigeru44s]
#IF
checkgold 20000000
checkitem GoldTiger
#ACT
take gold 20000000
take GoldTiger 1
give PlatinumTiger 1
SENDMSG "Succesfully purchased fourth Tiger Upgrade." 3
addnamelist ..\Market_def\Upgrade\tiger4.txt
#ELSESAY
You don't seem to have enough gold. (20000000 gold)

[@tigeru5]
#IF
checknamelist ..\Market_def\Upgrade\tiger4.txt
#ACT
goto @tigeru55
#ELSESAY
You didn't purchase one of the previous upgrades.\\

<Close/@exit>\

[@tigeru55]
#IF
checknamelist ..\Market_def\Upgrade\tiger5.txt
#SAY
You already purchased this upgrade.\\
#ELSEACT
goto @buytigeru55

[@buytigeru55]
To buy this upgrade you need a Platinum Tiger\
and 25 mil gold.\\

<Buy/@buytigeru55s>\
<Close/@exit>\

[@buytigeru55s]
#IF
checkgold 25000000
checkitem PlatinumTiger 1
#ACT
take gold 25000000
take PlatinumTiger 1
give DiamondTiger 1
SENDMSG "Succesfully purchased last Tiger Upgrade." 3
addnamelist ..\Market_def\Upgrade\tiger5.txt
#ELSESAY
You don't seem to have enough money. (25000000 gold)

[@escapeu1]
#IF
checknamelist ..\Market_def\Upgrade\escapeu.txt
#ACT
SENDMSG "You already purchased this upgrade." 3
BREAK
CLOSE 

#ELSEACT
GOTO @buyescapeu

[@buyescapeu]
To buy this upgrade you'll need 350.000 gold.\
<Attention: This upgrade lasts a week!>\\

<Buy/@buyescapeu1>\
<Close/@exit>\

[@buyescapeu1]
#IF
DAYOFWEEK SUN
HOUR 10 15
#ACT
goto @buyescapeu11
#ELSESAY
This upgrade isn't available now.\ 
Return Sunday between 10AM and 3PM.\\

<Close/@exit>\


[@buyescapeu11]
#IF
checkgold 350000
#ACT
take gold 350000
addnamelist ..\Market_def\Upgrade\escapeu.txt
SENDMSG "Succesfully purchased Escape Upgrade for one week." 3
BREAK
CLOSE
#ELSESAY
You don't seem to have enough money. (350000 gold)

[@teleu1]
#IF
checknamelist ..\Market_def\Upgrade\telenpcu.txt
#ACT
SENDMSG "You already purchased this upgrade." 3
#ELSEACT
goto @buyteleu1

[@buyteleu1]
For this upgrade you'll need 500.000 gold.\\

<Buy/@buyteleu11>\
<Close/@exit>\

[@buyteleu11]
#IF
DAYOFWEEK SUN
HOUR 10 15
#ACT
goto @buyteleu111
#ELSESAY
This upgrade isn't available now.\
Return Sunday between 10AM and 3PM.\\

<Close/@exit>\

[@buyteleu111]
#IF
checkgold 500000
#ACT
take gold 500000
addnamelist ..\Market_def\Upgrade\telenpcu.txt
SENDMSG "Succesfully purchased Teleport NPC Upgrade for one week." 3
#ELSESAY
You don't seem to have enough money. (500000 gold)












