public void Close() { if (name != "Zorn") { if (player_client != null) { player_client.Close(); player_client = null; } if (pet_client != null) { pet_client.Close(); pet_client = null; } } }
public void Do() { if (name != "Zorn") { if (pet) { if (pet_client == null) pet_client = new PartyDataRetrivalClient(); wmr.GetPet(obj); pet_client.Send(obj); } else { if (pet_client != null) { pet_client.Close(); pet_client = null; } } wmr.GetPlayer(obj); p_obj = obj; player_client.Send(obj); } }
public GetPlayerStat(WoWMemReader wmr) { this.wmr = wmr; this.name = wmr.LocalPlayerName; this.mem_adress = wmr.GetPlayerBaseAdress().ToString("X"); this.buff_table1_adress = wmr.GetPlayerBaseBuffAdressTable1().ToString("X"); this.buff_table2_adress = wmr.GetPlayerBaseBuffAdressTable2().ToString("X"); this.pet = false; if (name != "Zorn") player_client = new PartyDataRetrivalClient(); }