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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

HB ARCHIVES: ProfessionBuddy--DO NOT DELETE

AHBot within the Multiprofile still sells Golden Lotus for 6G per item. AHBot says there is no competition, but there is, but competion is mostly not full stacks but single items, so that might cause AHBot to be confused?

so many but(t)s in one sentence :D
 
I love profession Buddy and while there is some quirkyness I think it's just me. There is one grievance I have. The pb window doesn't save ui settings, I really wish it would as it gets slightly annoying having to resize the window all the time.

EDIT

-snip- just found that section of the helpfile.
 
Last edited:
My professionbuddy is at 168 mining and it's still mining copper ore. Aswell as gathering lower level herbs.
Any clue as to why it's doing this?

Yes I tried clicking "ignore grey items" still doesn't work...
 
Last edited:
Golden Lotus and AHbot.xml

Slight issue with golden lotus here (and possibly more) using the AHBot.xml profile. The current market on my server for each golden lotus is anywhere from 75g-100g. No matter what, my bot posts them for 10g. I'll attach the log, but here's the concerning part:

PB 1.541: Searching AH for Golden Lotus
PB 1.541: Post If Below MinBuyout:False
PB 1.541: Lowest Buyout on AH: 73g12s50c, My Minimum Bouyout: 0g10s0c
PB 1.541: ,Selling Golden Lotus for 10g0s0c. Competition is at 73g12s50c[06:45:13.406 D] PB 1.541: Selling Golden Lotus for 10g0s0c. Competition is at 73g12s50c
View attachment 8816 2013-01-28 23.42.txt


Is there any way for us to specify minimum values in the ahbot.xml file?
 
Is there a specific thread for questions regarding the HBRelog api? Nothing wrong, just thought I'd browse something to get some inspiration :X
 
Just downloaded this via SVN and it's working perfectly. It's simple and does what I need it to do. Thank you for keeping this updated.
 
ProfessionBuddy stuck in Orgrimmar

I'm 510herb/500mining and my bot is stuck in Orgrimmar doing a strange loop between the elevator and the monk trainer...plz help me log attached
 

Attachments

Can't loot with Tailoring 1-600 profile

I have been trying to use the [PB][H] Tailoring 1-600 - Farm profile

but it won't loot when it goes to farm any of the cloth at any location. I have tried to change the settings from Loot Mobs so it isn't supposed to loot them, then re-checked the box so it is supposed to loot, but nothing changes.

I ran the profile using Questing bot instead of running it through Profession Buddy and it loots just fine, so it definitely has something to do with PB. Log attached.
 

Attachments

Hello Highvolts

every once in a while I'm having a issue with !RecipeIsOnCD, is there a current known bug with it?

the below code will do the research with the first batch of ore i have than once the whole profile resets and research: promordial ruby is on CD it will get stuck trying to cast it.

Code:
<If Condition="(bool)Settings[&quot;Research: Primordial Ruby&quot;]" IgnoreCanRun="True">
 <CustomAction Code="Log(&quot;[ProfessionBuddy] Researching Primordial Ruby.&quot;);" />
 <If Condition="!RecipeIsOnCD(131686)" IgnoreCanRun="True">
  <If Condition="HasMats(131686)" IgnoreCanRun="True">
   <CastSpellAction RepeatType="Specific" Repeat="1" Entry="131686" CastOnItem="False" ItemType="Chest" ItemId="0" />
  </If>
 </If>
</If>

would a delacration code to disable the bool after it cast the first one be a good solution?
 
Im using gatherbuddy2 1-600 herbalism, but he's looting 3 times one herb and meanwhile mounting. It looks really "botty", so can anyone help me with this?
 
Im using gatherbuddy2 1-600 herbalism, but he's looting 3 times one herb and meanwhile mounting. It looks really "botty", so can anyone help me with this?

Same here, he opens, mounts, moves away, moves back and opens 3 times before he loots. Why is this?
 
Hey highvoltz.. I improved your logging methods a little. First off, instead of creating new colors with the same values in LogInternal - I just use the ones that are passed as parameters in the method header. Secondly - I removed the Logging.WriteDiagnostic that you used (which caused everything to be written to log twice). I then added ScrollToEnd to make it scroll down in the window when something is added to the log - and finally I made a variable to contain the logfile message (and made a few changes to it so that it uses the same format as HB's default logging), as this seemed to make it more consistent with actually appending the text to the file. Here's the modified code:
PHP:
private static void LogInvoker(LogLevel level, Color headerColor, string header, Color msgColor, string format,
                        params object[] args)
{
    if (Application.Current.Dispatcher.Thread == Thread.CurrentThread)
        LogInternal(level, headerColor, header, msgColor, format, args);
    else
        Application.Current.Dispatcher.BeginInvoke(new LogDelegate(LogInternal), level, headerColor, header, msgColor,
                                                    format, args);
}
private static RichTextBox _rtbLog;
private static void LogInternal(LogLevel level, Color headerColor, string header, Color msgColor, string format,
                                params object[] args)
{
    if (level == LogLevel.None)
        return;
    try
    {
        string msg = String.Format(format, args);
        if (Styx.Helpers.GlobalSettings.Instance.LogLevel >= level)
        {
            if (_rtbLog == null)
                _rtbLog = (RichTextBox)Application.Current.MainWindow.FindName("rtbLog");

            var headerTR = new TextRange(_rtbLog.Document.ContentEnd, _rtbLog.Document.ContentEnd) { Text = header };
            headerTR.ApplyPropertyValue(TextElement.ForegroundProperty, new SolidColorBrush(headerColor));

            var messageTR = new TextRange(_rtbLog.Document.ContentEnd, _rtbLog.Document.ContentEnd);
            messageTR.Text = msg + Environment.NewLine;
            messageTR.ApplyPropertyValue(TextElement.ForegroundProperty, new SolidColorBrush(msgColor));
            _rtbLog.ScrollToEnd();
        }
        try
        {
            char abbr;
            switch (level)
            {
                case LogLevel.Normal:
                    abbr = 'N';
                    break;
                case LogLevel.Quiet:
                    abbr = 'Q';
                    break;
                case LogLevel.Diagnostic:
                    abbr = 'D';
                    break;
                case LogLevel.Verbose:
                    abbr = 'V';
                    break;
                default:
                    abbr = 'N';
                    break;
            }
            var logMsg = string.Format("[{0} {4}]{1}{2}{3}", DateTime.Now.ToString("HH:mm:ss.fff"), header, msg, Environment.NewLine, abbr);
            File.AppendAllText(Logging.LogFilePath, logMsg);
        }
        catch { }
    }
    catch
    {
        Logging.Write(header + format, args);
    }
}

private delegate void LogDelegate(LogLevel level,
    Color headerColor, string header, Color msgColor, string format, params object[] args);

EDIT: Hold on, I'm in the process of adding LogLevel aswell.

EDIT2: Done
 
Last edited:
Hey highvoltz.. I improved your logging methods a little. First off, instead of creating new colors with the same values in LogInternal - I just use the ones that are passed as parameters in the method header. Secondly - I removed the Logging.WriteDiagnostic that you used (which caused everything to be written to log twice). I then added ScrollToEnd to make it scroll down in the window when something is added to the log - and finally I made a variable to contain the logfile message (and made a few changes to it so that it uses the same format as HB's default logging), as this seemed to make it more consistent with actually appending the text to the file. Here's the modified code:
EDIT: Hold on, I'm in the process of adding LogLevel aswell.

EDIT2: Done
Thanks Inrego.
I was planning to fix the logging but you spared me the trouble.
 
Back
Top