Werther
级别: ☆
编号: ☆
精华: ☆
发帖: ☆
威望: ☆ 点
配偶: ☆
火 花 币: ☆ HHB
注册时间:☆
最后登陆:☆
|
试了下~~~可以改`~ 在主城大厅里,选择“クラスチェンジ” 转职 指令 后,即开始先判断角色是否够等级转职~以下是判断程序! 849e3b LDA $0009,X [7e2cdd] A:2cd4 X:2cd4 Y:0000 S:1fc0 DB:7e D:0000 P:00 e 849e3e AND #$ff A:000a X:2cd4 Y:0000 S:1fc0 DB:7e D:0000 P:00 e 849e41 PLX A:000a X:2cd4 Y:0000 S:1fc0 DB:7e D:0000 P:00 e 849e42 PLP A:000a X:0003 Y:0000 S:1fc2 DB:7e D:0000 P:00 e 849e43 PLB A:000a X:0003 Y:0000 S:1fc3 DB:7e D:0000 P:80 e 849e44 RTL A:000a X:0003 Y:0000 S:1fc4 DB:87 D:0000 P:80 e 87a474 STA $0574 [870574] A:000a X:0003 Y:0000 S:1fc7 DB:87 D:0000 P:80 e 87a477 JSL $87a4e1 A:000a X:0003 Y:0000 S:1fc7 DB:87 D:0000 P:80 e 87a4e1 PHB A:000a X:0003 Y:0000 S:1fc4 DB:87 D:0000 P:80 e 87a4e2 PHP A:000a X:0003 Y:0000 S:1fc3 DB:87 D:0000 P:80 e 87a4e3 SEP #$20 A:000a X:0003 Y:0000 S:1fc2 DB:87 D:0000 P:80 e 87a4e5 LDA #$83 A:000a X:0003 Y:0000 S:1fc2 DB:87 D:0000 P:a0 e 87a4e7 PHA A:0083 X:0003 Y:0000 S:1fc2 DB:87 D:0000 P:a0 e 87a4e8 REP #$20 A:0083 X:0003 Y:0000 S:1fc1 DB:87 D:0000 P:a0 e 87a4ea PLB A:0083 X:0003 Y:0000 S:1fc1 DB:87 D:0000 P:80 e 87a4eb PHX A:0083 X:0003 Y:0000 S:1fc2 DB:83 D:0000 P:80 e 87a4ec LDX $057a [83057a] A:0083 X:0003 Y:0000 S:1fc0 DB:83 D:0000 P:80 e 87a4ef LDA $0000,X [8392eb] A:0083 X:92eb Y:0000 S:1fc0 DB:83 D:0000 P:80 e 87a4f2 AND #$ff A:2814 X:92eb Y:0000 S:1fc0 DB:83 D:0000 P:00 e 87a4f5 PLX A:0014 X:92eb Y:0000 S:1fc0 DB:83 D:0000 P:00 e 87a4f6 PLP A:0014 X:0003 Y:0000 S:1fc2 DB:83 D:0000 P:00 e 87a4f7 PLB A:0014 X:0003 Y:0000 S:1fc3 DB:83 D:0000 P:80 e 87a4f8 RTL A:0014 X:0003 Y:0000 S:1fc4 DB:87 D:0000 P:80 e 87a47b DEC A A:0014 X:0003 Y:0000 S:1fc7 DB:87 D:0000 P:80 e 87a47c CMP $0574 [870574] A:0013 X:0003 Y:0000 S:1fc7 DB:87 D:0000 P:00 e 87a47f BPL $a490 [87a490] A:0013 X:0003 Y:0000 S:1fc7 DB:87 D:0000 P:01 e 87a490 PLY A:0013 X:0003 Y:0000 S:1fc7 DB:87 D:0000 P:01 e 87a491 PLX A:0013 X:0003 Y:0000 S:1fc9 DB:87 D:0000 P:03 e 87a492 PLP A:0013 X:000c Y:0000 S:1fcb DB:87 D:0000 P:01 e 87a493 PLB A:0013 X:000c Y:0000 S:1fcc DB:87 D:0000 P:00 e 87a494 CLC A:0013 X:000c Y:0000 S:1fcd DB:8a D:0000 P:80 e 87a495 RTL A:0013 X:000c Y:0000 S:1fcd DB:8a D:0000 P:80 e 8aef65 BCC $ef6b [8aef6b] A:0013 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aef6b LDA $7e2000 A:0013 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aef6f BEQ $efd5 [8aefd5] A:0000 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:02 e 8aefd5 LDA $0d6a [8a0d6a] A:0000 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:02 e 8aefd8 CMP #$06 A:0002 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:00 e 8aefdb BCS $efe9 [8aefe9] A:0002 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefdd LDA #$00 A:0002 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe0 STA $25 [000025] A:8a00 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe2 LDA #$56 A:8a00 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe5 STA $24 [000024] A:d756 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe7 BRA $eff3 [8aeff3] A:d756 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aeff3 LDA #$03 A:d756 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aeff6 JSL $91811c A:0003 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:00 e 91811c PHP A:0003 X:000c Y:0000 S:1fcd DB:8a D:0000 P:00 e 91811d JSL $918127 A:0003 X:000c Y:0000 S:1fcc DB:8a D:0000 P:00 e
以上代码是以亚丹为数据分析: 首先,程序把亚丹的等级读入并存放到内存$7e2cdd,再从这个内存读取(849e3b LDA $0009,X [7e2cdd]) 存放到STA $0574 然后,从87a4ef LDA $0000,X [8392eb] A:0083 X:92eb $8392eb这个地址(ROM里$0394EB:14,14的十进制是20,即等级为20方可升级)读取需要转职的最底级别。 然后87a47c CMP $0574与亚丹的当前等级对比,如果小于20等级,就显示以下内容
8aefdd开始进入: “クラスチェンジはレベル20に ならないとできません もっと経驗をつんで下さいね”
表示不可转职。
修改限制:把 $0394EB:14改成想要的数字即可,例如让亚丹10级升级,14改为0A即可。 原始:
修改后:
———————————————————————————————————————— 下面以阿雷克为例子,他跟诺伊修是同一职业,借此判断,是否每一种职业/每个人,都有专门的转职等级限制? 阿雷克此时为12等级(0C),数据地址$8390dc(ROM地址$0392DC)
849e3b LDA $0009,X [7e2d01] A:2cf8 X:2cf8 Y:0000 S:1fc0 DB:7e D:0000 P:00 e 849e3e AND #$ff A:000c X:2cf8 Y:0000 S:1fc0 DB:7e D:0000 P:00 e 849e41 PLX A:000c X:2cf8 Y:0000 S:1fc0 DB:7e D:0000 P:00 e 849e42 PLP A:000c X:0002 Y:0000 S:1fc2 DB:7e D:0000 P:00 e 849e43 PLB A:000c X:0002 Y:0000 S:1fc3 DB:7e D:0000 P:81 e 849e44 RTL A:000c X:0002 Y:0000 S:1fc4 DB:87 D:0000 P:81 e 87a474 STA $0574 [870574] A:000c X:0002 Y:0000 S:1fc7 DB:87 D:0000 P:81 e 87a477 JSL $87a4e1 A:000c X:0002 Y:0000 S:1fc7 DB:87 D:0000 P:81 e 87a4e1 PHB A:000c X:0002 Y:0000 S:1fc4 DB:87 D:0000 P:81 e 87a4e2 PHP A:000c X:0002 Y:0000 S:1fc3 DB:87 D:0000 P:81 e 87a4e3 SEP #$20 A:000c X:0002 Y:0000 S:1fc2 DB:87 D:0000 P:81 e 87a4e5 LDA #$83 A:000c X:0002 Y:0000 S:1fc2 DB:87 D:0000 P:a1 e 87a4e7 PHA A:0083 X:0002 Y:0000 S:1fc2 DB:87 D:0000 P:a1 e 87a4e8 REP #$20 A:0083 X:0002 Y:0000 S:1fc1 DB:87 D:0000 P:a1 e 87a4ea PLB A:0083 X:0002 Y:0000 S:1fc1 DB:87 D:0000 P:81 e 87a4eb PHX A:0083 X:0002 Y:0000 S:1fc2 DB:83 D:0000 P:81 e 87a4ec LDX $057a [83057a] A:0083 X:0002 Y:0000 S:1fc0 DB:83 D:0000 P:81 e 87a4ef LDA $0000,X [8390dc] A:0083 X:90dc Y:0000 S:1fc0 DB:83 D:0000 P:81 e 87a4f2 AND #$ff A:2814 X:90dc Y:0000 S:1fc0 DB:83 D:0000 P:01 e 87a4f5 PLX A:0014 X:90dc Y:0000 S:1fc0 DB:83 D:0000 P:01 e 87a4f6 PLP A:0014 X:0002 Y:0000 S:1fc2 DB:83 D:0000 P:01 e 87a4f7 PLB A:0014 X:0002 Y:0000 S:1fc3 DB:83 D:0000 P:81 e 87a4f8 RTL A:0014 X:0002 Y:0000 S:1fc4 DB:87 D:0000 P:81 e 87a47b DEC A A:0014 X:0002 Y:0000 S:1fc7 DB:87 D:0000 P:81 e 87a47c CMP $0574 [870574] A:0013 X:0002 Y:0000 S:1fc7 DB:87 D:0000 P:01 e 87a47f BPL $a490 [87a490] A:0013 X:0002 Y:0000 S:1fc7 DB:87 D:0000 P:01 e 87a490 PLY A:0013 X:0002 Y:0000 S:1fc7 DB:87 D:0000 P:01 e 87a491 PLX A:0013 X:0002 Y:0000 S:1fc9 DB:87 D:0000 P:03 e 87a492 PLP A:0013 X:000c Y:0000 S:1fcb DB:87 D:0000 P:01 e 87a493 PLB A:0013 X:000c Y:0000 S:1fcc DB:87 D:0000 P:00 e 87a494 CLC A:0013 X:000c Y:0000 S:1fcd DB:8a D:0000 P:80 e 87a495 RTL A:0013 X:000c Y:0000 S:1fcd DB:8a D:0000 P:80 e 8aef65 BCC $ef6b [8aef6b] A:0013 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aef6b LDA $7e2000 A:0013 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aef6f BEQ $efd5 [8aefd5] A:0000 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:02 e 8aefd5 LDA $0d6a [8a0d6a] A:0000 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:02 e 8aefd8 CMP #$06 A:0002 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:00 e 8aefdb BCS $efe9 [8aefe9] A:0002 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefdd LDA #$00 A:0002 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe0 STA $25 [000025] A:8a00 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe2 LDA #$56 A:8a00 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe5 STA $24 [000024] A:d756 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aefe7 BRA $eff3 [8aeff3] A:d756 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aeff3 LDA #$03 A:d756 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:80 e 8aeff6 JSL $91811c A:0003 X:000c Y:0000 S:1fd0 DB:8a D:0000 P:00 e
相同职业的~
把$0392DC:14改为0A,测试结果为12等级的阿雷克可以转职,与其同职业的诺伊修也可以转职了。 由此判断:每一种职业,都有专门的数据存放其升级限制!
$0394EB:14是ソードアーマー 剑重装兵 的升级限制 $0392DC:14是ソシアルナイト 突击骑士 的升级限制
其他没有测试`~~分析方法一样~
|
|
[1 楼]
辽宁 |
Posted:2008-06-27 20:40| |
顶端
| |