Сейчас 18.05.2024, 07:33



  • Страница 1 из 1
  • 1
Форум » Lineage II » Раздел для новичков » Самые нужные SQL запросы в Lineage 2
Самые нужные SQL запросы в Lineage 2
attackДата: Суббота, 23.04.2011, 19:28 | Сообщение # 1
Сержант
Группа: Администраторы
Сообщений: 28
Награды: 0
Репутация: 1
Статус: Offline
Описание идёт сверху запроса.
Выкладывать только запросы, не флудить!
Итемы/броня/оружие весит 0
Code
UPDATE `etcitem` SET `weight`=0 WHERE (SELECT item_id);  
  UPDATE `armor` SET `weight`=0 WHERE (SELECT item_id);  
  UPDATE `weapon` SET `weight`=0 WHERE (SELECT item_id);

Дроп адены 100%
Code
UPDATE `droplist` SET `chance`='1000000' WHERE `itemId`='57';

Продажа всего по 0 адены (в магазин)

Code

UPDATE `armor` SET price=0 where price > 1;  
  UPDATE `etcitem` SET price=0 where price > 1;  
  UPDATE `weapon` SET price=0 where price > 1;

У РБ будет 5к хп

Code

UPDATE `npc` SET `hp`='5000000' WHERE (SELECT id) AND npc.type='L2Raidboss';

Удалить всех мобов ниже 40 лвла

Code

DELETE spawnlist, npc FROM spawnlist, npc WHERE spawnlist.npc_templateid=npc.idTemplate AND npc.level<40 AND npc.type='L2Monster';

Удалить все материалы и рецепты нах из БД

Code

DELETE FROM droplist WHERE itemid IN (SELECT item_id FROM etcitem WHERE item_type= 'material' OR item_type= 'recipe' );

Назначить шанс выпадения рецептов

Code

UPDATE droplist SET chance='1000000' WHERE id IN (SELECT item_id FROM etcitem WHERE type='recipe');

Удалить все аккаунты и персонажей, которые не соизволили появиться в игре в течении 3 месяцев

Code

DELETE FROM characters WHERE lastAccess < 466560000;             
  DELETE FROM accounts WHERE lastactive < 466560000;

Замутить во всех мобов дроп колов
Code
insert into droplist (mobId, itemid, chance, min, max,category) select id, 4037, 1000000, 1, 1, 52 from npc where type='L2Monster';

При создании персонажа, он будет в топ НГ
Code
REPLACE INTO char_templates VALUES (0, 'Human Fighter', 0, 40, 43, 30, 21, 11, 25, 4, 72, 3, 47, 330, 213, 33, 44, 33, 115, 81900, -71338, 258271, -3104, 0, '1.1', '1.188', 9, 23, '1.1', '1.188', 8, '23.5', 34, 26, 68, 4222, 5588);  
  REPLACE INTO char_templates VALUES (18, 'Elf Fighter', 1, 36, 36, 35, 23, 14, 26, 4, 72, 3, 47, 345, 249, 36, 46, 36, 125, 73000, 45978, 41196, -3440, 0, '1.15', '1.242', '7.5', 24, '1.15', '1.242', '7.5', 23, 34, 26, 68, 4222, 5588);  
  REPLACE INTO char_templates VALUES (31, 'DE Fighter', 2, 41, 32, 34, 25, 12, 26, 4, 72, 3, 47, 342, 226, 35, 45, 35, 122, 69000, 28377, 10916, -4224, 0, '1.14', '1.2312', '7.5', 24, '1.14', '1.2312', 7, '23.5', 34, 26, 68, 4222, 5588);  
  REPLACE INTO char_templates VALUES (44,'Orc Fighter', 3, 40, 47, 26, 18, 12, 27, 4, 72, 2, 48, 318, 226, 31, 42, 31, 117, 87000, -58192, -113408, -650, 0, '1.06', '1.144800', 11.0, 28.0 ,1.06, '1.144800', 7.0, 27.0, 34, 26, 257, 0, 5588);  
  REPLACE INTO char_templates VALUES (53, 'Dwarf Fighter', 4, 39, 45, 29, 20, 10, 27, 4, 72, 3, 48, 327, 203, 33, 43, 33, 115, 83000, 108512, -174026, -400, 1, '1.09', '1.487196', 9, 18, '1.09', '1.487196', 5, 19, 34, 26, 87, 4222, 5588);  
  REPLACE INTO char_templates VALUES (10, 'Human Mage', 0, 22, 27, 21, 41, 20, 39, 2, 48, 7, 54, 303, 333, 28, 40, 28, 120, 62500, -90890, 248027, -3570, 0, '1.01', '0.87264', '7.5', '22.8', '1.01', '0.87264', '6.5', '22.5', 1105, 1102, 177, 0, 5588);  
  REPLACE INTO char_templates VALUES (25, 'Elf Mage', 1, 21, 25, 24, 37, 23, 40, 2, 48, 6, 54, 312, 386, 30, 41, 30, 122, 62400, 46182, 41198, -3440, 0, '1.04', '0.89856', '7.5', 24, '1.04', '0.89856', '7.5', 23, 1105, 1102, 177, 0, 5588);  
  REPLACE INTO char_templates VALUES (38, 'DE Mage', 2, 23, 24, 23, 44, 19, 37, 2, 48, 7, 53, 309, 316, 29, 41, 29, 122, 61000, 28295, 11063, -4224, 0, '1.14', '1.2312', '7.5', 24, '1.03', '0.88992', 7, '23.5', 1105, 1102, 177, 0, 5588);  
  REPLACE INTO char_templates VALUES (49, 'Orc Mage', 3, 27, 31, 24, 31, 15, 42, 2, 48, 4, 56, 312, 265, 30, 41, 30, 121, 68000, -56682, -113730, -690, 0, '1.04', '0.89856', 7, '27.5', '1.04', '0.89856', 8, '25.5', 1105, 1102, 257, 0, 5588);

Добавить бижу в РБ, если вы удалили её
Code
INSERT INTO droplist VALUES ('29001', '6660', '1', '1', '12', '300000');  
  INSERT INTO droplist VALUES ('29006', '6662', '1', '1', '8', '300000');  
  INSERT INTO droplist VALUES ('29014', '6661', '1', '1', '9', '300000');  
  INSERT INTO droplist VALUES ('29022', '6659', '1', '1', '13', '1000000');  
  INSERT INTO droplist VALUES ('29020', '6658', '1', '1', '2', '1000000');  
  INSERT INTO droplist VALUES ('29019', '6656', '1', '1', '31', '1000000');  
  INSERT INTO droplist VALUES ('29028', '6657', '1', '1', '34', '1000000');

Добавить гвардам 50% П дефа, М дефа, П атаки и ХП
Code
UPDATE npc SET pdef = pdef * 1.5 WHERE type = 'L2Guard';  
  UPDATE npc SET hp = hp * 1.5 WHERE type = 'L2Guard';  
  UPDATE npc SET patk = patk * 1.5 WHERE type = 'L2Guard';  
  UPDATE npc SET mdef = mdef * 1.5 WHERE type = 'L2Guard';

Понизить у РБ П деф, М деф и ХП на 40%
Code
UPDATE npc SET pdef = pdef * 0.6 WHERE type = 'L2RaidBoss';  
  UPDATE npc SET hp = hp * 0.6 WHERE type = 'L2RaidBoss';  
  UPDATE npc SET mdef = mdef * 0.6 WHERE type = 'L2RaidBoss';

Увеличить время респауна мобов в 3 раза
Code
UPDATE `spawnlist` SET `respawnDelay` = `respawn_min_delay`*3;           
  UPDATE `spawnlist` SET `respawnDelay` = `respawn_max_delay`*3;           
  UPDATE `spawnlist` SET `respawnDelay` = `respawnDelay`*3;           
  UPDATE `spawnlist` SET `respawnDelay` = `respawnDelay`*3;

Установить время респауна РБ от 1 часа до двух
Code
UPDATE `raidboss_spawnlist` SET `respawn_min_delay` = '3600';           
  UPDATE `raidboss_spawnlist` SET `respawn_max_delay` = '7200';

делать всех петов сильнее (классная вещь) или сделай себе ручного антараса devil
Code
UPDATE `npc` SET `hp` = `hp` * 1.5 where type='L2Pet';  
  UPDATE `npc` SET `mp` = `mp` * 1.5 where type='L2Pet';  
  UPDATE `npc` SET `patk` = `patk` * 1.5 where type='L2Pet';  
  UPDATE `npc` SET `matk` = `matk` * 1.5 where type='L2Pet';  
  UPDATE `npc` SET `pdef` = `pdef` * 1.5 where type='L2Pet';  
  UPDATE `npc` SET `mdef` = `mdef` * 1.5 where type='L2Pet';  
  UPDATE `npc` SET `runspd` = `runspd` * 1.5 where type='L2Pet';

Удалить все вещи с определённым ID и определённого персонажа
Code

DELETE * FROM items WHERE item_id=(item id) AND owner_id=(character id)

Месторождение чаров в гиране с ТОП шмотом. (Для воинов это - тека и кристал дагер, для магов это - кармиан и хомка)
Code
UPDATE `char_templates` SET `x` = '83400',  
  `y` = '147943',  
  `z` = '-3404';  
  UPDATE `char_templates` SET `items1` = '420',  
  `items2` = '400',  
  `items3` = '2436',  
  `items4` = '6358',  
  `items5` = '2460' WHERE `char_templates`.`ClassId` =0 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '420',  
  `items2` = '400',  
  `items3` = '2436',  
  `items4` = '6358',  
  `items5` = '2460' WHERE `char_templates`.`ClassId` =18 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '420',  
  `items2` = '400',  
  `items3` = '2436',  
  `items4` = '6358',  
  `items5` = '2460' WHERE `char_templates`.`ClassId` =31 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '420',  
  `items2` = '400',  
  `items3` = '2436',  
  `items4` = '6358',  
  `items5` = '2460' WHERE `char_templates`.`ClassId` =44 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '420',  
  `items2` = '400',  
  `items3` = '2436',  
  `items4` = '6358',  
  `items5` = '2460' WHERE `char_templates`.`ClassId` =53 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '439',  
  `items2` = '471',  
  `items3` = '2430',  
  `items4` = '2454',  
  `items5` = '6313' WHERE `char_templates`.`ClassId` =10 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '439',  
  `items2` = '471',  
  `items3` = '2430',  
  `items4` = '2454',  
  `items5` = '6313' WHERE `char_templates`.`ClassId` =25 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '439',  
  `items2` = '471',  
  `items3` = '2430',  
  `items4` = '2454',  
  `items5` = '6313' WHERE `char_templates`.`ClassId` =38 LIMIT 1 ;  
  UPDATE `char_templates` SET `items1` = '439',  
  `items2` = '471',  
  `items3` = '2430',  
  `items4` = '2454',  
  `items5` = '6313' WHERE `char_templates`.`ClassId` =49 LIMIT 1 ;

Увеличение в 2 раза таких показателей, как Str,Int,Dex,Wit,Men,Con
Code
UPDATE `char_templates` SET `STR`='80' WHERE (SELECT ClassId) AND (str = '40');           
  UPDATE `char_templates` SET `STR`='44' WHERE (SELECT ClassId) AND (str = '22');           
  UPDATE `char_templates` SET `STR`='72' WHERE (SELECT ClassId) AND (str = '36');           
  UPDATE `char_templates` SET `STR`='42' WHERE (SELECT ClassId) AND (str = '21');           
  UPDATE `char_templates` SET `STR`='46' WHERE (SELECT ClassId) AND (str = '23');           
  UPDATE `char_templates` SET `STR`='54' WHERE (SELECT ClassId) AND (str = '27');           
  UPDATE `char_templates` SET `STR`='78' WHERE (SELECT ClassId) AND (str = '39');           
  UPDATE `char_templates` SET `con`='86' WHERE (SELECT ClassId) AND (con = '43');           
  UPDATE `char_templates` SET `con`='54' WHERE (SELECT ClassId) AND (con = '27');           
  UPDATE `char_templates` SET `con`='72' WHERE (SELECT ClassId) AND (con = '36');           
  UPDATE `char_templates` SET `con`='50' WHERE (SELECT ClassId) AND (con = '25');           
  UPDATE `char_templates` SET `con`='64' WHERE (SELECT ClassId) AND (con = '32');           
  UPDATE `char_templates` SET `con`='48' WHERE (SELECT ClassId) AND (con = '24');           
  UPDATE `char_templates` SET `con`='94' WHERE (SELECT ClassId) AND (con = '47');           
  UPDATE `char_templates` SET `con`='62' WHERE (SELECT ClassId) AND (con = '31');  
  UPDATE `char_templates` SET `con`='90' WHERE (SELECT ClassId) AND (con = '45');  
  UPDATE `char_templates` SET `con`='86' WHERE (SELECT ClassId) AND (con = '43');  
  UPDATE `char_templates` SET `_int`='42' WHERE (SELECT ClassId) AND (_int = '21');  
  UPDATE `char_templates` SET `_int`='82' WHERE (SELECT ClassId) AND (_int = '41');  
  UPDATE `char_templates` SET `_int`='46' WHERE (SELECT ClassId) AND (_int = '23');  
  UPDATE `char_templates` SET `_int`='74' WHERE (SELECT ClassId) AND (_int = '37');  
  UPDATE `char_templates` SET `_int`='50' WHERE (SELECT ClassId) AND (_int = '25');  
  UPDATE `char_templates` SET `_int`='88' WHERE (SELECT ClassId) AND (_int = '44');  
  UPDATE `char_templates` SET `_int`='36' WHERE (SELECT ClassId) AND (_int = '18');  
  UPDATE `char_templates` SET `_int`='62' WHERE (SELECT ClassId) AND (_int = '31');  
  UPDATE `char_templates` SET `_int`='40' WHERE (SELECT ClassId) AND (_int = '20');  
  UPDATE `char_templates` SET `men`='52' WHERE (SELECT ClassId) AND (men = '26');  
  UPDATE `char_templates` SET `men`='80' WHERE (SELECT ClassId) AND (men = '40');  
  UPDATE `char_templates` SET `men`='74' WHERE (SELECT ClassId) AND (men = '37');  
  UPDATE `char_templates` SET `men`='54' WHERE (SELECT ClassId) AND (men = '27');  
  UPDATE `char_templates` SET `men`='84' WHERE (SELECT ClassId) AND (men = '42');  
  UPDATE `char_templates` SET `men`='78' WHERE (SELECT ClassId) AND (men = '39');  
  UPDATE `char_templates` SET `men`='50' WHERE (SELECT ClassId) AND (men = '25');  
  UPDATE `char_templates` SET `STR`='80' WHERE (ClassId = '0') AND (str = '40');           
  UPDATE `char_templates` SET `con`='86' WHERE (ClassId = '0') AND (con = '43');  
  UPDATE `char_templates` SET `_int`='42' WHERE (ClassId = '0') AND (_int = '21');  
  UPDATE `char_templates` SET `dex`='60' WHERE (ClassId = '0') AND (dex = '30');  
  UPDATE `char_templates` SET `wit`='22' WHERE (ClassId = '0') AND (wit = '11');  
  UPDATE `char_templates` SET `wit`='22' WHERE (SELECT ClassId) AND (wit = '11');  
  UPDATE `char_templates` SET `wit`='40' WHERE (SELECT ClassId) AND (wit = '20');  
  UPDATE `char_templates` SET `wit`='28' WHERE (SELECT ClassId) AND (wit = '14');  
  UPDATE `char_templates` SET `wit`='46' WHERE (SELECT ClassId) AND (wit = '23');  
  UPDATE `char_templates` SET `wit`='24' WHERE (SELECT ClassId) AND (wit = '12');  
  UPDATE `char_templates` SET `wit`='38' WHERE (SELECT ClassId) AND (wit = '19');  
  UPDATE `char_templates` SET `wit`='30' WHERE (SELECT ClassId) AND (wit = '15');  
  UPDATE `char_templates` SET `wit`='20' WHERE (SELECT ClassId) AND (wit = '10');  
  UPDATE `char_templates` SET `dex`='60' WHERE (SELECT ClassId) AND (dex = '30');  
  UPDATE `char_templates` SET `dex`='42' WHERE (SELECT ClassId) AND (dex = '21');  
  UPDATE `char_templates` SET `dex`='70' WHERE (SELECT ClassId) AND (dex = '35');  
  UPDATE `char_templates` SET `dex`='48' WHERE (SELECT ClassId) AND (dex = '24');  
  UPDATE `char_templates` SET `dex`='68' WHERE (SELECT ClassId) AND (dex = '34');  
  UPDATE `char_templates` SET `dex`='46' WHERE (SELECT ClassId) AND (dex = '23');  
  UPDATE `char_templates` SET `dex`='52' WHERE (SELECT ClassId) AND (dex = '26');  
  UPDATE `char_templates` SET `dex`='58' WHERE (SELECT ClassId) AND (dex = '29');

Все РБ станут 80 лвлом
Code
UPDATE npc SET `level`=80 WHERE `type`="L2RaidBoss"

Все гранд босы станут 80 лвлом
Code
UPDATE npc SET `level`=80 WHERE `type`="L2GrandBoss"

Настройка статов у гвардов
Code
UPDATE npc SET level='85' where type='L2Guard';  
  UPDATE npc SET hp='30000' where type='L2Guard';  
  UPDATE npc SET mp='30000' where type='L2Guard';  
  UPDATE npc SET patk='30000' where type='L2Guard';  
  UPDATE npc SET pdef='10000' where type='L2Guard';  
  UPDATE npc SET mdef='10000' where type='L2Guard';  
  UPDATE npc SET title='Customized Guard' where type='L2Guard';  
  UPDATE npc SET serverSideTitle='1' where type='L2Guard';  
  UPDATE npc SET serverSideTitle='1' where type='L2Guard';  
  UPDATE npc SET rhand='0' where type='L2Guard';  
  UPDATE npc SET lhand='0' where type='L2Guard';  
  UPDATE npc SET runspd='300' where type='L2Guard';  
  UPDATE npc SET ss='1' where type='L2Guard';  
  UPDATE npc SET bss='1' where type='L2Guard';  
  UPDATE npc SET ss_rate='100' where type='L2Guard';  
  UPDATE npc SET attackrange='100' where type='L2Guard';  
  UPDATE npc SET aggro='5000' where type='L2Guard';  
  UPDATE npc SET str='100' where type='L2Guard';  
  UPDATE npc SET con='100' where type='L2Guard';  
  UPDATE npc SET dex='100' where type='L2Guard';  
  UPDATE npc SET wit='100' where type='L2Guard';  
  UPDATE npc SET men='100' where type='L2Guard';  
  UPDATE npc SET str='100' where type='L2Guard';

Авторестарт сервера каждую неделю
Code

INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "604800000", "86400000", "360");

Авторестарт сервера каждые 2 дня

Code

INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "172800000", "86400000", "360");

Авторестарт сервера каждые 24 часа
Code

INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "86400000", "86400000", "360");

Авторестарт сервера каждые 12 часов
Code

INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "43200000", "43200000", "360");

Авторестарт сервера каждые 6 часов
Code

INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "21600000", "21600000", "360");

Авторестарт сервера каждые 3 часа
Code

INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "10800000", "10800000", "360");

Рейд босы всегда будут появляться с 70% хп
Code

UPDATE raidboss_spawnlist SET currentHp = currentHp * 0.7;

Newbie бафер (уже от грации) будет бафать вас от 1 лвла до 62
Code

UPDATE helper_buff_list SET lower_level=1;  
  UPDATE helper_buff_list SET upper_level=62;

Для заточки скилов вам не нужно будет тратить xp и exp
Code

UPDATE enchant_skill_trees SET sp=0;  
  UPDATE enchant_skill_trees SET exp=0;
 
Форум » Lineage II » Раздел для новичков » Самые нужные SQL запросы в Lineage 2
  • Страница 1 из 1
  • 1
Поиск:

Unread posts Есть новые сообщения    No unread posts Нету новых сообщений    No unread posts [ Locked ] Закрытый форум