• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook pagefor updates, or we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.)

PK Disable in specific map

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jan 26, 2012
Messages
75
Reaction score
73
This article was created with the help of Google translation.
If this post useful, please move to the tutorial.


You can find the area under the debugger and I opened the ZS.
By leveraging well here, you can make it impossible to PK the specified map.

Address | Command
00521FE1 | MOV EDX,DWORD PTR SS:[LOCAL.1]
00521FE4 | XOR EAX,EAX
00521FE6 | MOV AX,WORD PTR DS:[EDX+54]
00521FEA | CMP EAX,14 : Comparing the number of the current map - 0x14 = 20 = Nevia
00521FED | JNE SHORT 00522016 : Jump, if map is different from the number 20. PvP is possible.
00521FEF | MOV ECX,DWORD PTR SS:[LOCAL.1]
00521FF2 | MOV EDX,DWORD PTR DS:[ECX+98]
00521FF8 | AND EDX,000000FF
00521FFE | MOV EAX,DWORD PTR SS:[LOCAL.2]
00522001 | MOV ECX,DWORD PTR DS:[EAX+98]
00522007 | AND ECX,000000FF
0052200D | CMP EDX,ECX : Comparison of the village of Player1 and Player2
0052200F | JNE SHORT 00522016 : Jump, PvP is possible If the different village of Player1 and Player2.
00522011 |JMP 005220A6 : Jump, PvP is impossible If the same village of Player1 and Player2.
 
Last edited:
Joined
Jan 14, 2007
Messages
509
Reaction score
85
Great work man. I appreciate your contribution to the A3 Section.
Its good that you are posting a tutorial instead of spoonfeeding. This will help members to learn instead of just copy pasting stuffs.
 
Status
Not open for further replies.
Back
Top