This is what i did to make it not able to pk in a map until i command or the timer allows it, but it didnt work:
Other.CS
Code:
public static bool NoPK(ushort Map) { bool Rt = false; foreach (ushort map in DataBase.NoPKMaps) { if (map == Map || map == World.PKCity && World.StartPK == false) { Rt = true; break; } } return Rt; } public static bool CanPK(ushort Map) { bool Rt = false; foreach (uint map in DataBase.PKMaps) { if (map == Map || map == World.PKCity && World.StartPK == true) { Rt = true; break; } } return Rt; }
Code:
public static ushort[] NoPKMaps = new ushort[] { 1002, 1039, 1036, 1010, 500, 1004, 700, World.PKCity}; public static ushort[] PKMaps = new ushort[] { 1038, 1005, 6000, 1080, 1090, 1018, World.PKCity};
REMEMBER: THIS IS A LOTF SOURCE!!!! LOTF CODING ONLY!
~Rapid