This is an example how to extract/disenchant gear ("Apprentice's Quake Vambraces"):
Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace Extractor {
public class Extractor : Core
{
public static string GetPluginAuthor()
{
return "tictoc";
}
public static string GetPluginVersion()
{
return "0.1";
}
public static string GetPluginDescription()
{
return "Extractor - Extract Archeum from Gear";
}
//Call on plugin start
public void PluginRun()
{
List<Item> inventory = getAllInvItems();
foreach (Item myitem in inventory)
{
if (myitem.name == "Apprentice's Quake Vambraces")
{
Log("Extract Item: " + myitem.name);
myitem.Disenchant();
Thread.Sleep(2000);
}
}
}
//Call on plugin stop
public void PluginStop()
{
}
}
}






