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

Pb ah issue

View attachment 40606Ok so I'm working on the profile with ahbot. It works fine except for one thing that is a bit troubling. The character keeps running back and forth from the mailbox constantly and that is a bit of a give away. But he does post and cancel. How can I make him grab mail only when he finishes undercutting?

Do you see some like this in the your Log window?

AHBot: Checking for undercut auctions in 113 seconds.

Because this code clearly works for me.

You could set a forced wait time yourself or adjust the random number. Atm its 30-300 seconds.
 
View attachment 40606Ok so I'm working on the profile with ahbot. It works fine except for one thing that is a bit troubling. The character keeps running back and forth from the mailbox constantly and that is a bit of a give away. But he does post and cancel. How can I make him grab mail only when he finishes undercutting?
He should only go to the mailbox if there are items in it. Is the New Mail indicator still visible after emptying the mailbox?
 
Ok after a few edits and reviewing everything it works now. There is just one final bug, I chose the option sell to ah and made the amount to sell to be 5 items. So it will go to the ah and sell the first 5. When it goes to review for undercuts and goes grab the mail, it proceeds to sell another 5 without the other 5 being sold yet. So basically it's selling all my stock when I only want 5. I looked at the values and it clearly says x5 next to the item. What am I doing wrong?
 
Ok after a few edits and reviewing everything it works now. There is just one final bug, I chose the option sell to ah and made the amount to sell to be 5 items. So it will go to the ah and sell the first 5. When it goes to review for undercuts and goes grab the mail, it proceeds to sell another 5 without the other 5 being sold yet. So basically it's selling all my stock when I only want 5. I looked at the values and it clearly says x5 next to the item. What am I doing wrong?

It will post 5 gems again everytime it gets to the ah, you need to change your code to get it to work.

while OnAhCount(YOUR ITEM ID) < 5
-Sell item to ah(YOUR ITEM ID)

This could would keep up the number of gems at exactly 5. You would need a wow datastore addon for this.

And you would need to delete all the other code related to gems.
 
So onahcount would that be a what if condition? or which one would I choose so that I can enter those parameters?
 
Last edited:
If/While Condition
The 'If/While Condition' will runs the actions that they contain if an expression is true.
Execution starts from the top action and goes down the list of actions that the If/While Condition contains. If at any time the Condition becomes false then execution stops right away unless the property 'Ignore Execution Until done' is set to true in which case execution will ignore the Condition until it finishes executing the last action at the bottom of the list
The While Condition will repeated execute a set of actions as long as its condition remains true.
A While condition can repeatedly execute actions within while the If Condition cannot (unless it's embedded within a While Condition)



copied from the PB Guide inside hb, which you should have read already.
 
Ok I will play with this and tinker with it. Probably one last issue. Why would my bot decide to sell things at such a low price and override my parameters? For example I just realized my bot decided to sell fireweave pants for 100 gold. I don't know why when I clearly put the items to be sold at at least 300 gold.
 

Attachments

Ok I will play with this and tinker with it. Probably one last issue. Why would my bot decide to sell things at such a low price and override my parameters? For example I just realized my bot decided to sell fireweave pants for 100 gold. I don't know why when I clearly put the items to be sold at at least 300 gold.

There is not the slightest sense to put this outside of the while(true) condition.

After the first time, it wont post again for those prices.

Can you see the fault?

pb fail2.webp
 
Ok I'm working on editing those things now. My question is this: I never touched any of those settings except for the first few on top when I add sell to ah. I added those few lines and that was it. How did it decide to put in 0 - 200 and 0 - 100 g on its own?
 
if you put up a sell to ah command, the basic setting is max 100g.

The author put this up. Just change it for your liking.
 
Well I know that was the basic setting. What I'm talking about was where you wrote BAD in big letters. I never added those weird settings for 100 and 200 gold. I'm talking about the if boolean settings.
 
i wrote bad because this code is messing up your prices, right? So its bad it is not changed or still not deleted.
 
Ok I changed it and it works beautifully. Btw, you don't need to datastore at all. I figured it out. If I edited out the bad areas and add sell to ah on the bottom it fixes my limit problem. Thank you Thank you so much. Man, you guys are awesome. Enuff said!
 
Ah yeah, totally forget about the Amount you can put into the sellItemOnAh command.

In my PB it never shows it, so i always think of the onAhCount command.
 
It's all good because everything is running very smoothly now. Thank you so much. Without your help, I'd still be pulling my hair out trying to figure out why my bot is deciding to rip me off.
 
Back
Top