public void testClass() { for (int i = 0; i < 100; i++) { Class.Point point = new Class.Point(10, 10); point.Move(10, 10); } }
public static void UseItem(int entry, Class.Point point) { try { string itemName = GetItemNameById(entry); ClickOnTerrain.Item(entry, point); Logging.WriteFight("Use item " + itemName + " (SpellName: " + GetItemSpell(itemName) + ")"); } catch (Exception exception) { Logging.WriteError("UseItem(int entry, Class.Point point): " + exception); } }
public static void UseItem(string name, Class.Point point) { UseItem(Others.ToInt32(name) > 0 ? Others.ToInt32(name) : GetItemIdByName(name), point); }