Exemplo n.º 1
0
        private void timer_Tick(object sender, EventArgs e)
        {
            try
            {
                ACDActor acd = finder.FindBestItem();
                if (acd != null)
                {
                    if (acd.ACDType == ACDType.Item)
                    {
                        Item item = new Item(acd);
                        switch (item.Quality)
                        {
                        case ItemQuality.CraftingPlan: Sounds.PlaySound(Sound.Crafting); break;

                        case ItemQuality.Rare: Sounds.PlaySound(Sound.Rare); break;

                        case ItemQuality.Magic: Sounds.PlaySound(Sound.Magic); break;

                        case ItemQuality.Legendary: Sounds.PlaySound(Sound.Legendary); break;
                        }
                    }
                    else if (acd.IsGoblin())
                    {
                        Sounds.PlaySound(Sound.Goblin);
                    }
                }
            }
            catch (Exception ex)
            {
                SetStatus(false);
                MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
            }
        }
Exemplo n.º 2
0
 private void timer_Tick(object sender, EventArgs e)
 {
     try
     {
         ACDActor acd = finder.FindBestItem();
         if (acd != null)
         {
             Settings.PlaySoundForActor(acd);
         }
     }
     catch (Exception ex)
     {
         SetStatus(false);
         MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
     }
 }