安装编译环境

Debian :

apt-get install g++ gcc make cmake binutils-dev mercurial openssl
libssl-dev zlib1g-dev libmysqlclient15-dev patch build-essential
libreadline6-dev libbz2-dev bzip2 unzip libace-dev libbz2-dev
libiberty-dev libncurses-dev git

编译

adduser oregon
su - oregon

mkdir data && mkdir log && mkdir src && cd src

git clone https://github.com/OregonCore/OregonCore.git
wget -c https://github.com/OregonCore/OregonCore/releases/download/BaseDatabase/OregonDatabase.zip

cd OregonCore
mkdir build && cd build
cmake ../ -DPREFIX=$HOME -DTOOLS=1
make
make install

安装LNMP

导入数据库

cd ~/src/OregonCore/sql
mysql -uroot -prootmysql < create_mysql.sql

mysql -uoregon -poregon characters < characters.sql
mysql -uoregon -poregon realmd < realmd.sql
mysql -uoregon -poregon world < world.sql

cd ~/src
mysql -uoregon -poregon world < OregonDatabase.sql

提取data文件

map_extractor
vmap_extractor

mkdir vmaps
vmap_assembler Buildings vmaps

mkdir mmaps
movements_extractor

##MOVE dbc,maps,vmaps,mmaps TO ~/data

配置/启动服务器

cd ~/etc

cp oregoncore.conf.dist oregoncore.conf
cp oregonrealm.conf.dist oregonrealm.conf

oregon-core
oregon-realm

建立账号/游戏版本/GM

account create [username] [password]
account set addon [username] 1
account set gmlevel [username] 3

*nix免编译安装

1.拷贝oregon.tar解压
2.安装编译环境
3.cd ~/src/OregonCore/build && make install


12947 亚历克斯的勇气戒指 1000防御等级
18970 致命测试戒指2 法术暴击+50%