66666666666666666666
請問匯入sql 出現錯誤?? 怎麼解決
Query l1j_351_demo start
1071 - Specified key was too long; max key length is 767 bytes
/*
MySQL Data Transfer
Source Host: localhost
Source Database: l1j_351_demo
Target Host: localhost
Target Database: l1j_351_demo
Date: 2025/8/23 �W�� 03:12:39
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for accounts
-- ----------------------------
CREATE TABLE `accounts` (
`login` varchar(50) NOT NULL DEFAULT '',
`password` varchar(50) DEFAULT NULL,
`lastactive` datetime DEFAULT NULL,
`access_level` int(11) DEFAULT NULL,
`ip` varchar(20) NOT NULL DEFAULT '',
`host` varchar(255) DEFAULT NULL,
`banned` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否連線服務器',
`character_slot` int(2) unsigned NOT NULL DEFAULT '0',
`spw` varchar(12) NOT NULL,
`warehouse` int(10) NOT NULL DEFAULT '-256',
`server_no` int(10) NOT NULL DEFAULT '0' COMMENT '登入服務器編號',
`RoBotFriendly` int(5) NOT NULL DEFAULT '0' COMMENT 'RoBot友好度',
PRIMARY KEY (`login`),
KEY `login` (`login`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MyISAM free: 3072 kB';
-- ----------------------------
-- Table structure for armor
-- ----------------------------
CREATE TABLE `armor` (
`item_id` int(5) NOT NULL DEFAULT '0',
`name` varchar(70) DEFAULT 'NULL',
`classname` varchar(45) NOT NULL DEFAULT '0',
`name_id` varchar(45) NOT NULL DEFAULT '',
`type` varchar(15) NOT NULL DEFAULT '',
`material` varchar(45) NOT NULL DEFAULT '',
`weight` int(7) unsigned NOT NULL DEFAULT '0',
`invgfx` int(5) unsigned NOT NULL DEFAULT '0',
`grdgfx` int(5) unsigned NOT NULL DEFAULT '0',
`itemdesc_id` int(10) NOT NULL DEFAULT '0',
`ac` int(3) NOT NULL DEFAULT '0',
`safenchant` int(2) NOT NULL DEFAULT '0',
`use_royal` int(2) unsigned NOT NULL DEFAULT '0',
`use_knight` int(2) unsigned NOT NULL DEFAULT '0',
`use_mage` int(2) unsigned NOT NULL DEFAULT '0',
`use_elf` int(2) unsigned NOT NULL DEFAULT '0',
`use_darkelf` int(2) unsigned NOT NULL DEFAULT '0',
`use_dragonknight` int(2) unsigned NOT NULL DEFAULT '0',
`use_illusionist` int(2) unsigned NOT NULL DEFAULT '0',
`add_str` int(2) NOT NULL DEFAULT '0',
`add_con` int(2) NOT NULL DEFAULT '0',
`add_dex` int(2) NOT NULL DEFAULT '0',
`add_int` int(2) NOT NULL DEFAULT '0',
`add_wis` int(2) NOT NULL DEFAULT '0',
`add_cha` int(2) NOT NULL DEFAULT '0',
`add_hp` int(10) NOT NULL DEFAULT '0',
`add_mp` int(10) NOT NULL DEFAULT '0',
`add_hpr` int(10) NOT NULL DEFAULT '0',
`add_mpr` int(10) NOT NULL DEFAULT '0',
`add_sp` int(10) NOT NULL DEFAULT '0',
`min_lvl` int(4) unsigned NOT NULL DEFAULT '0',
`max_lvl` int(4) unsigned NOT NULL DEFAULT '0',
`m_def` int(2) NOT NULL DEFAULT '0',
`haste_item` int(2) unsigned NOT NULL DEFAULT '0',
`damage_reduction` int(10) NOT NULL DEFAULT '0',
`weight_reduction` int(10) unsigned NOT NULL DEFAULT '0',
`hit_modifier` int(10) NOT NULL DEFAULT '0',
`dmg_modifier` int(10) NOT NULL DEFAULT '0',
`bow_hit_modifier` int(10) NOT NULL DEFAULT '0',
`bow_dmg_modifier` int(10) NOT NULL DEFAULT '0',
`bless` int(2) unsigned NOT NULL DEFAULT '1',
`trade` int(2) unsigned NOT NULL DEFAULT '0',
`cant_delete` int(2) unsigned NOT NULL DEFAULT '0',
`max_use_time` int(10) unsigned NOT NULL DEFAULT '0',
`defense_water` int(2) NOT NULL DEFAULT '0',
`defense_wind` int(2) NOT NULL DEFAULT '0',
`defense_fire` int(2) NOT NULL DEFAULT '0',
`defense_earth` int(2) NOT NULL DEFAULT '0',
`regist_stun` int(2) NOT NULL DEFAULT '0',
`regist_stone` int(2) NOT NULL DEFAULT '0',
`regist_sleep` int(2) NOT NULL DEFAULT '0',
`regist_freeze` int(2) NOT NULL DEFAULT '0',
`regist_sustain` int(2) NOT NULL DEFAULT '0',
`regist_blind` int(2) NOT NULL DEFAULT '0',
`greater` int(2) NOT NULL DEFAULT '3',
`DeathDrop` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '死亡是否會噴出去(0: 不會噴、1:會噴(預設))',
PRIMARY KEY (`item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for armor_set
-- ----------------------------
CREATE TABLE `armor_set` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`note` varchar(45) DEFAULT NULL,
`sets` varchar(1000) NO
Process terminated
AWei 發表於 2025-9-6 21:39
請問匯入sql 出現錯誤?? 怎麼解決
Query l1j_351_demo start
你原本安裝的mysql應該是舊版5.6版下的,移除重新安裝三寶裡面的版本就可以了
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
谢谢分享,
謝謝樓主的分享
看看能不能用,谢谢分享
:D:'(
:$:dizzy:
感謝分享
????????
---“——???!~“““”~~
謝謝樓主的分享
路過看看
本帖最後由 ea67213 於 2025-9-7 10:55 編輯
感謝分享
66666666666
假人設置主動攻擊 好像沒有效
總得來說很特別 可惜是展示版 需遠端驗證 有需求的可以參考
繞圈圈 發表於 2025-9-7 11:42
假人設置主動攻擊 好像沒有效
總得來說很特別 可惜是展示版 需遠端驗證 有需求的可以參考
主動攻擊有兩個條件
一個是 資料表 robots的IsInitiativeAttack 要設定1
另一個是 robot.properties 設定檔
# Bot機器人幾%機率主動攻擊玩家,預設2%
# 資料表 robot IsInitiativeAttack 欄位須為 1 才會主動攻擊
RobotInitiativeAttackChance = 2
demo版的資料預設都是會攻擊的
你可以開服後,上線注意看,只要bot開始拉穿雲,就表示開始打架,也就表示會攻擊一般正常玩家
也可以把 RobotInitiativeAttackChance 機率直接設定100,這樣可以更快看到效果
繞圈圈 發表於 2025-9-7 11:42
假人設置主動攻擊 好像沒有效
總得來說很特別 可惜是展示版 需遠端驗證 有需求的可以參考
順帶一提,Bot不打GM
lookup:):):)
opop9453 發表於 2025-9-6 22:26
你原本安裝的mysql應該是舊版5.6版下的,移除重新安裝三寶裡面的版本就可以了
...
謝謝回復!!
我原本的版本是6.0的
之前有架381用的!!
如果我換三寶裡面的 381會不能開嗎??
想同時開兩個看看~~
AWei 發表於 2025-9-7 15:14
謝謝回復!!
我原本的版本是6.0的
三寶裡面的也是6.0,你重裝一下mysql看看。
另外,同一台主機開多服多版本是沒有問題的,只要注意port不要相同就可以了