This thread is simply to post a modified version of the glider class for buying things on the Neutral AH in the background originally posted in this thread: http://www.mmowned.com/forums/bots-p...d-btmscan.html. You can download the new version of the "custom class" here: MEGAUPLOAD - The leading online storage and file delivery service.
If you prefer to enter the code yourself, here it is:
Clix.cs:
Code:
using System;
using System.Threading;
using System.Collections.Generic;
using Glider.Common.Objects;
namespace Glider.Common.Objects
{
public class Clix : GGameClass
{
int clickDelay = 375;
#region GGameClassOverrides
public override string DisplayName { get { return "Clix"; } }
#endregion
#if GCONFIGWINDOW
void MyHelpHandler()
{
System.Diagnostics.Process.Start("http://www.mmoglider.com");
}
bool MyValidator(GConfigWindow owner, SortedList<string, string> FieldValues)
{
int cdTemp = Int32.Parse(FieldValues["Clix.ClickDelay"]);
if(cdTemp < 1)
{
owner.ComplainAboutField("Clix.ClickDelay", "Delay between clicks must be at least 1 millisecond (at least 100 recommended)");
return false;
}
return true;
}
public override GConfigResult ShowConfiguration()
{
GConfigWindow w = new GConfigWindow();
w.SetHelpHandler(new GConfigWindow.HandleHelp(MyHelpHandler));
w.SetValidateHandler(new GConfigWindow.ValidateForm(MyValidator));
w.Load("Classes\\Clix.xml");
return w.DoShow();
}
#else
public override GConfigResult ShowConfiguration()
{
Context.Log("Upgrade your Glider to 1.5.2 RC2 or newer for customizable configuration!");
return GConfigResult.NotSupported;
}
#endif
public override void CreateDefaultConfig()
{
Context.SetConfigValue("Clix.ClickDelay", "375", false);
}
public override void LoadConfig()
{
clickDelay = (int)Context.GetConfigInt("Clix.ClickDelay");
}
public override void OnStartGlide()
{
while(true)
{
Context.SendKey("Common.Eat");
Thread.Sleep(clickDelay);
}
}
}
}
Clix.xml:
Code:
<?xml version="1.0" ?>
<GliderConfigWindow toplabel="Clix Configuration" columns="1">
<Field name="Clix.ClickDelay" displayname="Click Delay" label="Click Delay:" type="int" required="true" />
</GliderConfigWindow>
And here is your buy macro:
Code:
/run if (BtmScan.Prompt:IsVisible()) then BtmScan.Prompt.Yes:Click() end
Here is a short list of steps to get it working:
- Download & Install BtmScan w/ Auctioneer
- Load your first instance (the one to buy things) of WoW and get your toon to a neutral Auctioneer
- Load Glider
- Select the Clix profile & configure it with the delay between clicks you desire. Default is 375
- Go to the Profile tab & start a new profile without using the wizard.
- Leave settings as is (or remove all checks) and click OK.
- Add two waypoints where you stand (next to the Auctioneer)
- Hit Shift+2 in WoW (2nd bar) and put your buy macro in the first position (as if you were to press 1 to use it)
- Talk to the Auctioneer & start BtmScan
- Start your glide & watch the epics roll in!
If you need more information or the modified BtmScan file (allows you to scan every 1 second if desired) see the article linked at the top! Enjoy!
Regards,
mjuad