r/SinglePlayerProject • • 23d ago

Bots trading on Azerothcore 3.3.5

Im running a wrath server with a few thousand bots. As of now I got bots that will enchant, and those that will craft things when you trade them the mats. But those are when I do it with the bot, is it possible to have bots trade crafting mats and create things and trade back to each other? There are ways for me to get bots to trade on my demand, but to recognize they need an item, ask another bot to craft, trade mats, and trade finish project seems to be just out of reach. Wondering if any have recommendations or scripting for this?

Edit: this is the workflow I'm looking for

Bot A needs an item → finds Bot B → initiates trade → gives B the reagents → B crafts → B returns the finished item → A pays B → transaction completes.

4 Upvotes

7 comments sorted by

4

u/Abject_Satisfaction2 23d ago

How do you have bots that will enchant or craft when you trade them the mats? I'd like to set that up for myself as well

4

u/Jay682002 23d ago

Well, the core of it all was already built into the playerbots that I used (youp211/azerothcore-humanlike-playerbots). The missing parts were the crafting triggers. Me and AI were able to expand the current logic to handle those missing pieces.

Now I can use a pretty natural workflow to find bots that can craft in chat, trade them the materials, have them craft the item, and then have them trade the finished product back to me for a crafting fee.

Crafting workflow:
Ask in world chat something like who alchemy to find bots with that profession.
Invite the crafter I want.
Ask the bot what recipes it knows, e.g. spells alchemy.
Ask it to craft the item I want.
The bot tells me the required materials and crafting fee.
I trade it the required materials.
Once it has everything it needs, it automatically crafts the item.
I open another trade with the bot.
I tell it to trade me the finished item.
The bot puts the item in the trade window and I pay the crafting fee.

If I supplied enough materials for multiple crafts, it will continue crafting the next one after the previous transaction is completed.

So it ends up feeling a lot more like actually finding a player crafter and doing business with them rather than just using a crafting command.
For enchanting, most of the functionality was already there. The workflow is:

Enchanting workflow:
Ask in world chat for an Enchanter with who enchanting.
Invite the Enchanter.
Ask the bot what enchanting spells/recipes it knows.
Open a trade with the Enchanter.
Put my own item into the Will Not Be Traded / no-trade slot using nt [item link].
While the trade window is open, tell the bot to cast the enchant using cast [enchant link].
The bot applies the enchant to my item in the no-trade slot.
Complete the trade.

So the actual item never leaves my possession; the bot uses the trade’s no-trade slot to enchant it.

There’s still some stuff I’d like to expand later, like making it easier to find a specific crafter/enchanter who knows a rare recipe or enchant, but for now I’m leaving the existing system alone and testing what we have.

3

u/sagiroth 22d ago

https://github.com/Sagiroth/TortoiseBots my bots can do that however its for 1.18.1

3

u/Jay682002 22d ago

This is interesting, I wondered if I could take another build even different client version ones and deconstruct the underlying logic and use AI to upgrade my scripting. Not sure how hard that would be to translate.

4

u/sagiroth 22d ago

Its open source so be my guest. Point an AI agent and off you go. The only thing I ask is just comply with licence and keep it OS

https://github.com/Sagiroth/TortoiseBots/blob/main/docs/play/guild-orders.md

4

u/Jay682002 22d ago

Definitely, I appreciate the info and will keep those things in mind. This is all for personal use but will keep sharing in mind when building in case others ask to see.

3

u/sagiroth 22d ago

Good luck brother! Have fun :)