Advertisement
nimzo_asc

Update query

Aug 30th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.38 KB | None | 0 0
  1. -- Head, Chest, Legs
  2. UPDATE item_template
  3. SET PvPpower = if(name LIKE "Bloodforged%", 8, 14)
  4. , stat_value10 = if(name LIKE "Bloodforged%", 12, 18)
  5. , spellid_4 = if(name LIKE "Bloodforged%", 101708, 101714)
  6. WHERE InventoryType IN (1, 5, 7, 20) #Head, Chest, Legs
  7. AND subclass = 1 #Cloth
  8. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  9.  
  10. UPDATE item_template
  11. SET PvPpower = if(name LIKE "Bloodforged%", 8, 14)
  12. , stat_value10 = if(name LIKE "Bloodforged%", 10, 16)
  13. , spellid_4 = if(name LIKE "Bloodforged%", 101708, 101714)
  14. WHERE InventoryType IN (1, 5, 7, 20) #Head, Chest, Legs
  15. AND subclass = 2 #Leather
  16. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  17.  
  18. UPDATE item_template
  19. SET PvPpower = if(name LIKE "Bloodforged%", 8, 14)
  20. , stat_value10 = if(name LIKE "Bloodforged%", 8, 13)
  21. , spellid_4 = if(name LIKE "Bloodforged%", 101708, 101714)
  22. WHERE InventoryType IN (1, 5, 7, 20) #Head, Chest, Legs
  23. AND subclass = 3 #Mail
  24. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  25.  
  26. UPDATE item_template
  27. SET PvPpower = if(name LIKE "Bloodforged%", 8, 14)
  28. , stat_value10 = if(name LIKE "Bloodforged%", 7, 12)
  29. , spellid_4 = if(name LIKE "Bloodforged%", 101708, 101714)
  30. WHERE InventoryType IN (1, 5, 7, 20) #Head, Chest, Legs
  31. AND subclass = 4 #Plate
  32. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  33.  
  34. -- Shoulders, Boots, Gloves, Waist
  35. UPDATE item_template
  36. SET PvPpower = if(name LIKE "Bloodforged%", 6, 12)
  37. , stat_value10 = if(name LIKE "Bloodforged%", 10, 14)
  38. , spellid_4 = if(name LIKE "Bloodforged%", 101706, 101712)
  39. WHERE InventoryType IN (3, 6, 8, 10) #Shoulders, Boots, Gloves, Waist
  40. AND subclass = 1 #Cloth
  41. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  42.  
  43.  
  44. UPDATE item_template
  45. SET PvPpower = if(name LIKE "Bloodforged%", 6, 12)
  46. , stat_value10 = if(name LIKE "Bloodforged%", 8, 13)
  47. , spellid_4 = if(name LIKE "Bloodforged%", 101706, 101712)
  48. WHERE InventoryType IN (3, 6, 8, 10) #Shoulders, Boots, Gloves, Waist
  49. AND subclass = 2 #Leather
  50. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  51.  
  52. UPDATE item_template
  53. SET PvPpower = if(name LIKE "Bloodforged%", 6, 12)
  54. , stat_value10 = if(name LIKE "Bloodforged%", 7, 11)
  55. , spellid_4 = if(name LIKE "Bloodforged%", 101706, 101712)
  56. WHERE InventoryType IN (3, 6, 8, 10) #Shoulders, Boots, Gloves, Waist
  57. AND subclass = 3 #Mail
  58. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  59.  
  60. UPDATE item_template
  61. SET PvPpower = if(name LIKE "Bloodforged%", 6, 12)
  62. , stat_value10 = if(name LIKE "Bloodforged%", 6, 10)
  63. , spellid_4 = if(name LIKE "Bloodforged%", 101706, 101712)
  64. WHERE InventoryType IN (3, 6, 8, 10) #Shoulders, Boots, Gloves, Waist
  65. AND subclass = 4 #Plate
  66. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  67.  
  68. -- Bracers
  69. UPDATE item_template
  70. SET PvPpower = if(name LIKE "Bloodforged%", 5, 10)
  71. , stat_value10 = if(name LIKE "Bloodforged%", 8, 11)
  72. , spellid_4 = if(name LIKE "Bloodforged%", 101705, 101710)
  73. WHERE InventoryType IN (9) #Bracers
  74. AND subclass = 1 #Cloth
  75. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  76.  
  77. UPDATE item_template
  78. SET PvPpower = if(name LIKE "Bloodforged%", 5, 10)
  79. , stat_value10 = if(name LIKE "Bloodforged%", 7, 10)
  80. , spellid_4 = if(name LIKE "Bloodforged%", 101705, 101710)
  81. WHERE InventoryType IN (9) #Bracers
  82. AND subclass = 2 #Leather
  83. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  84.  
  85. UPDATE item_template
  86. SET PvPpower = if(name LIKE "Bloodforged%", 5, 10)
  87. , stat_value10 = if(name LIKE "Bloodforged%", 6, 8)
  88. , spellid_4 = if(name LIKE "Bloodforged%", 101705, 101710)
  89. WHERE InventoryType IN (9) #Bracers
  90. AND subclass = 3 #Mail
  91. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  92.  
  93. UPDATE item_template
  94. SET PvPpower = if(name LIKE "Bloodforged%", 5, 10)
  95. , stat_value10 = if(name LIKE "Bloodforged%", 5, 7)
  96. , spellid_4 = if(name LIKE "Bloodforged%", 101705, 101710)
  97. WHERE InventoryType IN (9) #Bracers
  98. AND subclass = 4 #Plate
  99. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  100.  
  101. -- Neck, Cloak, Ring, Trinket, Shield, Offhand, Ranged, Wand, 1h
  102. UPDATE item_template
  103. SET PvPpower = if(name LIKE "Bloodforged%", 4, 6)
  104. , stat_value10 = if(name LIKE "Bloodforged%", 4, 6)
  105. , spellid_4 = if(name LIKE "Bloodforged%", 101704, 101706)
  106. WHERE InventoryType IN (2, 11, 12, 13, 14, 15, 16, 21, 21, 22, 23, 25, 26, 28)
  107. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  108.  
  109. -- 2h
  110. UPDATE item_template
  111. SET PvPpower = if(name LIKE "Bloodforged%", 8, 12)
  112. , stat_value10 = if(name LIKE "Bloodforged%", 8, 12)
  113. , spellid_4 = if(name LIKE "Bloodforged%", 101708, 101712)
  114. WHERE InventoryType IN (17)
  115. AND stat_type10 = 35 AND stat_value10 > 0 AND pvppower > 0 AND spellid_4 <> 0 AND requiredlevel BETWEEN 61 AND 70;
  116.  
  117.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement