Example #1
0
 private void blacklistTargetToolStripMenuItem_Click(object sender, EventArgs e) //Commands -> Blacklist target
 {
     try
     {
         Util.IgnoreNPC(Globals.gamedata.my_char.TargetID, true);
         Add_Text("NPC with objID: " + Globals.gamedata.my_char.TargetID.ToString() + " added to blacklist", Globals.Green, TextType.BOT);
     }
     catch
     {
         Add_Text("Failed to blacklist current target", Globals.Green, TextType.BOT);
     }
 }
Example #2
0
 private void addToBlackListNPCToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         string name  = listView_npc_data.Items[listView_npc_data.SelectedIndices[0]].SubItems[0].Text;
         uint   objID = Convert.ToUInt32(listView_npc_data.Items[listView_npc_data.SelectedIndices[0]].SubItems[2].Text);
         Util.IgnoreNPC(objID, true);
         Add_Text("NPC with name: " + name + " and objID: " + objID.ToString() + " added to blacklist", Globals.Green, TextType.BOT);
     }
     catch
     {
         //Do nothing
     }
 }