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

[PB] Help with my Auction House Bot profile please!

buggerface

New Member
Joined
Oct 18, 2011
Messages
13
Reaction score
0
Hey all, thanks for looking - I am in need of help!

I have written a PB profile, here's what I want it to do;

1 - Post 1 stack of 1 of an item (in this case Zephyrite) for a price I specify
2 - Buy any auctions that undercut mine
3 - Post the same auction again every [X] minutes.

So basically it is a baiter bot. I have tried it and it only buys - does not post. Tested by posting from a second account and it bought it.

Code is below!

PHP:
<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy>
  <ChangeBotAction BotName="Combat Bot" />
  <If Condition="True" IgnoreCanRun="True">
    <SellItemOnAhAction Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="MetalStone" UseCategory="True" RunTime="_12_Hours" AmountType="Amount" ItemID="" MinBuyout="0g0s14c" MaxBuyout="0g0s15c" StackSize="1" IgnoreStackSizeBelow="1" Amount="1" BidPrecent="99" UndercutPrecent="0.1" AutoFindAh="True" PostIfBelowMinBuyout="True" Location="0, 0, 0" />
  </If>
  <Settings DefaultValue="false" Type="Boolean" Name="Cancel Undercut Auctions" Summary="if set to true if you want to cancel all auctions that are undercutted" Category="Misc" Global="False" Hidden="False" />
  <CustomAction Code="var1 = true;" />
  <CustomAction Code="var2 = DateTime.Now;" />
  <CustomAction Code="var3 = new Random().Next(30, 300);" />
  <CustomAction Code="var4 = new Random().Next(400000, 600000);" />
  <SellItemOnAhAction Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="MetalStone" UseCategory="True" RunTime="_12_Hours" AmountType="Amount" ItemID="" MinBuyout="0g0s14c" MaxBuyout="0g0s15c" StackSize="20" IgnoreStackSizeBelow="1" Amount="1" BidPrecent="99" UndercutPrecent="0.1" AutoFindAh="True" PostIfBelowMinBuyout="True" Location="0, 0, 0" />
  <While Condition="true" IgnoreCanRun="True">
    <If Condition="DateTime.Now.Subtract((DateTime)var2).TotalSeconds &gt;= (int)var3" IgnoreCanRun="True">
      <CustomAction Code="var2 = DateTime.Now;" />
      <CustomAction Code="var3 = new Random().Next(30, 300);" />
      <CustomAction Code="KeyboardManager.AntiAfk();" />
    </If>
    <BuyItemFromAhAction ItemListType="Item" ItemID="52178" MaxBuyout="0g0s15c" Amount="9999" BuyAdditively="True" AutoFindAh="True" BidOnItem="False" Location="0, 0, 0" />
    <WaitAction Condition="false" Timeout="2000" />
    <If Condition="DateTime.Now.Subtract((DateTime)var2).TotalSeconds &gt;= (int)var4" IgnoreCanRun="True">
      <CustomAction Code="var2 = DateTime.Now;" />
      <CustomAction Code="var4 = new Random().Next(400000, 600000);" />
      <CustomAction Code="KeyboardManager.AntiAfk();" />
    </If>
  </While>
</Professionbuddy>
 
Last edited:
Post the profile, not the code, im too lazy sry. :P

but from the first look, use wait timer.
 
sure thing, thanks for replying :)

been trying for ages but need the experts help here!

(originally edited from AHbot.xml that comes with PB)


Also - If I use wait timer then how can I have it scanning the AH for cheap auctions in the mean time?
 

Attachments

Last edited:
strange style, but the IF TRUE true needs to be writen in smnall letters.

Im in riad now, will fix more later ^^
 
Yeah, the strange style is because I used to use autoit :)

K, just realised it should be "gem" and "blue" in this case - changed it and it just searches for the item, doesn't post it.

Is there no way of posting an item by it's ID?
 
Last edited:
Yeah, the strange style is because I used to use autoit :)

K, just realised it should be "gem" and "blue" in this case - changed it and it just searches for the item, doesn't post it.

Is there no way of posting an item by it's ID?

sure there is, set use category to false and then put item ids in. (After you clicked on the sell to ah tab.)

and btw i think gems arent metalStone, they should be gem. but dunno, use the item id, way better.
 
Awesome, that's one of my many many questions answered :) cheers buzzer

Also, this has solved the issue of not posting - Now I just need to know how to get it to post every hour or so but still check the AH and buyout any undercuts in the meantime.

I know there is an addon that will check if my auction has been bought out but would like to use a simple method first
 
Last edited:
Wouldnt it be easier to check every minute if you got undercut and if the stack you posted is still on the ah? if not it will repost them and if none are in the bags, get new from mail?
 
Wouldnt it be easier to check every minute if you got undercut and if the stack you posted is still on the ah? if not it will repost them and if none are in the bags, get new from mail?

This would be more effective, but I don't know where to begin with coding that :-/
 
easy:

while(true)
-SellItemToAH your item for your price
-BuyitemFromAH your Item with Max Buyout price 1 copper below your own one.
-wait until condition Timeout 60000

Done? if you now need the mail stuff:

while(true)
- If InbagCount(Your item) <how many you want to post
--GetMail specific YourItem
-SellItemToAH your item for your price
-BuyitemFromAH your Item with Max Buyout price 1 copper below your own one.
-wait until condition Timeout 60000

need more?
 
Try putting 1 into amount, dunno if it will sustain the number or post it again and again.

ill look into it.
 
Just found this:

OnAhCount (ItemID) - Returns the number of items the player has on AH that match ItemID. Requires Datastore WoW Addon. No RefreshDataStore() call is required

So get an datastore addon, then post
if OnAhCount (YourItem) <under the stack you want
-sellItemtoah bla bla you know?
 
Just found this:

OnAhCount (ItemID) - Returns the number of items the player has on AH that match ItemID. Requires Datastore WoW Addon. No RefreshDataStore() call is required

So get an datastore addon, then post
if OnAhCount (YourItem) <under the stack you want
-sellItemtoah bla bla you know?

Ok will do, late now so will report back tomorrow. Thanks for all the help tho!
 
Back
Top