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

What happened to the "Unid Legendary" plugin?

planb2k7

New Member
Joined
Jan 23, 2013
Messages
16
Reaction score
0
Hey,

I did a fresh install and was trying to find the plug-in that kept your legendaries unidentified but can't seem to find it... Can anyone help?
 
Yeah I was just posting up a similar question. How do you have the bot just stash away the pick ups without identifying them?
 
Here ya go, I found it. ;)

Name as UnidLegendaries.cs, in a folder called UnidLegendaries.




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;
}
}
}
 
I want to keep rings and amulets unidentified. How do I do that?
The legendaries are working fine with what planb2k7 said.

THIS

Want EXATLY the same. Allready stashing unid legendarys. Just need it to stash unid rings and amus also, nothing else
 
Back
Top