Previously, we set up a TrinityCore 3.3.5 version of World of Warcraft (see:TrinityCore Series: World of Warcraft TrinityCore 3.3.5 (24011) Server Setup Guide for Dummies), but sometimes, we also want to add NPC bots so they can accompany us in leveling up, running dungeons, and playing battlegrounds~, hence this article.
Note: Just like in the setup guide for dummies, the directory "server3.5.5" in some of the screenshots below was a typo when creating the directory; it should be "server3.3.5". However, re-taking the screenshots would be too much work, so I corrected some of them and left the rest as they are. Additionally, some are old screenshots from the previous version 23061 when adding npcbot, reused out of laziness. Please bear with me.
Generally speaking, there are two choices of NPC bots for TrinityCore 3.3.5: npcbot and playbot. Playbot allows NPCs to wander around the map and enables world PvP. On the other hand, npcbot allows them to accompany you in dungeons, battlegrounds, leveling up, and doing quests, so each has its own merits. However, it is said that playbot is unstable, so this time I chose npcbot. Theoretically, using both playbot and npcbot together would be the most perfect setup. I will try it when I have time in the future...
First, go to GitHub to download the npcbots zip installation package:
Download link for the matching npcbots version

Note: There is a compatibility range between the TrinityCore 3.3.5 version (24011 in this article) and the npcbots version. The npcbots commit I used at that time was ”cd415a1302ee9b9f6e9406b63a8f4ad8fb3c0872”. Thanks to Zhihu user ”海洋之殇" (Ocean's Sorrow) for helping me test and find the npcbots version suitable for 24011. I was careless and didn't write it down at the time, and later I was completely lost~ I have updated the download link above to the matching version.
Extract the downloaded Trinity-Bots-master.zip file, and upload the NPCBots.patch patch file inside to the following directory:/home/wow/TrinityCore/TrinityCore-TDB335.24011/
Then enter the directory and apply the patch:
cd /home/wow/TrinityCore/TrinityCore-TDB335.24011
patch -p1 < NPCBots.patch

patch -p1 < NPCBots.patch
cd /home/wow/TrinityCore/TrinityCore-TDB335.24011/build
cd /home/wow/TrinityCore/TrinityCore-TDB335.24011/build
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/wow/server3.3.5

cmake ../ -DCMAKE_INSTALL_PREFIX=/home/wow/server3.3.5
Re-run make:

make -j $(nproc) install
cd /home/wow/server3.3.5/etc/
vim worldserver.conf.dist
cd /home/wow/server3.3.5/etc/

vim worldserver.conf.dist
将 Directly copy and paste the entire NPCBOT CONFIGURATION section at the end to the bottom of worldserver.conf. Alternatively, you can directly rename worldserver.conf.dist to worldserver.conf to use it. However, if you have already modified the configuration of worldserver.conf previously, just add it directly here. Next is the database configuration, which mainly involves updating the characters and world databases. We mentioned the roles of these two databases in the previous article: characters mainly stores various game characters, and world mainly stores NPCs, bosses, and various items. /home/wow/TrinityCore/TrinityCore-TDB335.24011/sql/Bots 和 Apply the SQL files in it to the corresponding databases (files starting with characters_ world_ 和 correspond to the characters
world
1_world_bot_appearance.sql
2_world_bot_extras.sql
3_world_bots.sql
4_world_generate_bot_equips.sql
5_world_botgiver.sql
characters_bots.sql
The files are as follows:
mysql -u root -p world < /root/1_world_bot_appearance.sql
mysql -u root -p world < /root/2_world_bot_extras.sql
mysql -u root -p world < /root/3_world_bots.sql
mysql -u root -p world < /root/4_world_generate_bot_equips.sql
mysql -u root -p world < /root/5_world_botgiver.sql
mysql -u root -p characters < /root/characters_bots.sql
2_world_bot_extras.sql
3_world_bots.sql
merge_sqls_auth_unix.sh
merge_sqls_characters_unix.sh
merge_sqls_world_unix.sh
5_world_botgiver.sql
characters_bots.sql
cd /home/wow/TrinityCore/TrinityCore-TDB335.24011/sql/Bots
chmod +x merge_sqls_auth_unix.sh
chmod +x merge_sqls_characters_unix.sh
chmod +x merge_sqls_world_unix.sh
mysql -u root -p world < /root/1_world_bot_appearance.sql
cd /home/wow/TrinityCore/TrinityCore-TDB335.24011/sql/Bots
./merge_sqls_auth_unix.sh
./merge_sqls_characters_unix.sh
./merge_sqls_world_unix.sh
After the execution is finished, use ls to check:

You will get 3 files: ALL_auth.sql, All_characters.sql, ALL_world.sql
Copy these 3 files to the /root directory of the device where the database is located, and then run the following commands:
mysql -u root -p auth < /root/ALL_auth.sql
mysql -u root -p characters < /root/ALL_characters.sql
mysql -u root -p world < /root/ALL_world.sql
The processing of this database is also completed. Finally, just restart authserver and worldserver:
/home/wow/server3.3.5/bin/authserver
/home/wow/server3.3.5/bin/worldserver
/home/wow/server3.3.5/bin/worldserverTrinitycore Series Version 3.3.5 npcbot Common Commands。
Chrome 79.0.3945.79
Is there a corresponding patch that can be shared? The newly downloaded compilation has errors.
That patch is updated frequently. When I published this article, the bot's right-click menu wasn't even localized, though the older version was. When I have time, I will recompile it with the new patch and handle the issue. If you can't wait, you can also search online directly for the solution to that error. Actually, I wanted to save the patch at that time, but later I saw that even the right-click menu wasn't localized, so I lost interest in saving it and wanted to wait for the localized version.