地址
我问star175大求到了地址。希望G仔大大可以完善你的CM。
策略天气、装备限制的函数重写了,贴几个关键位置出来,自行研究
0040EACB |> \3C 04 CMP AL,4 ; AL是策略编号
0040EACD |. 76 04 JBE SHORT Ekd5.0040EAD3 ; 策略编号<=4(火系)跳转
0040EACF |> 3C 4A CMP AL,4A
0040EAD1 |. 75 40 JNZ SHORT Ekd5.0040EB13
0040EAD3 |> 803D DC5F5000>CMP BYTE PTR DS:[505FDC],0
0040EADA |. 74 10 JE SHORT Ekd5.0040EAEC
0040EADC |. B9 A00A5000 MOV ECX,Ekd5.00500AA0
0040EAE1 |. 8079 11 00 CMP BYTE PTR DS:[ECX+11],0
0040EAE5 |. 75 05 JNZ SHORT Ekd5.0040EAEC
0040EAE7 |> E9 84000000 JMP Ekd5.0040EB70
0040EAEC |> 8B4D F8 MOV ECX,DWORD PTR SS:[EBP-8>
0040EAEF |. E8 1B140100 CALL Ekd5.0041FF0F ; 38---宝物效果 策略无视天气
0040EAF4 |. 85C0 TEST EAX,EAX
0040EAF6 |. 75 78 JNZ SHORT Ekd5.0040EB70
0040EAF8 |. B9 083D4B00 MOV ECX,Ekd5.004B3D08
0040EAFD |. E8 D2B60300 CALL Ekd5.0044A1D4 ; 求当前天气
0040EB02 |. 3C 02 CMP AL,2
0040EB04 |. 72 6A JB SHORT Ekd5.0040EB70
0040EB06 |. 837D 10 00 CMP DWORD PTR SS:[EBP+10],0
0040EB0A |. 74 60 JE SHORT Ekd5.0040EB6C
0040EB0C |. B8 80B74800 MOV EAX,Ekd5.0048B780 ; >=2的天气(雨天)到这里,提示信息
0041FF87 |. 6A 3A PUSH 3A ; /Arg1 = 0000003A
0041FF89 |. 8B4D 0C MOV ECX,DWORD PTR SS:[EBP+C>; |
0041FF8C |. E8 497AFEFF CALL Ekd5.004079DA ; \检测四神所需装备
0041FF91 |. 85C0 TEST EAX,EAX
0041FF93 |. 75 4B JNZ SHORT Ekd5.0041FFE0 ; 改成jmp 41FFE0 四神忽略装备
0041FFF1 |. E8 DEA10200 CALL Ekd5.0044A1D4 ; 求天气
0041FFF6 |. 8B55 08 MOV EDX,DWORD PTR SS:[EBP+8>
0041FFF9 |. 80FA 40 CMP DL,40 ; 青龙
0041FFFC |. 75 0B JNZ SHORT Ekd5.00420009
0041FFFE |. 3C 02 CMP AL,2
00420000 |. 73 2F JNB SHORT Ekd5.00420031
00420002 |. B8 B4B74800 MOV EAX,Ekd5.0048B7B4
00420007 |. EB 1E JMP SHORT Ekd5.00420027
00420009 |> 80FA 41 CMP DL,41 ; 朱雀
0042000C |. 75 0B JNZ SHORT Ekd5.00420019
0042000E |. 85C0 TEST EAX,EAX
00420010 |. 74 1F JE SHORT Ekd5.00420031
00420012 |. B8 DCB74800 MOV EAX,Ekd5.0048B7DC
00420017 |. EB 0E JMP SHORT Ekd5.00420027
00420019 |> 80FA 42 CMP DL,42 ; 玄武
|