示例#1
0
 private void EquipItem(WoWItem item, EquipSlot slot)
 {
     int bi, bs;
     item.GetSlotIndexes(out bi, out bs);
     WoWScript.ExecuteNoResults(string.Format("ClearCursor(); PickupContainerItem({0}, {1}); EquipCursorItem({2})", bi, bs, (int)slot));
 }
示例#2
0
 public void ApplyToItem(WoWItem item)
 {
     ApplyToItem(item.Entry);
 }
示例#3
0
 public bool CanUseItem(WoWItem item, out GameError error)
 {
     return CanUseItem(WoWItem.GetItemRecordPointerFromId(item.Entry), out error);
 }
 public bool CanUseItem(WoWItem item, out GameError error)
 {
     return(CanUseItem(WoWItem.GetItemRecordPointerFromId(item.Entry), out error));
 }