返回列表 发帖

PCSXR用Cheat Code创建

下午想弄点道具玩,顺手写个小工具用。用PHP简单运行,例如 php -n ff7.php > ff7.cht

然后可直接用pcsx-reloaded导入,默认最大金钱和全部物品99,全部装备各5个...

物品的代码参考
http://www21.big.or.jp/~dram/cheatcode/ff7i.html
  1. <?php

  2. $addr_item_s = 0x8009C230;
  3. $addr_number_s = 0x8009C4AE;
  4. $item_part = 1;

  5. echo "[Max Money]
  6. 8009C8B0 C9FF
  7. 8009C8B2 3B9A
  8. ";

  9. for($i = 0; $i<=0x013F; $i++)
  10. {
  11.         if ( $i%0x20 == 0)
  12.         {
  13.                 echo "[Item_Part_";
  14.                 echo $item_part++;               
  15.                 echo "]\r\n";
  16.         }
  17.        
  18.         if( $i>0x0068 && $i<0x0080)
  19.                 continue;
  20.         else
  21.                 $br++;
  22.                        
  23.         // item
  24.         echo dechex($addr_item_s+$i*2);
  25.         echo " ";
  26.         if($i < 0x0069)
  27.                 echo dechex($i+0xC600);
  28.         else
  29.                 echo dechex($i+0x0A00);
  30.         echo "\r\n";
  31.        
  32.         // number
  33.         echo dechex($addr_number_s+$i*2);
  34.         echo " ";
  35.         if($i < 0x0069)
  36.                 echo dechex($i+0xC600);
  37.         else
  38.                 echo dechex($i+0x0A00);
  39.         echo "\r\n";       
  40.        
  41. }
  42. ?>
复制代码

返回列表