コード例 #1
0
ファイル: Form1.cs プロジェクト: Apletre/WoWBot
 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;
         }
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Apletre/WoWBot
 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);
     }
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: Apletre/WoWBot
 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();
 }