Fix pvp on/off
#1
Anyone know? in hex

#2

its not so easy. you need to add a new section in the exe and add alot of code

 

PVP mode patch v3 (you can set a subserver to be non-pvp by adding NON_PK=TRUE inside the gameserver config file)

 

00459826 jz loc_7EC000

 

and in our new section located at offset 35100 (virtual address 7EC000)

 

007EC000 mov eax, [ebp+arg_0]
007EC003 cmp dword ptr [eax+34h], 0
007EC007 jle loc_45991F
007EC00D mov eax, [ebp+arg_0]
007EC010 cmp dword ptr [eax+0AE4h], 0
007EC017 jnz loc_45991F
007EC01D mov eax, [ebp+arg_0]
007EC020 mov edx, [eax+5ACh]
007EC026 cmp dword ptr [edx], 8
007EC029 jz loc_45991F
007EC02F mov eax, [ebp+arg_0]
007EC032 cmp dword ptr [eax+20h], 0Fh
007EC036 jle loc_45991F
007EC03C push 10h
007EC03E mov ecx, [ebp+arg_0]
007EC041 call sub_4077A0
007EC046 movzx eax, al
007EC049 test eax, eax
007EC04B jnz loc_45991F
007EC051 push 20h
007EC053 mov ecx, [ebp+arg_0]
007EC056 call sub_4077A0
007EC05B movzx eax, al
007EC05E test eax, eax
007EC060 jnz loc_45991F
007EC066 push 40h
007EC068 mov ecx, [ebp+arg_0]
007EC06B call sub_4077A0
007EC070 movzx eax, al
007EC073 test eax, eax
007EC075 jnz loc_45991F
007EC07B push 0
007EC07D mov ecx, [ebp+arg_0]
007EC080 call sub_4245D0
007EC085 movzx eax, al
007EC088 test eax, eax
007EC08A jnz loc_45991F
007EC090 mov ecx, [ebp+arg_0]
007EC093 call sub_425650
007EC098 movzx eax, al
007EC09B cmp eax, 46h
007EC09E jz loc_45991F
007EC0A4 movzx eax, byte_7E02E0
007EC0AB cmp eax, 1
007EC0AE jz loc_45991F
007EC0B4 push 8
007EC0B6 mov ecx, [ebp+arg_0]
007EC0B9 call sub_4077A0
007EC0BE movzx eax, al
007EC0C1 test eax, eax
007EC0C3 jz short loc_7EC0DE
007EC0C5 push 10h
007EC0C7 mov ecx, [ebp+arg_0]
007EC0CA call sub_411D80
007EC0CF mov eax, [ebp+arg_0]
007EC0D2 mov dword ptr [eax+0D84h], 64h
007EC0DC jmp short loc_7EC0E8
007EC0DE push 8
007EC0E0 mov ecx, [ebp+arg_0]
007EC0E3 call sub_459A00
007EC0E8 jmp loc_459930

#3

2

 

hex code?

#4
I am having trouble creating a new section

#5
Yea in Hex would be nice ;D

#6

I am having trouble creating a new section
You can use PEditor, (portable executable editor).

#7

Do we change: 00459826 |. 0F84 F3000000 JE GameServ.0045991F to

 

00459826 jz loc_7EC000 or do we add this? Also above or below?

 

I think if people are going to explain how things are done at least give a bit more explanation..... like add... or show a before and after maybe? You all criticise people for not know what the hell is going on but again you dont assist in giving a hand to people with whats going on. I dont want the "If you dont know this then dont run a server bla bla bullcrap" because that is purely a greater example of why YOU shouldnt be running a server.

#8
Whenever I attempt to add or change the above I get "Unknown Identifer"....

#9
No one can answer?

#10

aSH' date=' post: 11531"']No one can answer?
 

Use at this address: 00459826

jz 7EC000

I dont know if you have a segment that starts at address 7EC000, goto 7EC000 and see if exists if not then use PEditor to add a new segment.



Forum Jump:


Users browsing this thread: 1 Guest(s)