Disabled PK

11/27/2015 14:02 hadescik#1
Hi guys, i want to disable PK in my server. How can i disable PK with opcodes ?
11/27/2015 15:51 ​Exo#2
You can't. At most you can do it after 1 attack.
11/27/2015 16:07 hadescik#3
Quote:
Originally Posted by ​Exo View Post
You can't. At most you can do it after 1 attack.
How can i do this ? which opcode ?
12/13/2015 12:26 BadSorrow#4
You can i think in config.cfg or common in folder bin...

Or check in SMC or in DB :)
12/17/2015 21:39 sarkoplata#5
Quote:
Originally Posted by BadSorrow View Post
You can i think in config.cfg or common in folder bin...

Or check in SMC or in DB :)
pls stfu...

0x30BF is the character status update packet
you can use it like this

Code:
 if (p.Opcode == 0x30BF)
                                {
                                    try
                                    {
                                        uint num = p.ReadUInt32();
                                        if (num == this.Unique_ID)
                                        {
                                            int num2 = p.ReadInt8();
                                            int num5 = p.ReadInt8();
                                            if ((num5 == 1 || num5 == 2) && num2 == 7)
                                            {
                                                sendNoticeToUser("PKing is not allowed. You will be disconnected from the server.");
                                                m_LocalSecurity.Send(p);
                                                instaDcUser();
                                                
                                                continue;
                                            }
                                        }
                                    }
                                    catch (Exception e)
                                    {
                                        DisconnectModuleSocket();
                                    }
                                }