Jump to content

[PATCH] AuctionHouse Bot


Recommended Posts

Dear members,

i need help with Auction House, i can set Auction House Bot to sell only Green & Blue items. I set 'percenttradegoods' and 'percentitems' at white, grey & purple (epic) to 0% & Green and Blue to 50%, but AHBot sell all (Purple, grey...all). He ignoring my settings. Please, listen me and send me help with that. Thanks very much.

Link to comment
Share on other sites

  • Replies 702
  • Created
  • Last Reply

Top Posters In This Topic

git://github.com/reno/mangos-patched.git ahbot-0.12

Thanks for maintaining the 0.12 branch ahbot, reno138. Could I trouble you to update it to the latest mangos? The current build version from your branch has a known portal bug that stops all portals from working. They are missed. :-)

Thanks!

mercer

Link to comment
Share on other sites

Just fetch reno's ahbot-0.12 repo into it's own branch for your git repo:

git remote add -f -t ahbot-0.12 ahbot-0.12 git://github.com/reno/mangos-patched.git

then create the branch:

git branch ahbot-0.12 --track ahbot-0.12/ahbot-0.12

Now, you just use git merge to apply ahbot to your current mangosd-0.12 source tree. This should fix any bugs with portals, assuming the code for ahbot is not somehow responsible.

Link to comment
Share on other sites

since today I have a strange error

Error 80 error C2065: 'CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION' : undeclared identifier c:\\users_sys\\games\\WoW\\Mangos\\git\\ahbot2\\src\\game\\AuctionHouseBot.cpp 755 game

Error 81 error C2065: 'CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION' : undeclared identifier c:\\users_sys\\games\\WoW\\Mangos\\git\\ahbot2\\src\\game\\AuctionHouseBot.cpp 797 game

Error 82 error C2065: 'CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION' : undeclared identifier c:\\users_sys\\games\\WoW\\Mangos\\git\\ahbot2\\src\\game\\AuctionHouseHandler.cpp 257 game

Did I make a mistake ?

Link to comment
Share on other sites

mangos 9391 :

git pull git://github.com/Naicisum/mangos.git ahbot

no errors ;-p

EDIT :

../../../src/game/AuctionHouseBot.cpp: In member function ‘void AuctionHouseBot::addNewAuctionBuyerBotBid(Player*, AHBConfig*, WorldSession*)’:

../../../src/game/AuctionHouseBot.cpp:578: warning: format ‘%f’ expects type ‘double’, but argument 3 has type ‘long double’

../../../src/game/AuctionHouseBot.cpp:633: warning: format ‘%f’ expects type ‘double’, but argument 3 has type ‘long double’

../../../src/game/AuctionHouseBot.cpp:643: warning: format ‘%f’ expects type ‘double’, but argument 3 has type ‘long double’

../../../src/game/AuctionHouseBot.cpp:667: warning: format ‘%f’ expects type ‘double’, but argument 3 has type ‘long double’

../../../src/game/AuctionHouseBot.cpp: In member function ‘void AuctionHouseBot::Update()’:

../../../src/game/AuctionHouseBot.cpp:755: error: ‘CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION’ was not declared in this scope

../../../src/game/AuctionHouseBot.cpp: In member function ‘void AuctionHouseBot::Initialize()’:

../../../src/game/AuctionHouseBot.cpp:797: error: ‘CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION’ was not declared in this scope

../../../src/game/AuctionHouseBot.cpp:812: warning: format not a string literal and no format arguments

../../../src/game/AuctionHouseBot.cpp:839: warning: format not a string literal and no format arguments

../../../src/game/AuctionHouseBot.cpp:1027: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1028: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1029: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1030: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1031: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1032: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1033: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1034: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1035: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1036: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1037: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1038: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1039: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

../../../src/game/AuctionHouseBot.cpp:1040: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’

make[2]: *** [AuctionHouseBot.o] Erreur 1

make[2]: quittant le répertoire « /opt/wowtest/mangos/objdir/src/game »

make[1]: *** [install-recursive] Erreur 1

make[1]: quittant le répertoire « /opt/wowtest/mangos/objdir/src »

make: *** [install-recursive] Erreur 1

Link to comment
Share on other sites

Hello commiters, would be very nice to have the mangos rev for the ahbot rev that applies to in git logs!

I'm trying to apply fresh ahbot to mangos rev 9310 and get errors in AuctionHouseMgr.cpp and Mail.cpp with patch method, may be on my side but still have no clue about revs.

Also Vladimir, I guess there is a 'R' missing in rev 9377 title…

Link to comment
Share on other sites

I'm in the same condition, kugel. I've been driving myself crazy trying to merge AHBot's latest commit with mangos-0.16-dev1 (9310), but I keep getting "trash" code from the later revisions of MaNGOS mixed in with it and it's causing numerous compile errors.

I do not wish to trouble you, Naicisum, but is there any way you can provide a clean diff of your latest AHBot source?

For that matter, can anyone offer up a clean diff file? I've tried using git rebase with no luck. git diff keeps creating an ahbot.patch file littered with mangos core code. Using git diff master ahbot>ahbot.patch without doing a rebase on my 'ahbot' branch produces similar results.

Link to comment
Share on other sites

Hi unkle ^^

Did you try with ahbot rev 9288? Looks like it is the right rev to work with 9310 (right before ahbot code went for 3.3.2 support).

[edit]

I'm not sure but maybe this will work :

git clone git://github.com/mangos/mangos.git

cd mangos

git checkout e8af832ac20f75de313f39b8f9f7d3724299c311

git clone git://github.com/Naicisum/mangos.git ahbot

cd ahbot

git checkout 20385738b8622d337a42b3d87b57fab9b75ddd1d

cd ../

git push ahbot/

Link to comment
Share on other sites

@kugel and UnkleNuke

You could try this one: http://gist.github.com/310405

I checked out Naicisums ahbot0.15 patch and merged up to 9310. Only merge probs were with VCx0/game.vcproj, but I hopefully fixed these (can't test, as I don't use windows). I haven't (and won't do so) tested the patch myself, but I'm quite positiv it will compile. If you spot some compile errors connected to ahbot, post them and I'll have a look.

And I don't think Vladimir reads in this thread that often, if you have a message for him you better post it someplace else ;-)

Be calm with Naicisum, he's a busy man.

Regards

Skirnir

Link to comment
Share on other sites

Thanks Skirnir, I'll try your patch, with the push method and AHBot 9288 it looks like SD2 is conflicting, gmake on FreeBSD here btw.

../../../../src/bindings/ScriptDev2/base/escort_ai.cpp: In member function 'virtual void npc_escortAI::MovementInform(uint32, uint32)':

../../../../src/bindings/ScriptDev2/base/escort_ai.cpp:337: error: 'class Creature' has no member named 'HasMonsterMoveFlag'

../../../../src/bindings/ScriptDev2/base/escort_ai.cpp:337: error: 'MONSTER_MOVE_WALK' was not declared in this scope

../../../../src/bindings/ScriptDev2/base/escort_ai.cpp:338: error: 'class Creature' has no member named 'RemoveMonsterMoveFlag'

../../../../src/bindings/ScriptDev2/base/escort_ai.cpp:339: error: 'class Creature' has no member named 'HasMonsterMoveFlag'

../../../../src/bindings/ScriptDev2/base/escort_ai.cpp:340: error: 'class Creature' has no member named 'AddMonsterMoveFlag'

etc.

Link to comment
Share on other sites

Hello,

When I try to apply the ahbot latest patch to the latest mangos revision it gives me the following error:

error: patch failed: scr/game/mail.cpp:900

error: scr/game/mail.cpp: patch does not apply

I don't know what's wrong...

Could anyone help me please.

Shaan

Link to comment
Share on other sites

@kugel and UnkleNuke

You could try this one: http://gist.github.com/310405

I checked out Naicisums ahbot0.15 patch and merged up to 9310. Only merge probs were with VCx0/game.vcproj, but I hopefully fixed these (can't test, as I don't use windows). I haven't (and won't do so) tested the patch myself, but I'm quite positiv it will compile. If you spot some compile errors connected to ahbot, post them and I'll have a look.

patch failed with

error: patch failed: src/game/Makefile.am:37
error: src/game/Makefile.am: patch does not apply
error: patch failed: win/VC80/game.vcproj:1034
error: win/VC80/game.vcproj: patch does not apply
error: patch failed: win/VC90/game.vcproj:1035
error: win/VC90/game.vcproj: patch does not apply 

I patched by hand the Makefile and get rid of offending lines in patch but now git complains it is corrupted…*gee… git patch indexes I guess…

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use