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

Open Auction House Bot

Not work on RU client
2:20 > ----- Open Auction House started -----
2:20 ERROR at at OpenAuctionHouse.OpenAuctionHouse.buyFromAuctionHouse(String mySearchText, Int32 maxprice, Int32 minamount) in c:\AA\Plugins\Auc2\auc2.cs:line 72
at OpenAuctionHouse.OpenAuctionHouse.PluginRun() in c:\AA\Plugins\Auc2\auc2.cs:line 41
Object reference not set to an instance of an object.
2:20 > ----- Open Auction House stopped -----
 
Not work on RU client
2:20 > ----- Open Auction House started -----
2:20 ERROR at at OpenAuctionHouse.OpenAuctionHouse.buyFromAuctionHouse(String mySearchText, Int32 maxprice, Int32 minamount) in c:\AA\Plugins\Auc2\auc2.cs:line 72
at OpenAuctionHouse.OpenAuctionHouse.PluginRun() in c:\AA\Plugins\Auc2\auc2.cs:line 41
Object reference not set to an instance of an object.
2:20 > ----- Open Auction House stopped -----

I have not really an idea.. how does your PluginRun() look? And did you change anthing below the line "////////// no variables to edit below this line ////////////" ?

One advice to every user, if you have alot of bidding failed messages try to increase the msToBidBeforeAuctionEnd to like 5000. Sometimes it will run ok with a lower value, it seems to depend on how fast the auction server currently responds. I updated the opening post accordingly, also I added exception handling which is only important if you experience problems with the plugin like dinya24.
 
Last edited:
I'm am new to this forum. Can someone tell me how to add this plugin?

nvm i got it
 
Last edited:
Isn't it a little bit risky to request the AH every 1-2 seconds ?
 
Isn't it a little bit risky to request the AH every 1-2 seconds ?
If u want to be safe(r) u could change the Thread.Sleep(x) so it waits a bit longer.
Don't know if it's dangerous...
 
I'm not using this, was just asking for a plugin of mine :)
 
Isn't it a little bit risky to request the AH every 1-2 seconds ?
yes, maybe you are right, I changed it to 3-5 seconds for now.

This plugin is pretty much finished, one last thing I need to fix is this line:

Code:
myBidAmount = item.sellPrice + overbidamount + 20; //sometimes, especially on higher quantities, item.sellPrice seems to read 20c less than the ig auction house, thus adding 20c here - maybe Archebuddy Bug?

But there might be a bug in Archebuddy:
When I check item.sellPrice after getAuctionBuyList, sometimes the price is different (lower) then what is displayed in the game. Maybe Out can help here?
 
When I check item.sellPrice
sellPrice - its basic price from database.
Real price, as i know - calculated by multiply for itemGrade
Something like:
white = price * 1.0
green = price * 1.2
blue = price * 1.4
Try to find this coefficients
 
can someone briefly explain what does open auction house do? All my bot does was switching items to items for one hour without buying anything. Does it auto sell as well?
 
can someone briefly explain what does open auction house do? All my bot does was switching items to items for one hour without buying anything. Does it auto sell as well?

I made it after the Auction House Sniper plugin here

sellPrice - its basic price from database.
Real price, as i know - calculated by multiply for itemGrade
Something like:
white = price * 1.0
green = price * 1.2
blue = price * 1.4
Try to find this coefficients

This sounds like some work to figure out and it doesnt really make sense to me yet. Not sure I have time to do that, maybe someone else can. For now I suggest people increase their overbidamount variable to reduce the bidding fails.
 
Just a little question. Is there a minimum gold amount to have so this script can make good chunk of $. I dont want to over abuse the AH just enough to buy 3-4 property and im more than all set.
 
Finally, I understand how to use. I got to say, it is a beautiful plugin. Just beautiful. I make 10 gold in one hour (its the market not the plugin's fault). Thank you.
 
Last edited:
So, Im a total noob at this stuff, Could any1 here make a guide how i install this? (With sceenshots) :P
 
public void buyFromAuctionHouse(string mySearchText, int maxprice, int minamount) // maxprice per item in copper, 1g = 1 00 00 c


isn't it 1g =10,000 copper? since 100 copper 1silver, 100 silver 1 g: 100x100 = 10,000?
 
public void buyFromAuctionHouse(string mySearchText, int maxprice, int minamount) // maxprice per item in copper, 1g = 1 00 00 c


isn't it 1g =10,000 copper? since 100 copper 1silver, 100 silver 1 g: 100x100 = 10,000?


no, what the plugin is saying is that it is 1g 00s 00c, it is not going off total amounts of copper to make a gold, but rather an exact quantity of each type of currency. so 123409 would actually be 12g 34s 09c.
 
Just wondering: on one hand u use
Code:
AuctionRequestParams req = new AuctionRequestParams(AuctionCategory.Off, 0, 0, mySearchText, [SIZE=6][B]false[/B][/SIZE], ItemGrade.Common, AuctionSortType.Time, SortOrder.Asc);
on the other hand u do

Code:
foreach (AuctionItem item in items)
            {
                if (!item.item.name.Equals(mySearchText)) // auctionitem item name must match the searchText
                    continue;

WHY?!
 
I don't quite understand the strategy for making money in the auction house.
If I buy an object 10 gold and i resell it 11 gold. The fees make me lose money, right?
 
Shit, tested this and it spent all my 100 gold on stone bricks.
Make sure you edit the price according to what it's worth on your server.
 
@wbulot well u dont buy for 10 and sell for 11 ... its more like u buy 4 10s and sell 4 1-3g ...
 
lypnn, doesnt work in RU server
HTML:
10:11 ERROR System.NullReferenceException    в OpenAuctionHouse.OpenAuctionHouse.buyFromAuctionHouse(String mySearchText, Int32 maxprice, Int32 minamount) в f:\Games\archebuddy\Plugins\auc\auc.cs:строка 76
   в OpenAuctionHouse.OpenAuctionHouse.PluginRun() в f:\Games\archebuddy\Plugins\auc\auc.cs:строка 41
Ссылка на объект не указывает на экземпляр объекта.
10:11 > ----- Open Auction House stopped -----

under ////////// no variables to edit below this line ///////////// i nothing change.

PHP:
 //Call on plugin start
        public void PluginRun()
        {
            try
            {
                Log(DateTime.Now.ToShortTimeString() + " > ----- Open Auction House started -----");

                while (true)
                {
                    buyFromAuctionHouse("руда", 1000, 2); // 1 silver per item, minimum amount 2
                    //buyFromAuctionHouse("Azalea", 70, 2); // 70 copper per item, minimum amount 2     

                    //buyFromAuctionHouse("Stone Brick", 2000, 2); 
                    // add more items here
                    // buyFromAuctionHouse("item name", 3000, 1); // 30 silver, minimum amount 1
                }
            }
            catch (Exception e)
            {
                if (e.GetType() != typeof(System.Threading.ThreadAbortException))
                {
                    Log(DateTime.Now.ToShortTimeString() + " ERROR " + e.GetType().ToString() + " " + e.StackTrace);
                    Log(e.Message);
                }
            }

PHP:
private int overbidamount = 20; // attempt to bid 20c above current bid
        private int waitSecondsForAuctionEnd = 120; // if a bid item is at < 2 minutes wait for it to end
        private int msToBidBeforeAuctionEnd = 10000; // wait until timeleft = 5 seconds until bidding myself
Thats all what i change in plugin is timeleft and name of item.
please, help us!
 
Last edited:
Back
Top