Programmer
- Joined
- Jun 10, 2009
- Messages
- 659
- Reaction score
- 141
how you edit this ? wen i try to replace hex value of "%s killed %s" wid "%s Trolled %s" or "[PK-Notice]" wid "[pvp-system]" zone server dnt e1 start ( initfail() error i get )
After using that new ZoneServer, We are getting EventItemConnector Error.
Tried Every possible way. Still trying to do it. But Can you give any idea what all DB Connection related changes you did ?
View attachment 125023
Well,
The ZoneServer was running perfectly. And the Shout Also Worked.
I would Like to ask you a query.
In our game, We want to display 3 results
Level, Rebirth As well as RB reset (New concept in our server).
I tried to do it in following way :
I created d_restart column.
I copied the contents of both columns Rebirth and Reset into that column.
Now the result in my d_restart looks something like this :
(1,15). Where 1 = Reset , 15 = RB
But what happening is While the character gets PKed in game,
The shout is coming something like following :
[PvP-Msg] : Magix (RB 3123124124, 165) Killed xxxxx (RB 3123124124, 165)
I assume this '3123124124' is coming because of a kind of overflow.
So what can I use instead of %u ?
Kindly suggest.
Data Type for d_restart I used is varchar(50)
This is the result after I changed The Hex Bytes as (Rb%d, %u).
View attachment 125033
When I did %s instead of that value (Thinking that it will act as string), Zoneserver crashed !
any1 knw how to add town in pvp shout ?
eg: [PvP-Msg] : Magix (T, 165) Killed xxxxx (Q, 165)
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.
You notice the line marked in blue?
It does checks when a player tries to PK. I m not sure it will store it when he successfully kill the other player. What I mean to say is, It can be done without checking DB. This way or another.