private void ScavengerItemTarget_Callback(bool loc, Serial serial, Point3D pt, ushort itemid) { Item scavengerItem = World.FindItem(serial); if (scavengerItem != null && scavengerItem.Serial.IsItem) { if (showagentmessageCheckBox.Checked) { Misc.SendMessage("Scavenger item added: " + scavengerItem.ToString(), false); } Scavenger.AddLog("Scavenger item added: " + scavengerItem.ToString()); this.Invoke((MethodInvoker) delegate { Scavenger.AddItemToList(scavengerItem.Name, scavengerItem.ItemID, scavengerItem.Hue); }); } else { if (showagentmessageCheckBox.Checked) { Misc.SendMessage("Invalid target", false); } Scavenger.AddLog("Invalid target"); } }
public override string ToString() { return(m_AssistantItem.ToString()); }