Exemplo n.º 1
0
        public void OnTick()
        {
            if (!OwnedItems.Contains(thisItem))
            {
                return;
            }
            Chat.Print("2");
            if (!Initialized)
            {
                Chat.Print("3");
                InitializeItem();
                Initialized = true;
            }
            Chat.Print("4");
            thisTarget = Misc.Extensions.GetBestItemTarget(thisItem);
            var menuValue = MyMenu.OffensiveMenu.GetCheckBoxValue("check" + (int)thisItem.Id);

            Chat.Print("5");
            if (!thisItem.IsReady() || !menuValue || thisTarget == null)
            {
                return;
            }
            Chat.Print("6");
            Execute();
        }
Exemplo n.º 2
0
 public static void MoveItemToReserved(GameItem item)
 {
     if (!OwnedItems.Contains(item))
     {
         return;
     }
     OwnedItems.Remove(item);
     ReservedItems.Add(item);
 }