;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@HorseSystem]
{

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_0

[@BuyHorse()]
#IF
#ACT
Mov A0 %ARG(1)
Mov D0 %ARG(2)
Mov D1 %ARG(3)

#IF
checklevel %D0

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_1

#ELSEACT
break

#IF
checkgold %D1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_2

#ELSEACT
break

#IF
CheckHorse

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_3

#ACT
break

#IF
checklevel %D0
checkgold %D1
!CheckHorse

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_4

#ACT
take ½ð±Ò %D1
horsecall %A0
break

[@SellHorse]
#IF
checkhorse 1
!CheckRiding
!CheckGold 99749999

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_5

#ACT
give ½ð±Ò 250000
KillHorse
break

#IF
checkhorse 2
!CheckRiding
!CheckGold 89999999

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_6

#ACT
give ½ð±Ò 10000000
KillHorse
break

#IF
checkhorse 3
!CheckRiding
!CheckGold 44999999

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_7

#ACT
give ½ð±Ò 45000000
KillHorse
break


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\HorseMarket.txt] @Convert_HorseMarket_8

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;