Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Message when pk or pvp

Newbie Spellweaver
Joined
Jun 19, 2021
Messages
78
Reaction score
3
Hi all,

Anyone pls help me: how to make a message when players pk or pvp?

Or show me a few way to find..

Ex: "System: A was killed by B" ..

Thanks!
 
Junior Spellweaver
Joined
Apr 16, 2016
Messages
117
Reaction score
21
Hi @supperfish

You need to coding and create the schedule to read /logs/world2.formatlog, this file store message PK. This line have format as below:

2021-11-12 12:43:02 PW155 gamed: notice : formatlog:die:roleid=1985:type=2:attacker=1632

---
attacker: roleId of attacker
roleid: roleId of dead

To find the name by roleId you can use this command:

cd gamedbd
./gamedbd gamesys.conf listrole

Or you can run command "./gamedbd" to see all command provided.

----
Warrior Perfect World
 
Newbie Spellweaver
Joined
Jun 19, 2021
Messages
78
Reaction score
3
ok thank you,

i expected can do with aipolicy, but it's so complex to understand.

i know the way read logs file to do but its so bad way or be last way ^^
 
Junior Spellweaver
Joined
Apr 16, 2016
Messages
117
Reaction score
21
I don't know how to solve this case with aipolicy.data
But when you the read log file you can customize your message however you want
 
Back
Top