;;不要删掉此行

;-------------------------------------------------------

[@Train_Warrior]
{
#SAY
Select the class of the book you want to learn:\
{FCOLOR/1}Warrior{FCOLOR/12} | <Wizard/@Train_Wizard> | <Taoist/@Train_Taoist>\
{FCOLOR/1}Level 4{FCOLOR/12} | <Level 5/@Train_Warrior_5> \\
<(Lv4)SwordsmanShip/@TrainMagic((Lv4)SwordsmanShip,SwordsmanShip,3,4,15)>\
<(Lv4)Slaying/@TrainMagic((Lv4)Slaying,Slaying,3,4,22)>\
<(Lv4)AdvancedSlaying/@TrainMagic((Lv4)AdvancedSlaying,AdvancedSlaying,3,4,27)>\
<(Lv4)Halfmoon/@TrainMagic((Lv4)Halfmoon,Halfmoon,3,4,32)>\
<(Lv4)ShoulderDash/@TrainMagic((Lv4)ShoulderDash,ShoulderDash,3,4,35)>\
<(Lv4)FlamingSword/@TrainMagic((Lv4)FlamingSword,FlamingSword,3,4,40)>\
<(Lv4)DragonRise/@TrainMagic((Lv4)DragonRise,DragonRise,3,4,43)>\
<(Lv4)BladeStorm/@TrainMagic((Lv4)BladeStorm,BladeStorm,3,4,46)>\
<(Lv4)DestructiveSurge/@TrainMagic((Lv4)DestructiveSurge,DestructiveSurge,3,4,52)>\
<(Lv4)InterChange/@TrainMagic((Lv4)InterChange,InterChange,3,4,54)>\
<(Lv4)Defiance/@TrainMagic((Lv4)Defiance,Defiance,3,4,56)>\
<(Lv4)Beckon/@TrainMagic((Lv4)Beckon,Beckon,3,4,58)>\
<(Lv4)Might/@TrainMagic((Lv4)Might,Might,3,4,60)>\
<(Lv4)Assault/@TrainMagic((Lv4)Assault,Assault,3,4,62)>\
<Leave/@Exit>\

;-------------------------------------------------------

[@Train_Wizard]
#SAY
Select the class of the book you want to learn:\
<Warrior/@Train_Warrior> | {FCOLOR/1}Wizard{FCOLOR/12} | <Taoist/@Train_Taoist>\
{FCOLOR/1}Level 4{FCOLOR/12} | <Level 5/@Train_Wizard_5> \\
<(Lv4)Fireball/@TrainMagic((Lv4)Fireball,Fireball,3,4,15)>\
<(Lv4)LightningBall/@TrainMagic((Lv4)LightningBall,LightningBall,3,4,16)>\
<(Lv4)IceBall/@TrainMagic((Lv4)IceBall,IceBall,3,4,17)>\
<(Lv4)PowerBurst/@TrainMagic((Lv4)PowerBurst,PowerBurst,3,4,18)>\
<(Lv4)FlameRepulsor/@TrainMagic((Lv4)FlameRepulsor,FlameRepulsor,3,4,20)>\
<(Lv4)Stunning/@TrainMagic((Lv4)Stunning,Stunning,3,4,21)>\
<(Lv4)Teleport/@TrainMagic((Lv4)Teleport,Teleport,3,4,22)>\
<(Lv4)AdamantineFireball/@TrainMagic((Lv4)AdamantineFireball,AdamantineFireball,3,4,23)>\
<(Lv4)LightningBolt/@TrainMagic((Lv4)LightningBolt,LightningBolt,3,4,24)>\
<(Lv4)IceBlades/@TrainMagic((Lv4)IceBlades,IceBlades,3,4,25)>\
<(Lv4)GreatPowerBurst/@TrainMagic((Lv4)GreatPowerBurst,GreatPowerBurst,3,4,26)>\
<(Lv4)ScorchedEarth/@TrainMagic((Lv4)ScorchedEarth,ScorchedEarth,3,4,28)>\
<(Lv4)LightningBeam/@TrainMagic((Lv4)LightningBeam,LightningBeam,3,4,29)>\
<(Lv4)FrozenEarth/@TrainMagic((Lv4)FrozenEarth,FrozenEarth,3,4,30)>\
<(Lv4)BlowEarth/@TrainMagic((Lv4)BlowEarth,BlowEarth,3,4,31)>\
<(Lv4)FireCloud/@TrainMagic((Lv4)FireCloud,FireCloud,3,4,32)>\
<(Lv4)TurnUndead/@TrainMagic((Lv4)TurnUndead,TurnUndead,3,4,34)>\
<(Lv4)GeoManipulation/@TrainMagic((Lv4)GeoManipulation,GeoManipulation,3,4,35)>\
<(Lv4)MagicShield/@TrainMagic((Lv4)MagicShield,MagicShield,3,4,37)>\
<(Lv4)Explosion/@TrainMagic((Lv4)Explosion,Explosion,3,4,40)>\
<(Lv4)LightningFlower/@TrainMagic((Lv4)LightningFlower,LightningFlower,3,4,41)>\
<(Lv4)IceStorm/@TrainMagic((Lv4)IceStorm,IceStorm,3,4,42)>\
<(Lv4)DragonTornado/@TrainMagic((Lv4)DragonTornado,DragonTornado,3,4,43)>\
<(Lv4)GreatFrozenEarth/@TrainMagic((Lv4)GreatFrozenEarth,GreatFrozenEarth,3,4,50)>\
<(Lv4)ChainLightning/@TrainMagic((Lv4)ChainLightning,ChainLightning,3,4,48)>\
<(Lv4)MeteorShower/@TrainMagic((Lv4)MeteorShower,MeteorShower,3,4,51)>\
<(Lv4)Renounce/@TrainMagic((Lv4)Renounce,Renounce,3,4,54)>\
<(Lv4)Tempest/@TrainMagic((Lv4)Tempest,Tempest,3,4,57)>\
<Leave/@Exit>\

;-------------------------------------------------------

[@Train_Taoist]
#SAY
Select the class of the book you want to learn:\
<Warrior/@Train_Warrior> | <Wizard/@Train_Wizard> | {FCOLOR/1}Taoist{FCOLOR/12}\
{FCOLOR/1}Level 4{FCOLOR/12} | <Level 5/@Train_Taoist_5> \\
<(Lv4)Healing/@TrainMagic((Lv4)Healing,Healing,3,4,15)>\
<(Lv4)SpiritSword/@TrainMagic((Lv4)SpiritSword,SpiritSword,3,4,16)>\
<(Lv4)Poisoning/@TrainMagic((Lv4)Poisoning,Poisoning,3,4,20)>\
<(Lv4)TaoExplosion/@TrainMagic((Lv4)TaoExplosion,TaoExplosion,3,4,21)>\
<(Lv4)EvilSlayer/@TrainMagic((Lv4)EvilSlayer,EvilSlayer,3,4,22)>\
<(Lv4)SummonSkeleton/@TrainMagic((Lv4)SummonSkeleton,SummonSkeleton,3,4,25)>\
<(Lv4)Invisibility/@TrainMagic((Lv4)Invisibility,Invisibility,3,4,28)>\
<(Lv4)MagicProtection/@TrainMagic((Lv4)MagicProtection,MagicProtection,3,4,29)>\
<(Lv4)MassInvisibility/@TrainMagic((Lv4)MassInvisibility,MassInvisibility,3,4,31)>\
<(Lv4)GreatEvilSlayer/@TrainMagic((Lv4)GreatEvilSlayer,GreatEvilSlayer,3,4,32)>\
<(Lv4)Resilience/@TrainMagic((Lv4)Resilience,Resilience,3,4,33)>\
<(Lv4)TrapOctagon/@TrainMagic((Lv4)TrapOctagon,TrapOctagon,3,4,35)>\
<(Lv4)TaoCombatKick/@TrainMagic((Lv4)TaoCombatKick,TaoCombatKick,3,4,36)>\
<(Lv4)ElementalSuperiority/@TrainMagic((Lv4)ElementalSuperiority,ElementalSuperiority,3,4,37)>\
<(Lv4)SummonShinsoo/@TrainMagic((Lv4)SummonShinsoo,SummonShinsoo,3,4,38)>\
<(Lv4)MassHealing/@TrainMagic((Lv4)MassHealing,MassHealing,3,4,39)>\
<(Lv4)SummonJinSkeleton/@TrainMagic((Lv4)SummonJinSkeleton,SummonJinSkeleton,3,4,41)>\
<(Lv4)BloodLust/@TrainMagic((Lv4)BloodLust,BloodLust,3,4,42)>\
<(Lv4)Resurrection/@TrainMagic((Lv4)Resurrection,Resurrection,3,4,43)>\
<(Lv4)Purification/@TrainMagic((Lv4)Purification,Purification,3,4,50)>\
<(Lv4)StrengthofFaith/@TrainMagic((Lv4)StrengthofFaith,StrengthofFaith,3,4,48)>\
<(Lv4)Transparency/@TrainMagic((Lv4)Transparency,Transparency,3,4,51)>\
<(Lv4)CelestialLight/@TrainMagic((Lv4)CelestialLight,CelestialLight,3,4,54)>\
<(Lv4)GreaterTaoExplosion/@TrainMagic((Lv4)GreaterTaoExplosion,GreaterTaoExplosion,3,4,57)>\
<Leave/@Exit>\

;-------------------------------------------------------

[@Train_Warrior_5]
#SAY
Select the class of the book you want to learn:\
{FCOLOR/1}Warrior{FCOLOR/12} | <Wizard/@Train_Wizard> | <Taoist/@Train_Taoist>\
<Level 4/@Train_Warrior> | {FCOLOR/1}Level 5{FCOLOR/12} \\
<(Lv5)SwordsmanShip/@TrainMagic((Lv5)SwordsmanShip,SwordsmanShip,4,5,23)>\
<(Lv5)Slaying/@TrainMagic((Lv5)Slaying,Slaying,4,5,30)>\
<(Lv5)AdvancedSlaying/@TrainMagic((Lv5)AdvancedSlaying,AdvancedSlaying,4,5,35)>\
<(Lv5)Halfmoon/@TrainMagic((Lv5)Halfmoon,Halfmoon,4,5,40)>\
<(Lv5)ShoulderDash/@TrainMagic((Lv5)ShoulderDash,ShoulderDash,4,5,43)>\
<(Lv5)FlamingSword/@TrainMagic((Lv5)FlamingSword,FlamingSword,4,5,48)>\
<(Lv5)DragonRise/@TrainMagic((Lv5)DragonRise,DragonRise,4,5,51)>\
<(Lv5)BladeStorm/@TrainMagic((Lv5)BladeStorm,BladeStorm,4,5,54)>\
<(Lv5)DestructiveSurge/@TrainMagic((Lv5)DestructiveSurge,DestructiveSurge,4,5,63)>\
<(Lv5)InterChange/@TrainMagic((Lv5)InterChange,InterChange,4,5,65)>\
<(Lv5)Defiance/@TrainMagic((Lv5)Defiance,Defiance,4,5,67)>\
<(Lv5)Beckon/@TrainMagic((Lv5)Beckon,Beckon,4,5,69)>\
<(Lv5)Might/@TrainMagic((Lv5)Might,Might,4,5,71)>\
<(Lv5)Assault/@TrainMagic((Lv5)Assault,Assault,4,5,73)>\
<Leave/@Exit>\

;-------------------------------------------------------

[@Train_Wizard_5]
#SAY
Select the class of the book you want to learn:\
<Warrior/@Train_Warrior> | {FCOLOR/1}Wizard{FCOLOR/12} | <Taoist/@Train_Taoist>\
<Level 4/@Train_Wizard> | {FCOLOR/1}Level 5{FCOLOR/12} \\
<(Lv5)Fireball/@TrainMagic((Lv5)Fireball,Fireball,4,5,23)>\
<(Lv5)LightningBall/@TrainMagic((Lv5)LightningBall,LightningBall,4,5,24)>\
<(Lv5)IceBall/@TrainMagic((Lv5)IceBall,IceBall,4,5,25)>\
<(Lv5)PowerBurst/@TrainMagic((Lv5)PowerBurst,PowerBurst,4,5,26)>\
<(Lv5)FlameRepulsor/@TrainMagic((Lv5)FlameRepulsor,FlameRepulsor,4,5,28)>\
<(Lv5)Stunning/@TrainMagic((Lv5)Stunning,Stunning,4,5,29)>\
<(Lv5)Teleport/@TrainMagic((Lv5)Teleport,Teleport,4,5,30)>\
<(Lv5)AdamantineFireball/@TrainMagic((Lv5)AdamantineFireball,AdamantineFireball,4,5,31)>\
<(Lv5)LightningBolt/@TrainMagic((Lv5)LightningBolt,LightningBolt,4,5,32)>\
<(Lv5)IceBlades/@TrainMagic((Lv5)IceBlades,IceBlades,4,5,33)>\
<(Lv5)GreatPowerBurst/@TrainMagic((Lv5)GreatPowerBurst,GreatPowerBurst,4,5,34)>\
<(Lv5)ScorchedEarth/@TrainMagic((Lv5)ScorchedEarth,ScorchedEarth,4,5,36)>\
<(Lv5)LightningBeam/@TrainMagic((Lv5)LightningBeam,LightningBeam,4,5,37)>\
<(Lv5)FrozenEarth/@TrainMagic((Lv5)FrozenEarth,FrozenEarth,4,5,38)>\
<(Lv5)BlowEarth/@TrainMagic((Lv5)BlowEarth,BlowEarth,4,5,39)>\
<(Lv5)FireCloud/@TrainMagic((Lv5)FireCloud,FireCloud,4,5,40)>\
<(Lv5)TurnUndead/@TrainMagic((Lv5)TurnUndead,TurnUndead,4,5,42)>\
<(Lv5)GeoManipulation/@TrainMagic((Lv5)GeoManipulation,GeoManipulation,4,5,43)>\
<(Lv5)MagicShield/@TrainMagic((Lv5)MagicShield,MagicShield,4,5,45)>\
<(Lv5)Explosion/@TrainMagic((Lv5)Explosion,Explosion,4,5,48)>\
<(Lv5)LightningFlower/@TrainMagic((Lv5)LightningFlower,LightningFlower,4,5,49)>\
<(Lv5)IceStorm/@TrainMagic((Lv5)IceStorm,IceStorm,4,5,50)>\
<(Lv5)DragonTornado/@TrainMagic((Lv5)DragonTornado,DragonTornado,4,5,51)>\
<(Lv5)GreatFrozenEarth/@TrainMagic((Lv5)GreatFrozenEarth,GreatFrozenEarth,4,5,61)>\
<(Lv5)ChainLightning/@TrainMagic((Lv5)ChainLightning,ChainLightning,4,5,56)>\
<(Lv5)MeteorShower/@TrainMagic((Lv5)MeteorShower,MeteorShower,4,5,59)>\
<(Lv5)Renounce/@TrainMagic((Lv5)Renounce,Renounce,4,5,62)>\
<(Lv5)Tempest/@TrainMagic((Lv5)Tempest,Tempest,4,5,65)>\
<Leave/@Exit>\

;-------------------------------------------------------

[@Train_Taoist_5]
#SAY
Select the class of the book you want to learn:\
<Warrior/@Train_Warrior> | <Wizard/@Train_Wizard> | {FCOLOR/1}Taoist{FCOLOR/12}\
<Level 4/@Train_Taoist> | {FCOLOR/1}Level 5{FCOLOR/12} \\
<(Lv5)Healing/@TrainMagic((Lv5)Healing,Healing,4,5,23)>\
<(Lv5)SpiritSword/@TrainMagic((Lv5)SpiritSword,SpiritSword,4,5,24)>\
<(Lv5)Poisoning/@TrainMagic((Lv5)Poisoning,Poisoning,4,5,28)>\
<(Lv5)TaoExplosion/@TrainMagic((Lv5)TaoExplosion,TaoExplosion,4,5,29)>\
<(Lv5)EvilSlayer/@TrainMagic((Lv5)EvilSlayer,EvilSlayer,4,5,30)>\
<(Lv5)SummonSkeleton/@TrainMagic((Lv5)SummonSkeleton,SummonSkeleton,4,5,33)>\
<(Lv5)Invisibility/@TrainMagic((Lv5)Invisibility,Invisibility,4,5,36)>\
<(Lv5)MagicProtection/@TrainMagic((Lv5)MagicProtection,MagicProtection,4,5,37)>\
<(Lv5)MassInvisibility/@TrainMagic((Lv5)MassInvisibility,MassInvisibility,4,5,39)>\
<(Lv5)GreatEvilSlayer/@TrainMagic((Lv5)GreatEvilSlayer,GreatEvilSlayer,4,5,40)>\
<(Lv5)Resilience/@TrainMagic((Lv5)Resilience,Resilience,4,5,41)>\
<(Lv5)TrapOctagon/@TrainMagic((Lv5)TrapOctagon,TrapOctagon,4,5,43)>\
<(Lv5)TaoCombatKick/@TrainMagic((Lv5)TaoCombatKick,TaoCombatKick,4,5,44)>\
<(Lv5)ElementalSuperiority/@TrainMagic((Lv5)ElementalSuperiority,ElementalSuperiority,4,5,45)>\
<(Lv5)SummonShinsoo/@TrainMagic((Lv5)SummonShinsoo,SummonShinsoo,4,5,46)>\
<(Lv5)MassHealing/@TrainMagic((Lv5)MassHealing,MassHealing,4,5,47)>\
<(Lv5)SummonJinSkeleton/@TrainMagic((Lv5)SummonJinSkeleton,SummonJinSkeleton,4,5,49)>\
<(Lv5)BloodLust/@TrainMagic((Lv5)BloodLust,BloodLust,4,5,50)>\
<(Lv5)Resurrection/@TrainMagic((Lv5)Resurrection,Resurrection,4,5,51)>\
<(Lv5)Purification/@TrainMagic((Lv5)Purification,Purification,4,5,61)>\
<(Lv5)StrengthofFaith/@TrainMagic((Lv5)StrengthofFaith,StrengthofFaith,4,5,56)>\
<(Lv5)Transparency/@TrainMagic((Lv5)Transparency,Transparency,4,5,59)>\
<(Lv5)CelestialLight/@TrainMagic((Lv5)CelestialLight,CelestialLight,4,5,62)>\
<(Lv5)GreaterTaoExplosion/@TrainMagic((Lv5)GreaterTaoExplosion,GreaterTaoExplosion,4,5,65)>\
<Leave/@Exit>\
;-------------------------------------------------------

[@TrainMagic()]
#ACT
Mov A1{BOOK} %ARG(1)
Mov A2{MAGIC} %ARG(2)
Mov A3{LEVEL} %ARG(3)
Mov A4{LEVELUPGRADE} %ARG(4)
Mov A5{LEARNLEVEL} %ARG(5)
GoTo @CheckLevel

[@CheckLevel]
#IF
CheckLevel %A5
#SAY
Are you sure you wish to learn {FCOLOR/1}<$OUTPUT(A2)>{FCOLOR/12}\
Beaware you must have level {FCOLOR/1}<$OUTPUT(A3)>{FCOLOR/12}.\
To learn level {FCOLOR/1}<$OUTPUT(A5)>{FCOLOR/12}.\\
<Train Magic/@TakeBook>\
<Leave/@Exit>
#ELSESAY
You must be level {FCOLOR/1}<$OUTPUT(A5)>{FCOLOR/12}.\\
<Leave/@Exit>

;-------------------------------------------------------

[@TakeBook]
#ACT
AddStr A1{CONVERTBOOKNAME} "(Manual)"

#IF
CheckItem %A1 1
#ACT
Goto @CheckMagicLevel
#ELSESAY
You do not have a {FCOLOR/1}<$OUTPUT(A1)>{FCOLOR/12}.\\
<Leave/@Exit>\

;-------------------------------------------------------

[@CheckMagicLevel]
#IF
CHKMAGICLEVEL %A2 %A3
#ACT
Take %A1 1

HLSCRIPTCMD CHANGEMAGLEVEL %A2 %A4
#SAY
You now have {FCOLOR/1}<$OUTPUT(A2)>{FCOLOR/12} level {FCOLOR/1}<$OUTPUT(A4)>{FCOLOR/12}.\\
<Leave/@Exit>\
#ELSESAY
You do not have {FCOLOR/1}<$OUTPUT(A2)>{FCOLOR/12} level {FCOLOR/1}<$OUTPUT(A3)>{FCOLOR/12}.\\
<Leave/@Exit>\

}

;;不要删掉此行