TrinityCore Series: Adding npcbots to version 3.3.5 (24011)
本文最后更新于 171 天前,其中的信息可能已经有所发展或是发生改变,如有失效可到评论区留言。
Article Abstract
To address the need for NPC bots in setting up a TrinityCore 3.3.5 World of Warcraft server, the NPCBot solution is integrated to enable features such as dungeon grouping and quest assistance. It requires obtaining the compatible patch file from GitHub, applying it to the source code, and then recompiling and building. Meanwhile, NPCBOT parameters need to be configured in worldserver.conf, and the characters and world databases must be updated via batch SQL scripts. This solution resolves the lack of automated NPC support in the original version, extending the server's interaction capabilities for scenarios like training and dungeons, and can be combined with PlayBot in the future to achieve a more complete NPC behavior system.
Qwen3-14B · 2026-06-18

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

image.png

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

image.png

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

image.png

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

make -j $(nproc) install

cd /home/wow/server3.3.5/etc/
vim worldserver.conf.dist

cd /home/wow/server3.3.5/etc/

image.png

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:

image.png

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。

📌 Content Structure Prompt:
This content belongs to the "Blog Knowledge Map" part, you can view the complete content path from here: Blog Knowledge Map 。
View Related Categories · 3 Matches
📎 Related Articles
Share this article
The blog content is original, please indicate the source when reposting! The RSS address of the blog is:https://blog.tangwudi.com/feed, welcome to subscribe; if needed, you can join theTelegram Groupto discuss questions together.

Comments

  1. xx
    Windows Note: For common commands of npcbot, please refer to:
    2 years ago
    2024-6-14 13:16:46

    Chrome 79.0.3945.79

    • Owner
      xx
      iPhone Chrome 125.0.6422.80
      2 years ago
      2024-6-14 13:24:39

      Is there a corresponding patch that can be shared? The newly downloaded compilation has errors.

    • Owner
      xx
      Macintosh Chrome 126.0.0.0
      2 years ago
      2024-6-30 14:46:45

      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.

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗ
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Kaomoji
Emoji
Little Dinosaur
Flower!
Previous
Next
       

👋 Welcome to “Wudi's Personal Blog”

Here, long-term exploration is mainly carried out around the following directions:

🧱 Personal Digital Infrastructure and Blog System Construction
☁️ Cloudflare and Network Architecture Practice
🧠 AI and Knowledge System Exploration
🛡️ Network Security and Access Optimization
🎵 Music and Sound Cognition
👁️ Cognitive Perspectives and Worldviews