What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Is there anyway to keep Legendary's unid??

Or... you could just i dunno answer the question.
every thread ive read is just asking the same question i am
 
WHY, is the question to me...
Sort out your loot rules and you don't need to have a crowded stash
 
Cant find the plugin I have anymore but this is the code (save as UnidLegendaries.cs in UnidLegendaries folder in Plugins)

Code:
using System;
using System.Windows;

using Zeta.Common;
using Zeta.CommonBot;
using Zeta.Common.Plugins;
using Zeta.Internals.Actors;

/*
 * Modified from the original plugin by unknown
 * [Plugin] Keep Legendarys  unidentified
 * 
 */
namespace UnidLegendaries
{
    internal class UnidLegendaries : IPlugin
    {
        public string Author { get { return "Shivern"; } }
        public Version Version { get { return new Version(0, 1); } }
        public string Name { get { return "UnidLegendaries"; } }
        public string Description { get { return "Keep legendaries unidentified"; } }
        public Window DisplayWindow { get { return null; } }

        public void OnPulse() { }
        public void OnInitialize() { }

        public void OnShutdown()
        {
            UnsubscribeEvents();
        }
        public void OnEnabled()
        {
            SubscribeEvents();
        }
        public void OnDisabled()
        {
            UnsubscribeEvents();
        }

        public void Log(string message, LogLevel level = LogLevel.Normal)
        {
            Logging.Write(level, string.Format("[{0}] {1}", Name, message));
        }

        private void SubscribeEvents()
        {
            try
            {
                GameEvents.OnItemIdentificationRequest += OnItemIdentificationRequest;
            }
            catch (Exception ex)
            {
                Log(ex.ToString());
            }
        }

        private void UnsubscribeEvents()
        {
            try
            {
                GameEvents.OnItemIdentificationRequest -= OnItemIdentificationRequest;
            }
            catch (Exception ex)
            {
                Log(ex.ToString());
            }
        }

        void OnItemIdentificationRequest(object sender, ItemIdentifyRequestEventArgs args)
        {
			ACDItem item = args.Item;
            bool legendary = IsLegendary(item);

            if (legendary)
            {
                Log("Keeping: " + item.ToString());
            }

            args.IgnoreIdentification = legendary;
        }

        bool IsLegendary(ACDItem item)
        {
            return item.ItemQualityLevel == ItemQuality.Legendary;
        }

        public bool Equals(IPlugin other)
        {
            return Name == other.Name && Version == other.Version;
        }
    }
}
 
Cant find the plugin I have anymore but this is the code (save as UnidLegendaries.cs in UnidLegendaries folder in Plugins)

not working for me.
Code:
Plugins\GilesTrinity\UnidLegendaries.cs(90,10) : error CS1513:
Using db 294 and giles 1.7.1.12

any other ways to keep legendarys unid?
 
not working for me.
Code:
Plugins\GilesTrinity\UnidLegendaries.cs(90,10) : error CS1513:
Using db 294 and giles 1.7.1.12

any other ways to keep legendarys unid?


should be Plugins/UnidLegendaries/UnidLegendaries.cs not in gilestrinity
 
Back
Top