public static void ChangePKMode(
public static void ChangePKMode(MsgAction action, GameState client) { if (client.Player.PKMode == Game.Enums.PKMode.Kongfu) { if ((Game.Enums.PKMode)(byte)action.dwParam != Game.Enums.PKMode.Kongfu) { client.Send("You`ll quit the Jiang Hu in 10 minutes."); } } if (client.InTeamQualifier()) return; client.Player.AttackPacket = null; client.Player.PKMode = (Game.Enums.PKMode)(byte)action.dwParam; action.buffer.wParam1 = action.buffer.dwParam; // action.dwParam = 3;هنا لو فعلت الكود ده المفروض الاكونت منين ما يفتح يكون واخد وضع الرقم الى انت محدده client.Send(action); if ((client.Player.PKMode == Game.Enums.PKMode.Kongfu) && (client.Player.MyKongFu != null)) { client.Player.MyKongFu.OnJiangMode = true; client.Player.MyKongFu.SendStatusMode(client); } if (client.Player.PKMode == Enums.PKMode.PK) { client.Send("Free PK mode: you can attack monsters and all Players."); } else if (client.Player.PKMode == Enums.PKMode.Peace) { client.Send("Peace mode: You can only attack monsters."); } else if (client.Player.PKMode == Enums.PKMode.Team) { client.Send("Team mode: slay monsters, and all other players (including cross-server players) not in your current team or guild. "); } else if (client.Player.PKMode == Enums.PKMode.Capture) { client.Send("Capture mode: Slay monsters, black/blue-name criminals, and cross-server players."); } else if (client.Player.PKMode == Enums.PKMode.Revenge) { client.Send("revenge mode: Slay your listed enemies, monsters, and cross-server players."); } else if (client.Player.PKMode == Enums.PKMode.Union) { client.Send("The `Plander` mode only allow you to other players in enemy Union."); } else if (client.Player.PKMode == Enums.PKMode.Guild) { client.Send("Guild mode: Slay monsters, and players in your enemy guilds, and cross-server players."); } else if (client.Player.PKMode == Enums.PKMode.Kongfu) { client.Send("Jiang Hu mode: Slay Jiang Hu fighters, black/blue-name criminals, and cross-server players."); } else if (client.Player.PKMode == Enums.PKMode.CS) { client.Send("CS (Cross-Server) mode: Attack cross-server players. No Pk punishment."); } else if (client.Player.PKMode == Enums.PKMode.Invade) { client.Send("Invade mode: Only attack players of the target (current) server No Pk punishment."); } }