Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 9.43 KB | None | 0 0
  1. 0 Weight FOR items/armors/weapons:
  2. Quote
  3. UPDATE `etcitem` SET `weight`=0 WHERE (SELECT item_id);
  4. UPDATE `armor` SET `weight`=0 WHERE (SELECT item_id);
  5. UPDATE `weapon` SET `weight`=0 WHERE (SELECT item_id);
  6.  
  7. DROP Adena 100%:
  8. Quote
  9. UPDATE `droplist` SET `chance`='1000000' WHERE `itemId`='57';
  10.  
  11. WHEN you sell, everything will cost 0 adena:
  12. Quote
  13. UPDATE `armor` SET price=0 WHERE price > 1;
  14. UPDATE `etcitem` SET price=0 WHERE price > 1;
  15. UPDATE `weapon` SET price=0 WHERE price > 1;
  16.  
  17. UPDATE ALL RaidBoss 5000k hp:
  18. Quote
  19. UPDATE `npc` SET `hp`='5000000' WHERE (SELECT id) AND npc.TYPE='L2Raidboss';
  20.  
  21. DELETE ALL mobs UNDER 40 lvl:
  22. Quote
  23. DELETE spawnlist, npc FROM spawnlist, npc WHERE spawnlist.npc_templateid=npc.idTemplate AND npc.level<40 AND npc.TYPE='L2Monster';
  24.  
  25. DELETE ALL materials AND recipes FROM db:
  26. Quote
  27. DELETE FROM droplist WHERE itemid IN (SELECT item_id FROM etcitem WHERE item_type= 'material' OR item_type= 'recipe' );
  28.  
  29. Increase DROP rate FOR recipes:
  30. Quote
  31. UPDATE droplist SET chance='1000000' WHERE id IN (SELECT item_id FROM etcitem WHERE TYPE='recipe');
  32.  
  33. DELETE characters AND accounts IF they do NOT CONNECT FOR 3 months:
  34. Quote
  35. DELETE FROM characters WHERE lastAccess < 466560000;
  36. DELETE FROM accounts WHERE lastactive < 466560000;
  37.  
  38. ADD FOR ALL monsters IN DROP: Coins
  39. Quote
  40. INSERT INTO droplist (mobId, itemid, chance, MIN, MAX,category) SELECT id, 4037, 1000000, 1, 1, 52 FROM npc WHERE TYPE='L2Monster';
  41.  
  42. Top No-Grade IN START:(Need TO modif FOR kamaels)
  43. Quote
  44. 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);
  45. 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);
  46. 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);
  47. 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);
  48. 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);
  49. 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);
  50. 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);
  51. 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);
  52. 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);
  53.  
  54. ADD RaidBoss jewels IF you have deleted them:
  55. Quote
  56. INSERT INTO droplist VALUES ('29001', '6660', '1', '1', '12', '300000');
  57. INSERT INTO droplist VALUES ('29006', '6662', '1', '1', '8', '300000');
  58. INSERT INTO droplist VALUES ('29014', '6661', '1', '1', '9', '300000');
  59. INSERT INTO droplist VALUES ('29022', '6659', '1', '1', '13', '1000000');
  60. INSERT INTO droplist VALUES ('29020', '6658', '1', '1', '2', '1000000');
  61. INSERT INTO droplist VALUES ('29019', '6656', '1', '1', '31', '1000000');
  62. INSERT INTO droplist VALUES ('29028', '6657', '1', '1', '34', '1000000');
  63.  
  64. Thx TO 1tm
  65. DELETE ALL spellbooks FROM db:
  66. Code:
  67.  
  68. DELETE FROM droplist WHERE itemid IN (SELECT item_id FROM etcitem WHERE item_type= 'spellbook' );
  69.  
  70.  
  71. Increases Guards (p.def, m.def, p.atk, hp) BY 50%:
  72. Code:
  73.  
  74. UPDATE npc SET pdef = pdef * 1.5 WHERE TYPE = 'L2Guard';
  75. UPDATE npc SET hp = hp * 1.5 WHERE TYPE = 'L2Guard';
  76. UPDATE npc SET patk = patk * 1.5 WHERE TYPE = 'L2Guard';
  77. UPDATE npc SET mdef = mdef * 1.5 WHERE TYPE = 'L2Guard';
  78.  
  79.  
  80. Decreases Raidboss defense BY 40%:
  81. Code:
  82.  
  83. UPDATE npc SET pdef = pdef * 0.6 WHERE TYPE = 'L2RaidBoss';
  84. UPDATE npc SET hp = hp * 0.6 WHERE TYPE = 'L2RaidBoss';
  85. UPDATE npc SET mdef = mdef * 0.6 WHERE TYPE = 'L2RaidBoss';
  86.  
  87.  
  88. ALL NEW player chars spawn loc:
  89. Code:
  90.  
  91. UPDATE char_templates SET x=yourXcoordinate;
  92. UPDATE char_templates SET y=yourYcoordinate;
  93. UPDATE char_templates SET z=yourZcoordinate;
  94.  
  95.  
  96. Increases ALL chars p.def/m.def BY 10%:
  97. Code:
  98.  
  99. UPDATE char_templates SET P_DEF = P_DEF * 1.1;
  100. UPDATE char_templates SET M_DEF = M_DEF * 1.1;
  101.  
  102.  
  103. Increases ALL chars speed BY 20%:
  104. Code:
  105.  
  106. UPDATE char_templates SET MOVE_SPD = MOVE_SPD * 1.2;
  107.  
  108.  
  109. Increases ALL chars CP. At 20lv BY 22%, at 40lv BY 44%, at 76lv BY 66%:
  110. This one good one FOR longer pvps..
  111. Code:
  112.  
  113. UPDATE lvlupgain SET defaultcpbase = Defaultcpbase * 1.66 WHERE class_lvl = '76';
  114. UPDATE lvlupgain SET defaultcpbase = Defaultcpbase * 1.44 WHERE class_lvl = '40';
  115. UPDATE lvlupgain SET defaultcpbase = Defaultcpbase * 1.22 WHERE class_lvl = '20';
  116.  
  117.  
  118. MP rengerates 10 times more(unlimited mp):
  119. Good one FOR high servers who has mp potions etc..
  120. Code:
  121.  
  122. UPDATE lvlupgain SET defaultmpmod = defaultmpmod * 10.0;
  123.  
  124.  
  125. Teleports cost 0 adena:
  126. Code:
  127.  
  128. UPDATE teleport SET price=0;
  129.  
  130.  
  131. CREATE common item skill DELETE:
  132. It used AS bug at olympiad, WITH it you can buff WITH soes, mental dagers etc IN secs...
  133. Code:
  134.  
  135. DELETE FROM skill_trees WHERE skill_id = 1320;
  136. DELETE FROM skill_trees WHERE skill_id = 1322;
  137.  
  138.  
  139. Grade penality DELETE:
  140. Disables grade penality...
  141. Code:
  142.  
  143. DELETE FROM skill_trees WHERE skill_id = 239;
  144.  
  145.  
  146. Raidbosses always spawns WITH 70% hp:
  147. More realistic that NEW spawned rb has NOT FULL hp. Good one FOR organized clans OR parties...
  148. Code:
  149.  
  150. UPDATE raidboss_spawnlist SET currentHp = currentHp * 0.7;
  151.  
  152.  
  153. Dies adding price reduced TO 5 adena (OR increased TO 100kk):
  154. Good one FOR faction servers.
  155. Code:
  156.  
  157. UPDATE henna SET price=5;
  158.  
  159. ..OR TO 100kk (good one FOR high rates servers).
  160. Code:
  161.  
  162. UPDATE henna SET price=100000000;
  163.  
  164.  
  165. Newbie npc buffer buffes ALL buffs FROM 1lv TO 62lv:
  166. Really USE FULL newbie characters TO have ALL buffs FROM 1lv (IF yuo want U may CHANGE UPPER level TO 85, FOR daily bufer).
  167. Code:
  168.  
  169. UPDATE helper_buff_list SET lower_level=1;
  170. UPDATE helper_buff_list SET upper_level=62;
  171.  
  172.  
  173. TO enchant skill doesn't need exp/sp:
  174. Good one for high rates servers or faction servers..
  175. Code:
  176.  
  177. UPDATE enchant_skill_trees SET sp=0;
  178. UPDATE enchant_skill_trees SET exp=0;
  179.  
  180.  
  181. Auto server restart:
  182. Every week..
  183. Code:
  184.  
  185. INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "604800000", "86400000", "360");
  186.  
  187. Every two days..
  188. Code:
  189.  
  190. INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "172800000", "86400000", "360");
  191.  
  192. Every 24h..
  193. Code:
  194.  
  195. INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "86400000", "86400000", "360");
  196.  
  197. Every 12h..
  198. Code:
  199.  
  200. INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "43200000", "43200000", "360");
  201.  
  202. Every 6h..
  203. Code:
  204.  
  205. INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "21600000", "21600000", "360");
  206.  
  207. Every 3h..
  208. Code:
  209.  
  210. INSERT INTO `global_tasks` VALUES ("5", "restart", "TYPE_SHEDULED", "2147483647", "10800000", "10800000", "360");
  211.  
  212.  
  213. Thx to lekino
  214. Custom Spawn in Giran Castle Town & items.(For Fighters Theca Leather Armor Set and Crystal Dagger .For Mystics Karmian Robe Set and Homunkulus's Sword)
  215. Code:
  216.  
  217. UPDATE `char_templates` SET `x` = '83400',
  218. `y` = '147943',
  219. `z` = '-3404';
  220. UPDATE `char_templates` SET `items1` = '420',
  221. `items2` = '400',
  222. `items3` = '2436',
  223. `items4` = '6358',
  224. `items5` = '2460' WHERE `char_templates`.`ClassId` =0 LIMIT 1 ;
  225. UPDATE `char_templates` SET `items1` = '420',
  226. `items2` = '400',
  227. `items3` = '2436',
  228. `items4` = '6358',
  229. `items5` = '2460' WHERE `char_templates`.`ClassId` =18 LIMIT 1 ;
  230. UPDATE `char_templates` SET `items1` = '420',
  231. `items2` = '400',
  232. `items3` = '2436',
  233. `items4` = '6358',
  234. `items5` = '2460' WHERE `char_templates`.`ClassId` =31 LIMIT 1 ;
  235. UPDATE `char_templates` SET `items1` = '420',
  236. `items2` = '400',
  237. `items3` = '2436',
  238. `items4` = '6358',
  239. `items5` = '2460' WHERE `char_templates`.`ClassId` =44 LIMIT 1 ;
  240. UPDATE `char_templates` SET `items1` = '420',
  241. `items2` = '400',
  242. `items3` = '2436',
  243. `items4` = '6358',
  244. `items5` = '2460' WHERE `char_templates`.`ClassId` =53 LIMIT 1 ;
  245. UPDATE `char_templates` SET `items1` = '439',
  246. `items2` = '471',
  247. `items3` = '2430',
  248. `items4` = '2454',
  249. `items5` = '6313' WHERE `char_templates`.`ClassId` =10 LIMIT 1 ;
  250. UPDATE `char_templates` SET `items1` = '439',
  251. `items2` = '471',
  252. `items3` = '2430',
  253. `items4` = '2454',
  254. `items5` = '6313' WHERE `char_templates`.`ClassId` =25 LIMIT 1 ;
  255. UPDATE `char_templates` SET `items1` = '439',
  256. `items2` = '471',
  257. `items3` = '2430',
  258. `items4` = '2454',
  259. `items5` = '6313' WHERE `char_templates`.`ClassId` =38 LIMIT 1 ;
  260. UPDATE `char_templates` SET `items1` = '439',
  261. `items2` = '471',
  262. `items3` = '2430',
  263. `items4` = '2454',
  264. `items5` = '6313' WHERE `char_templates`.`ClassId` =49 LIMIT 1 ;
  265.  
  266.  
  267. Hope this will help you a little Wink
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement