int GetPartyleader(int id) { try { for (int i = 0; i < Systems.Party.Count; i++) { if (Systems.Party[i].ptid == id) return Systems.Party[i].LeaderID; } } catch (Exception ex) { Systems.Debugger.Write(ex); } return 0; }