Герой
Регистрация: 23.11.2007
Адрес: Украина
Сообщений: 928
Отблагодарили 175 раз(а)
|
Ответ: SQL - Вопросы и ответы
Вот пример таблиц Ребилиона
Код:
INSERT INTO `armor` (`item_id`,`name`,`additional_name`,`bodypart`,`crystallizable`,`armor_type`,`weight`,`material`,`crystal_type`,`avoid_modify`,`durability`,`p_def`,`m_def`,`mp_bonus`,`price`,`crystal_count`,`sellable`,`icon`,`dropable`,`destroyable`,`tradeable`,`skill_id`,`skill_level`) VALUES
('21', 'Shirt', '', 'chest', 'false', 'light', '4830', 'cloth', 'none', '0', '-1', '36', '0', '0', '112', '0', 'true', 'armor_t02_u_i00', '1', '1', '1', '0', '0'),
вот под такую структуру нужно подогнать вот ети вещи
Код:
INSERT INTO `armor` VALUES ('96000', 'Epic Dark Knight Plate Armor', 'fullarmor', 'true', 'heavy', '2800', 'steel', 's', '0', '-1', '500', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96001', 'Epic Dark Knight Gloves {Heavy}', 'gloves', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96002', 'Epic Dark Knight Boots {Heavy}', 'feet', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96003', 'Epic Dark Knight Helm {Heavy}', 'head', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96004', 'Epic Dark Knight Leather Armor {Light}', 'fullarmor', 'true', 'light', '2800', 'steel', 's', '0', '-1', '500', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96005', 'Epic Dark Knight Gloves {Light}', 'gloves', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96006', 'Epic Dark Knight Boots {Light}', 'feet', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96007', 'Epic Dark Knight Helmet {Light}', 'head', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96008', 'Epic Dark Knight Tunic {Robe}', 'chest', 'true', 'magic', '1400', 'steel', 's', '0', '-1', '250', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96009', 'Epic Dark Knight Stockings {Robe}', 'legs', 'true', 'magic', '1400', 'steel', 's', '0', '-1', '250', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96010', 'Epic Dark Knight Gloves {Robe}', 'gloves', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96011', 'Epic Dark Knight Boots {Robe}', 'feet', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
INSERT INTO `armor` VALUES ('96012', 'Epic Dark Knight Hat {Robe}', 'head', 'true', 'none', '300', 'steel', 's', '0', '-1', '90', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
Вот ошыбка если заливать Епик броню в базу Ребилиона
Код:
[Err] 1264 - Out of range value for column 'item_id' at row 1
[Err] INSERT INTO `armor` VALUES ('96000', 'Epic Dark Knight Plate Armor', 'fullarmor', 'true', 'heavy', '2800', 'steel', 's', '0', '-1', '500', '0', '0', '48800000', '1487', 'true', 'true', 'true', 'true', '', '-1', '-1', '-1');
[Msg] Finished - Unsuccessfully
--------------------------------------------------
|