Beispiel #1
0
 /// <summary>
 /// Attempts to use an item on a world location.
 /// If possible, use UseItemOnTile instead, as it provides better performance.
 /// </summary>
 /// <param name="itemLocation">The item's location.</param>
 /// <param name="loc">The world location to use the item on.</param>
 public void UseItemOnLocation(Objects.ItemLocation itemLocation, Objects.Location loc)
 {
     if (itemLocation == null || !loc.IsValid()) return;
     this.UseItemOnTile(itemLocation, this.Client.Map.GetTile(loc, null));
 }
Beispiel #2
0
 /// <summary>
 /// Attempts to use an item on a world location.
 /// </summary>
 /// <param name="itemid">The item's ID.</param>
 /// <param name="loc">The world location to use the item on.</param>
 public void HotkeyUseItemOnLocation(ushort itemid, Objects.Location loc)
 {
     if (itemid == 0 || !loc.IsValid()) return;
 }