![]() |
|
|
#1 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
[原创] 四章服务端修改教学
by ET2004 (QQ 52923913, EMail: [email protected]) * 转贴请保持完整,谢谢合作 * 本帖将不定期更新 * 最后更新于 2006/03/11 9:20 2006/03/10 Chap 1: 支持 /位置、小地图、屏蔽 unknown protocol x 提示 0050F941 . 8A4433 10 mov al,byte ptr ds:[ebx+esi+10] ; opcode 0050F945 . 3C AA cmp al,0AA 0050F947 . 72 1D jb short L2Server.0050F966 ; known opcode 0050F949 .- E9 728B1A00 jmp L2Server.006B84C0 ; new packet handler 0050F94E 90 nop ; | 0050F94F 90 nop ; | 0050F950 90 nop ; | 0050F951 90 nop ; | new packet handler 006B84C0 3C AA cmp al,0AA ; BypassUserCmd 006B84C2 74 0E je short L2Server.006B84D2 006B84C4 33C0 xor eax,eax 006B84C6 3C CD cmp al,0CD ; RequestViewMinimap 006B84C8 74 66 je short L2Server.006B8530 006B84CA 90 nop 006B84CB 90 nop 006B84CC - E9 AE75E5FF jmp L2Server.0050FA7F ; Ignore unknown protocol 006B84D1 90 nop BypassUserCmd 006B84D2 8B8F 94130000 mov ecx,dword ptr ds:[edi+1394] 006B84D8 85C9 test ecx,ecx 006B84DA - 0F84 8675E5FF je L2Server.0050FA66 006B84E0 8B99 540F0000 mov ebx,dword ptr ds:[ecx+F54] 006B84E6 DD43 18 fld qword ptr ds:[ebx+18] 006B84E9 E8 BE3EEDFF call L2Server.0058C3AC 006B84EE 50 push eax 006B84EF 6A 01 push 1 006B84F1 DD43 10 fld qword ptr ds:[ebx+10] 006B84F4 E8 B33EEDFF call L2Server.0058C3AC 006B84F9 50 push eax 006B84FA 6A 01 push 1 006B84FC DD43 08 fld qword ptr ds:[ebx+8] 006B84FF E8 A83EEDFF call L2Server.0058C3AC 006B8504 50 push eax 006B8505 6A 01 push 1 006B8507 6A 03 push 3 006B8509 68 8F030000 push 38F 006B850E 6A 7A push 7A 006B8510 68 25856B00 push L2Server.006B8525 ; ASCII "cddfff" 006B8515 57 push edi 006B8516 E8 5577E2FF call L2Server.004DFC70 006B851B 83C4 2C add esp,2C 006B851E - E9 5C75E5FF jmp L2Server.0050FA7F 006B8523 90 nop 006B8524 90 nop RequestViewMinimap 006B8530 68 81060000 push 681 006B8535 68 B6000000 push 0B6 006B853A 68 DCD55B00 push L2Server.005BD5DC ; ASCII "cd" 006B853F 57 push edi 006B8540 E8 2B77E2FF call L2Server.004DFC70 006B8545 83C4 18 add esp,18 006B8548 - E9 3275E5FF jmp L2Server.0050FA7F 006B854D 90 nop |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
2006/03/10 Chap 2-1: 四章学习技能列表修复
jump to code patch 004FC700 - E9 4ABC1B00 jmp L2Server.006B834F 004FC705 68 3F836B00 push L2Server.006B833F ; ASCII "cddb" fix esp 004FC710 |. 83C4 1C add esp,1C packet format 006B833F 63 64 64 62 00 ; ASCII "cddb" push parameters and jump back 006B834F 6A 00 push 0 006B8351 68 A3000000 push 0A3 006B8356 - E9 AA43E4FF jmp L2Server.004FC705 2006/03/10 Chap 2-2 [Placeholder] |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
2006/03/11 Chap 3 添加传送目的地确认
Part 1 004A9547 |. 51 |push ecx ; price 004A9548 |. 8B4D EC |mov ecx,dword ptr ss:[ebp-14] 004A954B |. 50 |push eax ; place 004A954C - E9 9CF32000 jmp L2Server.006B88ED 004A9551 90 nop 004A9552 90 nop 004A9553 |. 52 |push edx ; |s 004A9554 |. FF15 B4525B00 |call dword ptr ds:[<&USER32.wsprintfW>] ; \wsprintfW 004A955A 83C4 1C add esp,1C 006B8850 3C 00 61 00 20 00 61 00 63 00 74 00 69 00 6F 00 <.a. .a.c.t.i.o. 006B8860 6E 00 3D 00 22 00 62 00 79 00 70 00 61 00 73 00 n.=.".b.y.p.a.s. 006B8870 73 00 20 00 2D 00 68 00 20 00 74 00 65 00 6C 00 s. .-.h. .t.e.l. 006B8880 65 00 70 00 6F 00 72 00 74 00 5F 00 25 00 64 00 e.p.o.r.t._.%.d. 006B8890 5F 00 25 00 64 00 22 00 20 00 6D 00 73 00 67 00 _.%.d.". .m.s.g. 006B88A0 3D 00 22 00 38 00 31 00 31 00 3B 00 25 00 73 00 =.".8.1.1.;.%.s. 006B88B0 22 00 3E 00 25 00 73 00 20 00 2D 00 20 00 25 00 ".>.%.s. .-. .%. 006B88C0 64 00 20 00 D1 91 01 5E 3C 00 2F 00 61 00 3E 00 d. .金币<./.a.>. 006B88D0 3C 00 62 00 72 00 31 00 3E 00 00 00 00 00 00 00 <.b.r.1.>....... 006B88E0 00 00 00 00 00 00 00 00 00 00 00 00 00 ............. 006B88EB 90 nop 006B88EC 90 nop 006B88ED 50 push eax ; place 006B88EE 56 push esi ; arg1 006B88EF 51 push ecx ; arg2 006B88F0 90 nop 006B88F1 90 nop 006B88F2 90 nop 006B88F3 90 nop 006B88F4 90 nop 006B88F5 90 nop 006B88F6 90 nop 006B88F7 90 nop 006B88F8 68 50886B00 push L2Server.006B8850 ; UNICODE "<a action="bypass -h teleport_%d_%d" msg="811;%s">%s - %d 金币" 006B88FD - E9 510CDFFF jmp L2Server.004A9553 006B8902 90 nop Part 2 004A955F |> \8B4D EC |mov ecx,dword ptr ss:[ebp-14] 004A9562 |. 50 |push eax ; place 004A9563 - E9 2AF42000 jmp L2Server.006B8992 004A9568 90 nop 004A9569 90 nop 004A956A |. 52 |push edx ; |s 004A956B |. FF15 B4525B00 |call dword ptr ds:[<&USER32.wsprintfW>] ; \wsprintfW 004A9571 83C4 18 add esp,18 006B890D 3C 00 61 00 20 00 61 00 63 00 74 00 69 00 6F 00 <.a. .a.c.t.i.o. 006B891D 6E 00 3D 00 22 00 62 00 79 00 70 00 61 00 73 00 n.=.".b.y.p.a.s. 006B892D 73 00 20 00 2D 00 68 00 20 00 74 00 65 00 6C 00 s. .-.h. .t.e.l. 006B893D 65 00 70 00 6F 00 72 00 74 00 5F 00 25 00 64 00 e.p.o.r.t._.%.d. 006B894D 5F 00 25 00 64 00 22 00 20 00 6D 00 73 00 67 00 _.%.d.". .m.s.g. 006B895D 3D 00 22 00 38 00 31 00 31 00 3B 00 25 00 73 00 =.".8.1.1.;.%.s. 006B896D 22 00 3E 00 25 00 73 00 3C 00 62 00 72 00 31 00 ".>.%.s.<.b.r.1. 006B897D 3E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >............... 006B898D 00 00 00 ... 006B8990 90 nop 006B8991 90 nop 006B8992 50 push eax ; place 006B8993 56 push esi ; arg1 006B8994 51 push ecx ; arg2 006B8995 90 nop 006B8996 90 nop 006B8997 90 nop 006B8998 90 nop 006B8999 90 nop 006B899A 90 nop 006B899B 90 nop 006B899C 90 nop 006B899D 68 0D896B00 push L2Server.006B890D ; UNICODE "<a action="bypass -h teleport_%d_%d" msg="811;%s">%s<br1>" 006B89A2 - E9 C30BDFFF jmp L2Server.004A956A 006B89A7 90 nop |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
int nearestTown;
switch(nearestTown){ case 0: …; case 1: …; … case 15: …; default : …; } 琪琪学习中…… 未发现四章内容。 UseItem分析 00507520 UseItemPacket mov [ebp-14],objectid objectid ! = 0 ~在冻结状态下,无法行动.请稍等. ~无法使用任务道具. ~交易时无法拾取或使用道具. ~请选择要强化的物品. call dword ptr ds:[eax+234] ↓ 00443630 CCreature::UseItem() 1 action_skill_reduce //消耗类技能 2 action_equip //装备道具 3 action_soulshot //灵魂弹 4 action_spiritshot //魔灵弹 5 action_skill_maintain //获得类技能 6 action_map_open //打开地图 ↑ 004A2F40 NpcUseItem NPCSocket 0x22 cddd ServerID,SMIndex,nClassID call dword ptr ds:[edx+234] |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
https://postpacific.loc-online.com/f...pic.php?t=3859
difference? btw 006B84C4 33C0 xor eax,eax ; crash L2Server |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
Digital good wok... i cant speak chinese, you ll help us.
Spasibo - i know you know this word
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
Very Nice Share, someone can traduce this ?
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 242
|
What this? for which?
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Mar 2006
Posts: 38
|
Chap 1: The support / position, the small map, shields unknown protocol x prompts
Chap 2-1: Four chapter of studies skills tabulate rehabilitate Chap 3: increase transmit the destination confirm // transleted whith google ![]() and... last chapter hasn't describe... I think, that chapter just idea howto relase autoss. 2 Aspire /rus/ ты писал "btw 006B84C4 33C0 xor eax,eax ; crash L2Server" - у мну не крашит. З.Ы. Ты, кстати, не разобрался, по поводу последнего сообщения дигитала в етом топике? ;-) /rus/ 2 Digital : tnx 4 usefull info. |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
to LIRIK не видел смысла, я перестроил эту секцию раньше чем это запостили и немного по иному варианту, поэтому видимо и падает, но честно говоря меня это сильно не расстраивает.
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Jan 2006
Posts: 158
|
Maybe someone can translate from chinese to english?
Or French... ![]() I really hope that someone do it... PS. Sorry for my english
|
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 54
|
yeah, i don't understand nothing hehehe, now i need to learn rus, chinesse, english, i can't speak english well and people as Aspire speak rus all the time, your english is bad ? mine is worse but this is a English community and i try to speak English.
Quote:
|
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Jan 2006
Posts: 158
|
Mark20
Lirik said, that he has reconstructed this section earlier than this topic started and He did it a little by other variant. He think. that this is the reason for crashing, but to tell the truth it strongly does not upset him. My english is awful... |
|
|
|
|
#15 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Quote:
to Mark20 Lirik ask me on russian i answer him on russian, what a questions? second: if we use 006B84C4 33C0 xor eax,eax, than "new packet handler" will be blocked. If NetworkHandler(AA) recieved then jump to code data, if NetworkHandler(CD) recieved then jump to code data, if NetworkHandler(D0) recieved then jump to L2Server.0050FA7F, if next NetworkHandler recived then... this is a normal state of switch with cases. |
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Mar 2006
Posts: 38
|
yes. Aspire u right.
![]() so... about Chap 3 (increase transmit the destination confirm) I'm try to test code, which posted Digital, nothing happened , nothing changed.... |
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 403
|
Quote:
|
|
|
|
|
|