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

Open Auction House Bot

я и точное название писал, результат тот же. Тут кто то уже задавал подобный вопрос, но посоветовали только увеличить timeleft, мне это не помогло. У тебя скрипт работает?
 
Last edited:
У меня другой )
Он у тебя не находит ничего - вот и падает.
 
Ставил дословное название, например "Еловая древесина", результат тот же.
 
Anyone got any tips on what's a good way to set this up? I mean show an example of what would be a good edit comparing the prices on your server and such. I added the stone blocks and lumber and this still hasn't purchased a single thing yet
 
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.

Hi acmodey, it will not be easy to help you because I have no RU version to test.
Can you post line 76 of your code, which is causing the NullReferenceException?

Please run this testcode with the RU version and tell if you also get an error:
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 "lyp";
       }

       public static string GetPluginVersion()
       {
           return "1.0.0.0";
       }

       public static string GetPluginDescription()
       {
           return "test Auction House functionality";
       }

       //Call on plugin start
       public void PluginRun()
       {
           string mySearchText = "руда";
           try
           {
                AuctionRequestParams req = new AuctionRequestParams(AuctionCategory.Off, 0, 0, mySearchText, false, ItemGrade.Common, AuctionSortType.Time, ArcheBuddy.Bot.Classes.SortOrder.Asc);
                List<AuctionItem> items = getAuctionBuyList(req, 0);
                Log(items.Count + " listings for " +mySearchText +" retrieved from AH successfully");
           }
           catch(Exception e)
           {
               if(e.GetType() != typeof(System.Threading.ThreadAbortException))
               {
                   Log(DateTime.Now.ToShortTimeString() + " ERROR " +e.GetType().ToString() +" " +e.StackTrace);
                   Log(e.Message);
               }
           }
       }
       //Call on plugin stop
       public void PluginStop()
       {
       }
   }
}
 
Guys, really? This is the latest reputation comment:
Thread: Open Auction House Bot
steals others work
warling

Not a single line in the code here is stolen, it was all made from scratch in a weak moment of charity when I saw the other guy charging 15 pounds for 20 lines of code.
 
really people are complaining because you made a free auction house bot? thanks for the hard work lypnn! apreciate you making a free version of the auction house bot.
 
Hi acmodey, it will not be easy to help you because I have no RU version to test.
Can you post line 76 of your code, which is causing the NullReferenceException?

Please run this testcode with the RU version and tell if you also get an error:
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 "lyp";
       }

       public static string GetPluginVersion()
       {
           return "1.0.0.0";
       }

       public static string GetPluginDescription()
       {
           return "test Auction House functionality";
       }

       //Call on plugin start
       public void PluginRun()
       {
           string mySearchText = "руда";
           try
           {
                AuctionRequestParams req = new AuctionRequestParams(AuctionCategory.Off, 0, 0, mySearchText, false, ItemGrade.Common, AuctionSortType.Time, ArcheBuddy.Bot.Classes.SortOrder.Asc);
                List<AuctionItem> items = getAuctionBuyList(req, 0);
                Log(items.Count + " listings for " +mySearchText +" retrieved from AH successfully");
           }
           catch(Exception e)
           {
               if(e.GetType() != typeof(System.Threading.ThreadAbortException))
               {
                   Log(DateTime.Now.ToShortTimeString() + " ERROR " +e.GetType().ToString() +" " +e.StackTrace);
                   Log(e.Message);
               }
           }
       }
       //Call on plugin stop
       public void PluginStop()
       {
       }
   }
}
Okay! This 76 line
PHP:
 foreach (AuctionItem item in items)
 
Yes, i have problems adding more items to search...

Ive tried once, it worked...but when ive added 10 more, its not doing it.
 
Okay! This 76 line
PHP:
 foreach (AuctionItem item in items)

Then there was propably no auctioneer found around you. Please run this code to find out what the error is exactly:

PHP:
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 "lyp";
        }

        public static string GetPluginVersion()
        {
            return "1.0.0.0";
        }

        public static string GetPluginDescription()
        {
            return "test Auction House functionality";
        }

        //Call on plugin start
        public void PluginRun()
        {
            string mySearchText = "руда";
            try
            {
                AuctionRequestParams req = new AuctionRequestParams(AuctionCategory.Off, 0, 0, mySearchText, false, ItemGrade.Common, AuctionSortType.Time, ArcheBuddy.Bot.Classes.SortOrder.Asc);
                List<AuctionItem> items = getAuctionBuyList(req, 0);
                if (items != null)
                {
                    Log(items.Count + " listings for " + mySearchText + " retrieved from AH successfully");
                }
                else
                {
                    Log("Lasterror: " + GetLastError().ToString());
                }
            }
            catch (Exception e)
            {
                if (e.GetType() != typeof(System.Threading.ThreadAbortException))
                {
                    Log(DateTime.Now.ToShortTimeString() + " ERROR " + e.GetType().ToString() + " " + e.StackTrace);
                    Log(e.Message);
                }
            }
        }
        //Call on plugin stop
        public void PluginStop()
        {
        }
    }
}
 
Here's the line that ive messed it up.
...

Now if i can understand How the bot is biding (only from what ive set it up? lower then that? for how long it can go higher on bid, etc) would be amazing.
Thanks

Your code works for me. Maybe it is a handling problem with the archebuddy plugin editor.

The bot/plugin will bid up to the amount you defined with the maxprice parameter of the buyFromAuctionHouse method. Additionally you can tweak the 3 variables on top of the plugin to change the bidding behavior (overbidamount, waitSecondsForAuctionEnd, msToBidBeforeAuctionEnd).
 
released version 2.2

- fixed the sellPrice issue and bidding now works properly
- other smaller fixes

Then I opened a paypal account and added a donate link to OP since people wanted to donate but dont seem to have bitcoins.
 
lypnn how would i make it so it buys X item at X price. what do i need to change and wherE?
 
lypnn how would i make it so it buys X item at X price. what do i need to change and wherE?
Its very easy actually.
After pasting the code to the plugin editor you need to add a line, calling the buyFromAuctionHouse method, for every item you want to go through.
Look at the top of the code where it says "// add more items here"
 
ok can you give me an example of what you would write say i wanted to buy log for 2 silver each and say i wanted to buy vocation tonic for 5 gold 50 silver.
 
Back
Top