<mamecheat version="1">

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@FFCAB2=04</action>
      <action>maincpu.pb@FFCB02=04</action>
    </script>
  </cheat>

  <cheat desc="Infinite Keys">
    <script state="run">
      <action>maincpu.pb@FF8045=09</action>
    </script>
  </cheat>

  <cheat desc="Maximum Stage Clear Bonus (Rest Time)">
    <script state="run">
      <action>maincpu.pb@FF803A=59</action>
    </script>
  </cheat>

  <cheat desc="Select Starting Stage">
    <parameter>
      <item value="0x01">STAGE 1 -OPENING-</item>
      <item value="0x02">STAGE 2 The Village of Trintan</item>
      <item value="0x04">STAGE 3-A To ride a Juggernaut!</item>
      <item value="0x07">STAGE 3-B Battle on the Vesuvia</item>
      <item value="0x0B">STAGE 4 The skies over Aengmore</item>
      <item value="0x0D">STAGE 4 #BOSS#</item>
      <item value="0x0E">STAGE 5-A Forest of despair</item>
      <item value="0x14">STAGE 5-B The riddle of Aensun</item>
      <item value="0x05">STAGE 5-C The forest bridge</item>
      <item value="0x18">STAGE 6 Battle of Strong Oak</item>
      <item value="0x1A">STAGE 6 #BOSS#</item>
      <item value="0x1B">STAGE 7 The grove of destruction</item>
      <item value="0x1C">STAGE 8-A Forest Labyrinth</item>
      <item value="0x23">STAGE 8-B Rescue at the Gnome Village</item>
      <item value="0x22">Village 1</item>
      <item value="0x6E">Village 2</item>
      <item value="0x20">PENALTY STAGE Blackwing The Dragon</item>
      <item value="0x43">The cave of Rafael, the Immortal</item>
      <item value="0x2D">Hidden treasures 'Pathway to Red Dragon'</item>
      <item value="0x2E">Red Dragon</item>
      <item value="0x27">STAGE 9-A Land of Fire</item>
      <item value="0x2B">STAGE 9-B Lost World</item>
      <item value="0x29">STAGE 9-C Secret Underworld</item>
      <item value="0x2F">STAGE 10-1 Gateway</item>
      <item value="0x36">STAGE 10-2 Overtures</item>
      <item value="0x3A">STAGE 10-3 Arena</item>
      <item value="0x3B">STAGE 10-4 Battle Royal</item>
      <item value="0x40">STAGE 10-5 Arena revisted</item>
      <item value="0x41">STAGE 10-6 Inner Heart, Dark Heart</item>
      <item value="0x69">Last Stage #BOSS#</item>
    </parameter>
    <script state="run">
      <action condition="(maincpu.pb@FF8034==01)">maincpu.pb@FF8034=param</action>
    </script>
  </cheat>

  <cheat desc="Hit Anywhere">
    <script state="on">
      <action>temp0 =maincpu.ow@0262A2</action>
      <action>temp1 =maincpu.ow@0262D8</action>
      <action>temp2 =maincpu.ow@026302</action>
    </script>
    <script state="run">
      <action>maincpu.ow@0262A2=6002</action> <!-- This ROM cheat was made by nolberto82 -->
      <action>maincpu.ow@0262D8=6002</action>
      <action>maincpu.ow@026302=6002</action>
    </script>
    <script state="off">
      <action>maincpu.ow@0262A2=temp0 </action>
      <action>maincpu.ow@0262D8=temp1 </action>
      <action>maincpu.ow@026302=temp2 </action>
    </script>
  </cheat>

  <cheat desc="One Hit Kills">
    <script state="on">
      <action>temp0 =maincpu.ow@026494</action>
    </script>
    <script state="run">
      <action>maincpu.ow@026494=4269</action> <!-- This ROM cheat was made by pasky13 -->
    </script>
    <script state="off">
      <action>maincpu.ow@026494=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL1">
    <script state="run">
      <action>maincpu.pb@FF8641=9A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL1">
    <script state="run">
      <action>maincpu.pb@FF865C=03</action>
    </script>
  </cheat>

  <cheat desc="Maximum SP PL1">
    <script state="run">
      <action>maincpu.pd@FF86F2=00099999</action>
    </script>
  </cheat>

  <cheat desc="Infinite Item PL1">
    <script state="run">
      <action>maincpu.pd@FF8726=09090909</action>
      <action>maincpu.pw@FF872A=0909</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL1">
    <script state="run">
      <action>maincpu.pd@FF872F=09090909</action>
      <action>maincpu.pd@FF8732=00090909</action>
      <action>maincpu.pb@FF8737=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Wands PL1">
    <script state="run">
      <action>maincpu.pb@FF8769=14</action>
      <action>maincpu.pw@FF876A=1414</action>
      <action>maincpu.pb@FF876F=14</action>
    </script>
  </cheat>

  <cheat desc="Select Right Hand Weapon PL1"> <comment>The Cleric, Elf, Dwarf + Thief can ONLY use the Right Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF86EB=param</action>
    </script>
  </cheat>

  <cheat desc="Select Left Hand Weapon PL1"> <comment>The Magicuser can ONLY use the Left Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF86EC=param</action>
    </script>
  </cheat>

  <cheat desc="Select Head Equipment PL1">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Helmet</item>
      <item value="0x01">Magical Hat</item>
      <item value="0x02">Hood</item>
      <item value="0x03">Ciaclet</item>
      <item value="0x04">Cleric Hat</item>
      <item value="0x05">Tiara</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF873E=param</action>
    </script>
  </cheat>

  <cheat desc="Select Body Equipment PL1">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Fighter</item>
      <item value="0x01">Cleric</item>
      <item value="0x02">Elf</item>
      <item value="0x03">Dwarf</item>
      <item value="0x04">Magicuser</item>
      <item value="0x05">Thief</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF873F=param</action>
    </script>
  </cheat>

  <cheat desc="Select Leg Equipment PL1">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Boots of Speed</item>
      <item value="0x01">Boots of Springing + Striding</item>
      <item value="0x02">Boots of Levitation</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8740=param</action>
      <action>maincpu.pb@FF8749=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF8749=00</action>
    </script>
  </cheat>

  <cheat desc="Select Arm Equipment PL1">
    <parameter>
      <item value="0x01">None</item>
      <item value="0x02">Gauntlet of Power</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@FF8741=FF</action>
      <action condition="(param==01)">maincpu.pb@FF874A=00</action>
      <action condition="(param==02)">maincpu.pb@FF8741=00</action>
      <action condition="(param==02)">maincpu.pb@FF874A=05</action>
    </script>
  </cheat>

  <cheat desc="Select Shield Equipment PL1">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Shield</item>
      <item value="0x01">Normal Shield (Elf)</item>
      <item value="0x04">Dragon Shield</item>
      <item value="0x05">Frame Shield</item>
      <item value="0x06">Ice Shield</item>
      <item value="0x07">Shield of Protection from Dark Magic</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8742=param</action>
    </script>
  </cheat>

  <cheat desc="Select Hand Equipment PL1">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Ring of Protection</item>
      <item value="0x01">Ring of Fire Resistance</item>
      <item value="0x02">Ring of Spell Turning</item>
      <item value="0x03">Ring of Protection from Evil</item>
      <item value="0x04">Rod of Fire Ball</item>
      <item value="0x05">Rod of Cold</item>
      <item value="0x06">Rod of Lightning</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8743=param</action>
      <action>maincpu.pb@FF874B=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF874B=00</action>
    </script>
  </cheat>

  <cheat desc="Select Accessory PL1">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Necklace</item>
      <item value="0x01">Orb</item>
      <item value="0x02">Bracelet</item>
      <item value="0x03">Brooch</item>
      <item value="0x04">Earring</item>
      <item value="0x05">Anklet</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8744=param</action>
    </script>
  </cheat>

  <cheat desc="Select Artifact PL1">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Eye of Beholder</item>
      <item value="0x01">Skin of Displacer Beast</item>
      <item value="0x02">Eye of Displacer Beast</item>
      <item value="0x03">Scale of Dragon</item>
      <item value="0x04">Skin of Manticore</item>
      <item value="0x05">Egg of Owlbear</item>
      <item value="0x06">???1</item>
      <item value="0x07">???2</item>
      <item value="0x08">Horn of Dragon</item>
      <item value="0x09">Medal</item>
      <item value="0x0A">Displacer Cloak</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8745=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL2">
    <script state="run">
      <action>maincpu.pb@FF8841=9A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL2">
    <script state="run">
      <action>maincpu.pb@FF885C=03</action>
    </script>
  </cheat>

  <cheat desc="Maximum SP PL2">
    <script state="run">
      <action>maincpu.pd@FF88F2=00099999</action>
    </script>
  </cheat>

  <cheat desc="Infinite Item PL2">
    <script state="run">
      <action>maincpu.pd@FF8926=09090909</action>
      <action>maincpu.pw@FF892A=0909</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL2">
    <script state="run">
      <action>maincpu.pd@FF892F=09090909</action>
      <action>maincpu.pd@FF8932=00090909</action>
      <action>maincpu.pb@FF8937=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Wands PL2">
    <script state="run">
      <action>maincpu.pb@FF8969=14</action>
      <action>maincpu.pw@FF896A=1414</action>
      <action>maincpu.pb@FF896F=14</action>
    </script>
  </cheat>

  <cheat desc="Select Right Hand Weapon PL2"> <comment>The Cleric, Elf, Dwarf + Thief can ONLY use the Right Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF88EB=param</action>
    </script>
  </cheat>

  <cheat desc="Select Left Hand Weapon PL2"> <comment>The Magicuser can ONLY use the Left Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF88EC=param</action>
    </script>
  </cheat>

  <cheat desc="Select Head Equipment PL2">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Helmet</item>
      <item value="0x01">Magical Hat</item>
      <item value="0x02">Hood</item>
      <item value="0x03">Ciaclet</item>
      <item value="0x04">Cleric Hat</item>
      <item value="0x05">Tiara</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF893E=param</action>
    </script>
  </cheat>

  <cheat desc="Select Body Equipment PL2">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Fighter</item>
      <item value="0x01">Cleric</item>
      <item value="0x02">Elf</item>
      <item value="0x03">Dwarf</item>
      <item value="0x04">Magicuser</item>
      <item value="0x05">Thief</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF893F=param</action>
    </script>
  </cheat>

  <cheat desc="Select Leg Equipment PL2">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Boots of Speed</item>
      <item value="0x01">Boots of Springing + Striding</item>
      <item value="0x02">Boots of Levitation</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8940=param</action>
      <action>maincpu.pb@FF8949=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF8949=00</action>
    </script>
  </cheat>

  <cheat desc="Select Arm Equipment PL2">
    <parameter>
      <item value="0x01">None</item>
      <item value="0x02">Gauntlet of Power</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@FF8941=FF</action>
      <action condition="(param==01)">maincpu.pb@FF894A=00</action>
      <action condition="(param==02)">maincpu.pb@FF8941=00</action>
      <action condition="(param==02)">maincpu.pb@FF894A=05</action>
    </script>
  </cheat>

  <cheat desc="Select Shield Equipment PL2">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Shield</item>
      <item value="0x01">Normal Shield (Elf)</item>
      <item value="0x04">Dragon Shield</item>
      <item value="0x05">Frame Shield</item>
      <item value="0x06">Ice Shield</item>
      <item value="0x07">Shield of Protection from Dark Magic</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8942=param</action>
    </script>
  </cheat>

  <cheat desc="Select Hand Equipment PL2">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Ring of Protection</item>
      <item value="0x01">Ring of Fire Resistance</item>
      <item value="0x02">Ring of Spell Turning</item>
      <item value="0x03">Ring of Protection from Evil</item>
      <item value="0x04">Rod of Fire Ball</item>
      <item value="0x05">Rod of Cold</item>
      <item value="0x06">Rod of Lightning</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8943=param</action>
      <action>maincpu.pb@FF894B=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF894B=00</action>
    </script>
  </cheat>

  <cheat desc="Select Accessory PL2">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Necklace</item>
      <item value="0x01">Orb</item>
      <item value="0x02">Bracelet</item>
      <item value="0x03">Brooch</item>
      <item value="0x04">Earring</item>
      <item value="0x05">Anklet</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8944=param</action>
    </script>
  </cheat>

  <cheat desc="Select Artifact PL2">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Eye of Beholder</item>
      <item value="0x01">Skin of Displacer Beast</item>
      <item value="0x02">Eye of Displacer Beast</item>
      <item value="0x03">Scale of Dragon</item>
      <item value="0x04">Skin of Manticore</item>
      <item value="0x05">Egg of Owlbear</item>
      <item value="0x06">???1</item>
      <item value="0x07">???2</item>
      <item value="0x08">Horn of Dragon</item>
      <item value="0x09">Medal</item>
      <item value="0x0A">Displacer Cloak</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8945=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL3">
    <script state="run">
      <action>maincpu.pb@FF8A41=9A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL3">
    <script state="run">
      <action>maincpu.pb@FF8A5C=03</action>
    </script>
  </cheat>

  <cheat desc="Maximum SP PL3">
    <script state="run">
      <action>maincpu.pd@FF8AF2=00099999</action>
    </script>
  </cheat>

  <cheat desc="Infinite Item PL3">
    <script state="run">
      <action>maincpu.pd@FF8B26=09090909</action>
      <action>maincpu.pw@FF8B2A=0909</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL3">
    <script state="run">
      <action>maincpu.pd@FF8B2F=09090909</action>
      <action>maincpu.pd@FF8B32=00090909</action>
      <action>maincpu.pb@FF8B37=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Wands PL3">
    <script state="run">
      <action>maincpu.pb@FF8B69=14</action>
      <action>maincpu.pw@FF8B6A=1414</action>
      <action>maincpu.pb@FF8B6F=14</action>
    </script>
  </cheat>

  <cheat desc="Select Right Hand Weapon PL3"> <comment>The Cleric, Elf, Dwarf + Thief can ONLY use the Right Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8AEB=param</action>
    </script>
  </cheat>

  <cheat desc="Select Left Hand Weapon PL3"> <comment>The Magicuser can ONLY use the Left Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8AEC=param</action>
    </script>
  </cheat>

  <cheat desc="Select Head Equipment PL3">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Helmet</item>
      <item value="0x01">Magical Hat</item>
      <item value="0x02">Hood</item>
      <item value="0x03">Ciaclet</item>
      <item value="0x04">Cleric Hat</item>
      <item value="0x05">Tiara</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8B3E=param</action>
    </script>
  </cheat>

  <cheat desc="Select Body Equipment PL3">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Fighter</item>
      <item value="0x01">Cleric</item>
      <item value="0x02">Elf</item>
      <item value="0x03">Dwarf</item>
      <item value="0x04">Magicuser</item>
      <item value="0x05">Thief</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8B3F=param</action>
    </script>
  </cheat>

  <cheat desc="Select Leg Equipment PL3">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Boots of Speed</item>
      <item value="0x01">Boots of Springing + Striding</item>
      <item value="0x02">Boots of Levitation</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8B40=param</action>
      <action>maincpu.pb@FF8B49=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF8B49=00</action>
    </script>
  </cheat>

  <cheat desc="Select Arm Equipment PL3">
    <parameter>
      <item value="0x01">None</item>
      <item value="0x02">Gauntlet of Power</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@FF8B41=FF</action>
      <action condition="(param==01)">maincpu.pb@FF8B4A=00</action>
      <action condition="(param==02)">maincpu.pb@FF8B41=00</action>
      <action condition="(param==02)">maincpu.pb@FF8B4A=05</action>
    </script>
  </cheat>

  <cheat desc="Select Shield Equipment PL3">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Shield</item>
      <item value="0x01">Normal Shield (Elf)</item>
      <item value="0x04">Dragon Shield</item>
      <item value="0x05">Frame Shield</item>
      <item value="0x06">Ice Shield</item>
      <item value="0x07">Shield of Protection from Dark Magic</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8B42=param</action>
    </script>
  </cheat>

  <cheat desc="Select Hand Equipment PL3">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Ring of Protection</item>
      <item value="0x01">Ring of Fire Resistance</item>
      <item value="0x02">Ring of Spell Turning</item>
      <item value="0x03">Ring of Protection from Evil</item>
      <item value="0x04">Rod of Fire Ball</item>
      <item value="0x05">Rod of Cold</item>
      <item value="0x06">Rod of Lightning</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8B43=param</action>
      <action>maincpu.pb@FF8B4B=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF8B4B=00</action>
    </script>
  </cheat>

  <cheat desc="Select Accessory PL3">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Necklace</item>
      <item value="0x01">Orb</item>
      <item value="0x02">Bracelet</item>
      <item value="0x03">Brooch</item>
      <item value="0x04">Earring</item>
      <item value="0x05">Anklet</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8B44=param</action>
    </script>
  </cheat>

  <cheat desc="Select Artifact PL3">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Eye of Beholder</item>
      <item value="0x01">Skin of Displacer Beast</item>
      <item value="0x02">Eye of Displacer Beast</item>
      <item value="0x03">Scale of Dragon</item>
      <item value="0x04">Skin of Manticore</item>
      <item value="0x05">Egg of Owlbear</item>
      <item value="0x06">???1</item>
      <item value="0x07">???2</item>
      <item value="0x08">Horn of Dragon</item>
      <item value="0x09">Medal</item>
      <item value="0x0A">Displacer Cloak</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8B45=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL4">
    <script state="run">
      <action>maincpu.pb@FF8C41=9A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL4">
    <script state="run">
      <action>maincpu.pb@FF8C5C=03</action>
    </script>
  </cheat>

  <cheat desc="Maximum SP PL4">
    <script state="run">
      <action>maincpu.pd@FF8CF2=00099999</action>
    </script>
  </cheat>

  <cheat desc="Infinite Item PL4">
    <script state="run">
      <action>maincpu.pd@FF8D26=09090909</action>
      <action>maincpu.pw@FF8D2A=0909</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL4">
    <script state="run">
      <action>maincpu.pd@FF8D2F=09090909</action>
      <action>maincpu.pd@FF8D32=00090909</action>
      <action>maincpu.pb@FF8D37=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Wands PL4">
    <script state="run">
      <action>maincpu.pb@FF8D69=14</action>
      <action>maincpu.pw@FF8D6A=1414</action>
      <action>maincpu.pb@FF8D6F=14</action>
    </script>
  </cheat>

  <cheat desc="Select Right Hand Weapon PL4"> <comment>The Cleric, Elf, Dwarf + Thief can ONLY use the Right Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8CEB=param</action>
    </script>
  </cheat>

  <cheat desc="Select Left Hand Weapon PL4"> <comment>The Magicuser can ONLY use the Left Hand Weapons. ONLY the Fighter can use both Left + Right Hand Weapons!</comment>
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Sword Lv1</item>
      <item value="0x01">Normal Sword Lv2</item>
      <item value="0x02">Normal Sword Lv3</item>
      <item value="0x03">Normal Sword Lv4</item>
      <item value="0x04">Short Sword Lv1</item>
      <item value="0x05">Short Sword Lv2</item>
      <item value="0x06">Short Sword Lv3</item>
      <item value="0x07">Short Sword Lv4</item>
      <item value="0x08">Two Handed Sword</item>
      <item value="0x09">Bastard Sword</item>
      <item value="0x0B">Dragon Slayer</item>
      <item value="0x0C">Holy Avenger</item>
      <item value="0x0D">Sword of Legend</item>
      <item value="0x0E">Cursed Sword 1</item>
      <item value="0x0F">Cursed Sword 2</item>
      <item value="0x10">Sword of Flame</item>
      <item value="0x11">Sword of Freeze</item>
      <item value="0x12">Storm Blade</item>
      <item value="0x16">Hand Axe</item>
      <item value="0x18">Battle Axe</item>
      <item value="0x19">Mace</item>
      <item value="0x1D">War Hammer</item>
      <item value="0x1E">Morning Star</item>
      <item value="0x1F">Element Power Staff</item>
      <item value="0x20">Magical Power Staff</item>
      <item value="0x21">Wizardry Staff</item>
      <item value="0x22">Striking Staff</item>
      <item value="0x23">Snake Staff</item>
      <item value="0x24">Wand of Cold</item>
      <item value="0x25">Wand of Fire Ball</item>
      <item value="0x26">Wand of Lightning Bolt</item>
      <item value="0x27">Wand of Paralyze</item>
      <item value="0x28">Shield</item>
      <item value="0x29">Shield (Elf)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8CEC=param</action>
    </script>
  </cheat>

  <cheat desc="Select Head Equipment PL4">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Helmet</item>
      <item value="0x01">Magical Hat</item>
      <item value="0x02">Hood</item>
      <item value="0x03">Ciaclet</item>
      <item value="0x04">Cleric Hat</item>
      <item value="0x05">Tiara</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8D3E=param</action>
    </script>
  </cheat>

  <cheat desc="Select Body Equipment PL4">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Fighter</item>
      <item value="0x01">Cleric</item>
      <item value="0x02">Elf</item>
      <item value="0x03">Dwarf</item>
      <item value="0x04">Magicuser</item>
      <item value="0x05">Thief</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8D3F=param</action>
    </script>
  </cheat>

  <cheat desc="Select Leg Equipment PL4">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Boots of Speed</item>
      <item value="0x01">Boots of Springing + Striding</item>
      <item value="0x02">Boots of Levitation</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8D40=param</action>
      <action>maincpu.pb@FF8D49=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF8D49=00</action>
    </script>
  </cheat>

  <cheat desc="Select Arm Equipment PL4">
    <parameter>
      <item value="0x01">None</item>
      <item value="0x02">Gauntlet of Power</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@FF8D41=FF</action>
      <action condition="(param==01)">maincpu.pb@FF8D4A=00</action>
      <action condition="(param==02)">maincpu.pb@FF8D41=00</action>
      <action condition="(param==02)">maincpu.pb@FF8D4A=05</action>
    </script>
  </cheat>

  <cheat desc="Select Shield Equipment PL4">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Normal Shield</item>
      <item value="0x01">Normal Shield (Elf)</item>
      <item value="0x04">Dragon Shield</item>
      <item value="0x05">Frame Shield</item>
      <item value="0x06">Ice Shield</item>
      <item value="0x07">Shield of Protection from Dark Magic</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8D42=param</action>
    </script>
  </cheat>

  <cheat desc="Select Hand Equipment PL4">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Ring of Protection</item>
      <item value="0x01">Ring of Fire Resistance</item>
      <item value="0x02">Ring of Spell Turning</item>
      <item value="0x03">Ring of Protection from Evil</item>
      <item value="0x04">Rod of Fire Ball</item>
      <item value="0x05">Rod of Cold</item>
      <item value="0x06">Rod of Lightning</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8D43=param</action>
      <action>maincpu.pb@FF8D4B=05</action>
      <action condition="(param==0xFF)">maincpu.pb@FF8D4B=00</action>
    </script>
  </cheat>

  <cheat desc="Select Accessory PL4">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Necklace</item>
      <item value="0x01">Orb</item>
      <item value="0x02">Bracelet</item>
      <item value="0x03">Brooch</item>
      <item value="0x04">Earring</item>
      <item value="0x05">Anklet</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8D44=param</action>
    </script>
  </cheat>

  <cheat desc="Select Artifact PL4">
    <parameter>
      <item value="0xFF">None</item>
      <item value="0x00">Eye of Beholder</item>
      <item value="0x01">Skin of Displacer Beast</item>
      <item value="0x02">Eye of Displacer Beast</item>
      <item value="0x03">Scale of Dragon</item>
      <item value="0x04">Skin of Manticore</item>
      <item value="0x05">Egg of Owlbear</item>
      <item value="0x06">???1</item>
      <item value="0x07">???2</item>
      <item value="0x08">Horn of Dragon</item>
      <item value="0x09">Medal</item>
      <item value="0x0A">Displacer Cloak</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8D45=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="Infinite Final Strike! is only for use when playing with 3"/>
  <cheat desc="or 4 Players. Player 1 should select the character Magicuser"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Final Strike!">
    <script state="run">
      <action>maincpu.pb@FF8641=9A</action>
      <action>maincpu.pb@FF86EC=21</action>
      <action>maincpu.pb@FF86EE=01</action>
      <action>maincpu.pb@FF8841=9A</action>
      <action>maincpu.pb@FF88EE=01</action>
      <action>maincpu.pb@FF8A41=9A</action>
      <action>maincpu.pb@FF8AEE=01</action>
      <action>maincpu.pb@FF8A41=9A</action>
      <action>maincpu.pb@FF8CEE=01</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="No Background Music">
    <script state="run">
      <action>audiocpu.pw@F026=0000</action>
    </script>
  </cheat>

  <cheat desc="Select Region"> <comment>This cheat sets the machine region - the effectiveness may vary! You have to enable this ASAP - ON or before the ROM check screen! Or enable + RESET</comment>
    <parameter>
      <item value="0x00">Japan</item>
      <item value="0x02">USA</item>
      <item value="0x04">Hispanic</item>
      <item value="0x06">Asia</item>
      <item value="0x08">Euro</item>
      <item value="0x0A">Brazil</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8071=param</action>
    </script>
  </cheat>

  <cheat desc="Sound Test">
    <parameter min="1" max="1184" step="1"/>
    <script state="change">
      <action>audiocpu.pw@F015=0000</action>
      <action>audiocpu.pq@F100=0000FF0000FF00FF</action>
      <action>audiocpu.pq@F108=00FFFF0000000000</action>
      <action>audiocpu.pq@F110=0000FF0000FF0000</action>
      <action>audiocpu.pq@F118=00FFFF0300000001</action>
      <action condition="(param LT 100)">audiocpu.pb@F111=param</action>
      <action>temp0=param/100</action>
      <action condition="(param GE 100)">audiocpu.pb@F110=temp0</action>
      <action condition="(param GE 100)">audiocpu.pb@F111=param-(temp0*100)</action>
      <action>audiocpu.pb@F015=20</action>
    </script>
  </cheat>

</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
