Sells all the Items from ure Inventory.
Buyoutprice is one less than the current one and bidprice two less. Time is set to 24 hours.
All of that can be changed off course.
It does not work perfectly jet so if any of u has a suggestion feel free to critisise
The problem is that sometimes it sets the auctionItemPrice to zero but I dunno why. Maybe cause the request takes to long? Get last error gave me Unknown
Buyoutprice is one less than the current one and bidprice two less. Time is set to 24 hours.
All of that can be changed off course.
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 DefaultNameSpace{
public class DefaultClass : Core
{
public static string GetPluginAuthor()
{
return "Blackclon";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "Sell all Items on AH";
}
//Call on plugin start
public void PluginRun()
{
List<Item> InvItems = getAllInvItems();
foreach (Item InvItem in InvItems)
{
int SellPriceOnAH = InvItem.auctionItemPrice();
if(SellPriceOnAH != 0)
{
Thread.Sleep(2000);
int myBidPrice = SellPriceOnAH-2;
int myBuybackPrice = SellPriceOnAH-1;
AuctionSellTime sellTime = AuctionSellTime.TwentyFourHours;
bool noerror = InvItem.MakeAuctionLot(myBidPrice, myBuybackPrice, sellTime);
if(noerror);
else
{
LastError LE = GetLastError();
Log(LE.ToString());
}
Thread.Sleep(1000);
}
}
}
//Call on plugin stop
public void PluginStop()
{
}
}
}
It does not work perfectly jet so if any of u has a suggestion feel free to critisise
The problem is that sometimes it sets the auctionItemPrice to zero but I dunno why. Maybe cause the request takes to long? Get last error gave me Unknown






