仙境傳說RO是一款備受喜愛的游戲,很多玩家都想要搭建自己的RO**來和朋友一起玩耍。但是,搭建RO**需要一定的技術知識和操作經驗。本文將介紹如何輕松搭建RO**,讓你和朋友一起暢玩RO。
一、仙境傳說RO模擬器配置前置條件
在開始搭建RO**之前,我們需要先準備以下工具和環境:
1、RO模擬器:我們可以選擇官方提供的RO模擬器或者第三方RO模擬器,本文以官方提供的RO模擬器為例。
2、MySQL數據庫:RO**需要使用MySQL數據庫來存儲數據,因此我們需要先安裝MySQL數據庫。
3、Navicat for MySQL:Navicat for MySQL是一款數據庫管理工具,我們可以使用它來管理MySQL數據庫。
4、WinRAR:WinRAR是一款壓縮軟件,我們需要使用它來解壓RO模擬器。
二、安裝MySQL數據庫
1、下載MySQL數據庫安裝包,雙擊運行安裝包。
2、按照安裝向導提示完成安裝,設置MySQL數據庫的root密碼。
3、啟動MySQL數據庫服務。
三、下載RO模擬器
1、打開官方網站,下載RO模擬器安裝包。
2、使用WinRAR解壓RO模擬器安裝包。
3、將解壓后的文件夾復制到你想要安裝RO**的目錄下。
四、配置RO模擬器
1、打開解壓后的RO模擬器文件夾,找到conf文件夾。
2、打開conf文件夾下的login.conf文件,修改以下內容:
//登錄端口號
login_port: 6900
//登錄服務器IP地址
login_ip: 127.0.0.1
//登錄服務器名稱
server_name: MyROServer
//登錄服務器公告
server_note: Welcome to MyROServer!
3、保存修改后的login.conf文件。
4、打開conf文件夾下的char_athena.conf文件,修改以下內容:
//角色端口號
char_port: 6121
//角色服務器IP地址
char_ip: 127.0.0.1
5、保存修改后的char_athena.conf文件。
6、打開conf文件夾下的map_athena.conf文件,修改以下內容:
//地圖端口號
map_port: 5121
//地圖服務器IP地址
map_ip: 127.0.0.1
7、保存修改后的map_athena.conf文件。
五、創建數據庫
1、打開Navicat for MySQL,連接到MySQL數據庫。
2、在Navicat for MySQL中創建一個新的數據庫,命名為myro。
3、在myro數據庫中創建以下表:
//賬號表
CREATE TABLE `login` (
`account_id` int(11) NOT NULL AUTO_INCREMENT,
`userid` char(24) NOT NULL DEFAULT '',
`user_pass` char(32) NOT NULL DEFAULT '',
`sex` int(11) NOT NULL DEFAULT '0',
`email` char(40) NOT NULL DEFAULT '',
`group_id` int(11) NOT NULL DEFAULT '0',
`state` int(11) NOT NULL DEFAULT '0',
`unban_time` int(11) NOT NULL DEFAULT '0',
`expiration_time` int(11) NOT NULL DEFAULT '0',
`logincount` int(11) NOT NULL DEFAULT '0',
`lastlogin` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`last_ip` char(15) NOT NULL DEFAULT '',
`birthdate` char(10) NOT NULL DEFAULT '',
`character_slots` int(11) NOT NULL DEFAULT '0',
`pincode` char(4) NOT NULL DEFAULT '',
`pincode_change` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`account_id`),
UNIQUE KEY `userid` (`userid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
//角色表
CREATE TABLE `char` (
`char_id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL DEFAULT '0',
`char_num` int(11) NOT NULL DEFAULT '0',
`name` char(30) NOT NULL DEFAULT '',
`class` int(11) NOT NULL DEFAULT '0',
`base_level` int(11) NOT NULL DEFAULT '1',
`job_level` int(11) NOT NULL DEFAULT '1',
`base_exp` int(11) NOT NULL DEFAULT '0',
`job_exp` int(11) NOT NULL DEFAULT '0',
`zeny` int(11) NOT NULL DEFAULT '0',
`str` int(11) NOT NULL DEFAULT '1',
`agi` int(11) NOT NULL DEFAULT '1',
`vit` int(11) NOT NULL DEFAULT '1',
`int` int(11) NOT NULL DEFAULT '1',
`dex` int(11) NOT NULL DEFAULT '1',
`luk` int(11) NOT NULL DEFAULT '1',
`status_point` int(11) NOT NULL DEFAULT '0',
`skill_point` int(11) NOT NULL DEFAULT '0',
`hp` int(11) NOT NULL DEFAULT '40',
`max_hp` int(11) NOT NULL DEFAULT '40',
`sp` int(11) NOT NULL DEFAULT '4',
`max_sp` int(11) NOT NULL DEFAULT '4',
`party_id` int(11) NOT NULL DEFAULT '-1',
`guild_id` int(11) NOT NULL DEFAULT '-1',
`pet_id` int(11) NOT NULL DEFAULT '-1',
`hair` int(11) NOT NULL DEFAULT '0',
`hair_color` int(11) NOT NULL DEFAULT '0',
`clothes_color` int(11) NOT NULL DEFAULT '0',
`weapon` int(11) NOT NULL DEFAULT '0',
`shield` int(11) NOT NULL DEFAULT '0',
`head_top` int(11) NOT NULL DEFAULT '0',
`head_mid` int(11) NOT NULL DEFAULT '0',
`head_bottom` int(11) NOT NULL DEFAULT '0',
`last_map` char(11) NOT NULL DEFAULT 'prontera',
`last_x` int(11) NOT NULL DEFAULT '156',
`last_y` int(11) NOT NULL DEFAULT '191',
`save_map` char(11) NOT NULL DEFAULT 'prontera',
`save_x` int(11) NOT NULL DEFAULT '156',
`save_y` int(11) NOT NULL DEFAULT '191',
PRIMARY KEY (`char_id`),
UNIQUE KEY `account_id` (`account_id`,`char_num`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
//物品表
CREATE TABLE `items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`char_id` int(11) NOT NULL DEFAULT '0',
`nameid` int(11) NOT NULL DEFAULT '0',
`amount` int(11) NOT NULL DEFAULT '1',
`equip` int(11) NOT NULL DEFAULT '0',

`identify` int(11) NOT NULL DEFAULT '0',
`refine` int(11) NOT NULL DEFAULT '0',
`attribute` int(11) NOT NULL DEFAULT '0',
`card0` int(11) NOT NULL DEFAULT '0',
`card1` int(11) NOT NULL DEFAULT '0',
`card2` int(11) NOT NULL DEFAULT '0',
`card3` int(11) NOT NULL DEFAULT '0',
`option_id` int(11) NOT NULL DEFAULT '0',
`option_val` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `char_id` (`char_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
//技能表
CREATE TABLE `skills` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`char_id` int(11) NOT NULL DEFAULT '0',
`skill_id` int(11) NOT NULL DEFAULT '0',
`skill_lv` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `char_id` (`char_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
//任務表
CREATE TABLE `quest` (
`char_id` int(11) NOT NULL DEFAULT '0',
`quest_id` int(11) NOT NULL DEFAULT '0',
`quest_value1`
