魔兽世界Azerothcore npcbots

2026-10-09 · WOW部署

1、前置信息(登录凭据)

  • Github 账号:你的邮箱 / 你设置的密码
  • Vpn 服务器是阿里云的,账号密码:root / 你设置的密码
  • 宝塔账号:你的手机号 / 你设置的密码
  • 服务器:ubuntu / 你设置的密码

Vpn 连接信息:

  • Your Server IP : 你的服务器IP
  • Your Server Port : 11186
  • Your Password : 你设置的密码
  • Your Encryption Method: aes-256-cfb

面板账户登录信息:

因默认启用自签证书https加密访问,浏览器将提示不安全,点击【高级】-【继续访问】或【接受风险并继续】访问。 教程:https://www.bt.cn/bbs/thread-117246-1-1.html

记得安装 ubuntu 系统之后,就安装宝塔面板,然后一键安装除了数据库以外的应用。 安装 ubuntu 系统时,如果人在大陆,替换阿里镜像源(密码 你设置的密码)。

2、数据库&依赖安装(不在国外的话就要修改镜像源)

sudo apt update && sudo apt full-upgrade -y && sudo apt install git cmake make gcc g++ clang libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev

3、基础软件安装:

sudo apt update && sudo apt install git curl unzip

4、下载服务器源代码:

git clone https://github.com/trickerer/AzerothCore-wotlk-with-NPCBots.git

cd AzerothCore-wotlk-with-NPCBots

5、升级一下数据库:

sudo apt-get update

sudo apt-get install mysql-server

sudo systemctl enable mysql

6、安装构建服务器所需的依赖:

./acore.sh install-deps

7、开始构建服务端软件:

./acore.sh compiler all

8、设置数据库-创建服务端专用的帐户

sudo mysql -u root
DROP USER IF EXISTS 'acore'@'localhost';
DROP USER IF EXISTS 'acore'@'127.0.0.1';
CREATE USER 'acore'@'localhost' IDENTIFIED BY 'acore';
CREATE USER 'acore'@'127.0.0.1' IDENTIFIED BY 'acore';
GRANT ALL PRIVILEGES ON * . * TO 'acore'@'localhost' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON * . * TO 'acore'@'127.0.0.1' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;

9、开启数据库远程访问权限

# Mysql
mysql -u root -p

# Mariadb
/usr/bin/mariadb -p
CREATE USER 'acore'@'%' IDENTIFIED BY 'acore';
GRANT ALL PRIVILEGES ON *.* TO 'acore'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;

然后修改数据库配置文件:

sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

修改 bind-address=0.0.0.0 保存后:

systemctl restart mysql

10、下载客户端资料:

./acore.sh client-data

这一步我是用了直接已经下载好的 data.zip 文件,放入 /home/AzerothCore-wotlk-with-NPCBots-npcbots_3.3.5/env/dist/bin 目录下然后解压,解压完成 data.zip 就可以删除了。

11、复制服务器默认配置文件

cp env/dist/etc/authserver.conf.dist env/dist/etc/authserver.conf

cp env/dist/etc/worldserver.conf.dist env/dist/etc/worldserver.conf

修改 worldserver.conf 和 authserver.conf 里面的数据库链接信息,密码改成第 8 步设置的密码:

# LoginDatabaseInfo 关键字,修改第二个 acore 为 你设置的密码
vi env/dist/etc/authserver.conf

# LoginDatabaseInfo、WorldDatabaseInfo、CharacterDatabaseInfo 三个关键字,修改第二个 acore 为 你设置的密码
vi env/dist/etc/worldserver.conf

12、修改机器人上限

vim env/dist/etc/worldserver.conf   # 将 bot 改成 NpcBot.MaxBots = 39

13、首次运行世界服务

./acore.sh run-worldserver

结束后创建 gm 账号:

AC> account create admin 你设置的密码
AC> account set gmlevel admin 3 -1

14、服务端开放远程访问权限

mysql -u root
use acore_auth;
UPDATE realmlist SET address = '服务器ip' WHERE id = 1;
select *from acore_auth.motd limit 1;--这个是改进入游戏的提示语的
select *from acore_auth.realmlist
exit;

用远程工具比如 navicat 连接数据库改也行。

15、运行所有服务

./acore.sh run-worldserver

./acore.sh run-authserver

16、创建帐号(世界服务中输入命令)

account create 帐号 密码
account set gmlevel 帐号 3 -1
修改密码 account set password 帐号 密码 密码2
account set password admin 你设置的密码 你设置的密码

现在的游戏账号密码:你的账号 / 你设置的密码

17、其它

NPCbot 插件

https://github.com/NetherstormX/NetherBot

需要添加 sql:在 /home/ubuntu/AzerothCore-wotlk-with-NPCBots-npcbots_3.3.5/data/sql 有个 bots 的 sql。

添加机器人

npcbot spawn

登陆器

链接: https://pan.baidu.com/s/1bXnGtWdHukHsBJ6rRgtN7g?pwd=g9x5 提取码: g9x5

客户端连不上服务器时查端口

不只是云服务器的端口(云服务器端口可以通过安全组添加),还有系统本身有没有开放端口:

# 查看系统防火墙状态
sudo ufw status

# 添加端口
sudo ufw allow 3306

# 查看端口被什么服务占用(可以杀掉服务)
netstat -tlpn | grep 8085

sudo lsof -i -P -n | grep LISTEN

# 查某个端口的服务是什么
sudo lsof -i :3724

# 结束服务
sudo kill -9 PID

魔兽世界要添加的端口有 8085、3724、1119。

添加 eluna 功能

# 1. 进入代码的 modules 目录(/azerothcore-wotlk 就是源码存放的目录,根据自己的下载位置调整)
cd /azerothcore-wotlk/modules

# 2. 克隆 mod 代码,以 mod-eluna 为例,其他 mod 也是类似的操作
git clone https://github.com/azerothcore/mod-eluna.git

# 3. 进入 build 目录
cd /azerothcore-wotlk

# 4. 重新编译安装
./acore.sh compiler all
  • Eluna 的配置文件地址:/home/AzerothCore-wotlk-with-NPCBots-npcbots_3.3.5/env/dist/etc/modules
  • Eluna 脚本的存放位置:/home/AzerothCore-wotlk-with-NPCBots-npcbots_3.3.5/env/dist/bin/lua_scripts
  • 新添加的 lua 脚本,可以直接在 worldserver 的启动界面,输入 .reload lua

去掉进入游戏的提示

  • 去除 This server runs on AzerothCore www.azerothcore.org 提示:MotdMgr.cpp 文件把 MotdMgr::SetMotd(motd); 改成 MotdMgr::SetMotd(motd='');
  • 另外一个进入游戏的提示在表里改:select * from acore_auth.motd

调整副本等级与专业数量

update dungeon_access_template set max_level=min_level+5 where min_level<76;

Worldserver.conf 文件:MaxPrimaryTradeSkill = 4

添加注册页面

cd /www/wwwroot

git clone https://github.com/masterking32/WoWSimpleRegistration

添加幻化

git clone https://ghproxy.com/https://github.com/najoast/mod-transmog.git

启动器下载

链接:https://pan.baidu.com/s/1Xe9DVcad6VjqU6FCF2Ombg?pwd=2bri

提取码:2bri

GM 命令

.lookup quest 任务名        # 查看任务id
.quest complete 任务id
.modify money 9999999
.gm on                      # 无敌

相关文章

← 返回教程列表

评论正在加载……若这句话一直不消失,说明评论服务暂时连不上,过会儿刷新即可。