代码,跟STAR原来的设置可能有不同,需要自己按实际设置。
理论上是这样了,不过没时间没资源测试。
0040388C /$ 55 PUSH EBP
0040388D |. 8BEC MOV EBP,ESP
0040388F |. 33C0 XOR EAX,EAX
00403891 |. 8BE5 MOV ESP,EBP
00403893 |. 5D POP EBP
00403894 \. C2 0400 RETN 4
00403A8A /$ 55 PUSH EBP
00403A8B |. 8BEC MOV EBP,ESP
00403A8D |. 33C0 XOR EAX,EAX
00403A8F |. 8BE5 MOV ESP,EBP
00403A91 |. 5D POP EBP
00403A92 \. C2 0400 RETN 4
0042137F /$ 55 PUSH EBP
00421380 |. 8BEC MOV EBP,ESP
00421382 |. 33C0 XOR EAX,EAX
00421384 |. 8BE5 MOV ESP,EBP
00421386 |. 5D POP EBP
00421387 \. C2 0400 RETN 4
0042128B /$ 55 PUSH EBP
0042128C |. 8BEC MOV EBP,ESP
0042128E |. 33C0 XOR EAX,EAX
00421290 |. 8BE5 MOV ESP,EBP
00421292 |. 5D POP EBP
00421293 \. C2 0400 RETN 4
以上清掉获得武器和防具经验,随便留点位置写新代码。
0043BB97 |. E8 FA56FEFF CALL 00421296
0043BBDA |. E8 6D6B0000 CALL 00421296
00421296 /$ 55 PUSH EBP
00421297 |. 8BEC MOV EBP,ESP
00421299 |. 83EC 14 SUB ESP,14
0042129C |. FF75 14 PUSH DWORD PTR SS:[EBP+14] ; /Arg4
0042129F |. FF75 10 PUSH DWORD PTR SS:[EBP+10] ; |Arg3
004212A2 |. FF75 0C PUSH DWORD PTR SS:[EBP+C] ; |Arg2
004212A5 |. FF75 08 PUSH DWORD PTR SS:[EBP+8] ; |Arg1
004212A8 |. E8 9F140200 CALL 0044274C ; \0044274C
004212AD |. FF75 08 PUSH DWORD PTR SS:[EBP+8] ; /Arg1
004212B0 |. E8 2F4FFEFF CALL 004061E4 ; \004061E4
004212B5 |. 894D F8 MOV DWORD PTR SS:[EBP-8],ECX
004212B8 |. C745 FC 000000>MOV DWORD PTR SS:[EBP-4],0
004212BF |. EB 03 JMP SHORT 004212C4
004212C1 |> FF45 FC /INC DWORD PTR SS:[EBP-4]
004212C4 |> 837D FC 02 CMP DWORD PTR SS:[EBP-4],2
004212C8 |. 7D 71 |JGE SHORT 0042133B
004212CA |. 8B55 FC |MOV EDX,DWORD PTR SS:[EBP-4]
004212CD |. 6BD2 03 |IMUL EDX,EDX,3
004212D0 |. 8B4D F8 |MOV ECX,DWORD PTR SS:[EBP-8]
004212D3 |. 0FB64C11 2E |MOVZX ECX,BYTE PTR DS:[ECX+EDX+2E]
004212D8 |. 80F9 FF |CMP CL,0FF
004212DB |.^74 E4 |JE SHORT 004212C1
004212DD |. 894D F4 |MOV DWORD PTR SS:[EBP-C],ECX
004212E0 |. E8 DD240600 |CALL 004837C2
004212E5 |. 894D F0 |MOV DWORD PTR SS:[EBP-10],ECX
004212E8 |. E8 81B4FEFF |CALL 0040C76E
004212ED |. 85C0 |TEST EAX,EAX
004212EF |. 74 10 |JE SHORT 00421301
004212F1 |. FF75 FC |PUSH DWORD PTR SS:[EBP-4] ; /Arg1
004212F4 |. 8B4D F8 |MOV ECX,DWORD PTR SS:[EBP-8] ; |
004212F7 |. E8 9B25FEFF |CALL 00403897 ; \00403897
004212FC |. 8A45 F4 |MOV AL,BYTE PTR SS:[EBP-C]
004212FF |. EB 11 |JMP SHORT 00421312
00421301 |> FF75 F0 |PUSH DWORD PTR SS:[EBP-10] ; /Arg3
00421304 |. FF75 F4 |PUSH DWORD PTR SS:[EBP-C] ; |Arg2
00421307 |. FF75 FC |PUSH DWORD PTR SS:[EBP-4] ; |Arg1
0042130A |. 8B4D F8 |MOV ECX,DWORD PTR SS:[EBP-8] ; |
0042130D |. E8 78000000 |CALL 0042138A ; \0042138A
00421312 |> 8845 EC |MOV BYTE PTR SS:[EBP-14],AL
00421315 |. 8855 ED |MOV BYTE PTR SS:[EBP-13],DL
00421318 |. 884D EE |MOV BYTE PTR SS:[EBP-12],CL
0042131B |. 8B4D F8 |MOV ECX,DWORD PTR SS:[EBP-8]
0042131E |. 8B55 FC |MOV EDX,DWORD PTR SS:[EBP-4]
00421321 |. 6BD2 03 |IMUL EDX,EDX,3
00421324 |. 8A45 EC |MOV AL,BYTE PTR SS:[EBP-14]
00421327 |. 884411 2E |MOV BYTE PTR DS:[ECX+EDX+2E],AL
0042132B |. 8A45 ED |MOV AL,BYTE PTR SS:[EBP-13]
0042132E |. 884411 2F |MOV BYTE PTR DS:[ECX+EDX+2F],AL
00421332 |. 8A45 EE |MOV AL,BYTE PTR SS:[EBP-12]
00421335 |. 884411 30 |MOV BYTE PTR DS:[ECX+EDX+30],AL
00421339 |.^EB 86 \JMP SHORT 004212C1
0042133B |> 8BE5 MOV ESP,EBP
0042133D |. 5D POP EBP
0042133E \. C2 1000 RETN 10
00403897 /$ 55 PUSH EBP
00403898 |. 8BEC MOV EBP,ESP
0040389A |. 51 PUSH ECX
0040389B |. 51 PUSH ECX
0040389C |. E8 2F2D0000 CALL 004065D0
004038A1 |. 33D2 XOR EDX,EDX
004038A3 |. B9 05000000 MOV ECX,5
004038A8 |. F7F1 DIV ECX
004038AA |. 40 INC EAX
004038AB |. 8945 F8 MOV DWORD PTR SS:[EBP-8],EAX
004038AE |. 8B45 08 MOV EAX,DWORD PTR SS:[EBP+8]
004038B1 |. 6BC0 03 IMUL EAX,EAX,3
004038B4 |. 8B4D FC MOV ECX,DWORD PTR SS:[EBP-4]
004038B7 |. 0FB65408 2F MOVZX EDX,BYTE PTR DS:[EAX+ECX+2F]
004038BC |. 3B55 F8 CMP EDX,DWORD PTR SS:[EBP-8]
004038BF |. 73 03 JNB SHORT 004038C4
004038C1 |. 8B55 F8 MOV EDX,DWORD PTR SS:[EBP-8]
004038C4 |> 83FA 09 CMP EDX,9
004038C7 |. 72 09 JB SHORT 004038D2
004038C9 |. BA 09000000 MOV EDX,9
004038CE |. B1 FF MOV CL,0FF
004038D0 |. EB 02 JMP SHORT 004038D4
004038D2 |> 33C9 XOR ECX,ECX
004038D4 |> 8BE5 MOV ESP,EBP
004038D6 |. 5D POP EBP
004038D7 \. C2 0400 RETN 4
宝物类,每5级人物升1级装备,上限9级
0042138A /$ 55 PUSH EBP
0042138B |. 8BEC MOV EBP,ESP
0042138D |. 33D2 XOR EDX,EDX
0042138F |. 52 PUSH EDX
00421390 |. 52 PUSH EDX
00421391 |. 52 PUSH EDX
00421392 |. 51 PUSH ECX
00421393 |. 51 PUSH ECX
00421394 |. E8 3752FEFF CALL 004065D0
00421399 |. B9 03000000 MOV ECX,3
0042139E |. F7F1 DIV ECX
004213A0 |. 33D2 XOR EDX,EDX
004213A2 |. B9 05000000 MOV ECX,5
004213A7 |. F7F1 DIV ECX
004213A9 |. 8945 F8 MOV DWORD PTR SS:[EBP-8],EAX
004213AC |. 42 INC EDX
004213AD |. 8955 FC MOV DWORD PTR SS:[EBP-4],EDX
004213B0 |. 83F8 02 CMP EAX,2
004213B3 |. 76 06 JBE SHORT 004213BB
004213B5 |. C645 F8 02 MOV BYTE PTR SS:[EBP-8],2
004213B9 |. EB 05 JMP SHORT 004213C0
004213BB |> 83FA 05 CMP EDX,5
004213BE |. 76 04 JBE SHORT 004213C4
004213C0 |> C645 FC 05 MOV BYTE PTR SS:[EBP-4],5
004213C4 |> 8B55 08 MOV EDX,DWORD PTR SS:[EBP+8]
004213C7 |. 6BD2 03 IMUL EDX,EDX,3
004213CA |. 8B4D F0 MOV ECX,DWORD PTR SS:[EBP-10]
004213CD |. 0FB64411 2F MOVZX EAX,BYTE PTR DS:[ECX+EDX+2F]
004213D2 |. 8945 EC MOV DWORD PTR SS:[EBP-14],EAX
004213D5 |. 8B4D 10 MOV ECX,DWORD PTR SS:[EBP+10]
004213D8 |. 0FB651 11 MOVZX EDX,BYTE PTR DS:[ECX+11]
004213DC |. D1EA SHR EDX,1
004213DE |. 0FB682 2724480>MOVZX EAX,BYTE PTR DS:[EDX+482427]
004213E5 |. EB 03 JMP SHORT 004213EA
004213E7 |> FF45 F4 /INC DWORD PTR SS:[EBP-C]
004213EA |> 837D F4 03 CMP DWORD PTR SS:[EBP-C],3
004213EE |. 7D 2C |JGE SHORT 0042141C
004213F0 |. 8B55 F4 |MOV EDX,DWORD PTR SS:[EBP-C]
004213F3 |. 03D0 |ADD EDX,EAX
004213F5 |. 3B55 0C |CMP EDX,DWORD PTR SS:[EBP+C]
004213F8 |.^75 ED \JNZ SHORT 004213E7
004213FA |. 8B45 F4 MOV EAX,DWORD PTR SS:[EBP-C]
004213FD |. 6BC0 05 IMUL EAX,EAX,5
00421400 |. 0145 EC ADD DWORD PTR SS:[EBP-14],EAX
00421403 |. 8B45 F8 MOV EAX,DWORD PTR SS:[EBP-8]
00421406 |. 6BC0 05 IMUL EAX,EAX,5
00421409 |. 0345 FC ADD EAX,DWORD PTR SS:[EBP-4]
0042140C |. 3B45 EC CMP EAX,DWORD PTR SS:[EBP-14]
0042140F |. 72 0B JB SHORT 0042141C
00421411 |. 8B45 0C MOV EAX,DWORD PTR SS:[EBP+C]
00421414 |. 0345 F8 ADD EAX,DWORD PTR SS:[EBP-8]
00421417 |. 8B55 FC MOV EDX,DWORD PTR SS:[EBP-4]
0042141A |. EB 11 JMP SHORT 0042142D
0042141C |> 8B45 0C MOV EAX,DWORD PTR SS:[EBP+C]
0042141F |. 8B55 08 MOV EDX,DWORD PTR SS:[EBP+8]
00421422 |. 6BD2 03 IMUL EDX,EDX,3
00421425 |. 8B4D F0 MOV ECX,DWORD PTR SS:[EBP-10]
00421428 |. 0FB65411 2F MOVZX EDX,BYTE PTR DS:[ECX+EDX+2F]
0042142D |> 33C9 XOR ECX,ECX
0042142F |. 83FA 05 CMP EDX,5
00421432 |. 72 02 JB SHORT 00421436
00421434 |. B1 FF MOV CL,0FF
00421436 |> 8BE5 MOV ESP,EBP
00421438 |. 5D POP EBP
00421439 \. C2 0C00 RETN 0C
普通装备,最高5级共三档,每3级人物升1级装备。
|