Advertisement
Guest User

Untitled

a guest
May 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 5.70 KB | None | 0 0
  1. -- add lootid and quest item loot. Fixes issue 1778
  2.  
  3. UPDATE creature_template SET lootid = 30921 WHERE entry = 30921;
  4. DELETE FROM creature_loot_template WHERE entry = 30921;
  5. INSERT INTO creature_loot_template (entry, item, ChanceOrQuestChance, lootmode, groupid, mincountOrRef, maxcount, lootcondition, condition_value1, condition_value2)
  6. VALUES
  7. (30921, 43291, -51, 1, 0, 1, 1, 0, 0, 0);
  8.  
  9.  
  10. -- add new reference to Nefarian. Fixes issue 2336
  11.  
  12. REPLACE INTO creature_loot_template (entry, item, ChanceOrQuestChance, lootmode, groupid, mincountOrRef, maxcount, lootcondition, condition_value1, condition_value2)
  13. VALUES
  14. (11583, 33999, 100, 1, 1, -33999, 1, 0, 0, 0);
  15.  
  16.  
  17. -- Reference loot for Nefarian's drop of T2 heads
  18.  
  19. DELETE FROM reference_loot_template WHERE entry = 33999;
  20. INSERT INTO reference_loot_template (entry, item, ChanceOrQuestChance, lootmode, groupid, mincountOrRef, maxcount, lootcondition, condition_value1, condition_value2)
  21. VALUES
  22. (33999, 16963, 0, 1, 1, 1, 1, 0, 0, 0),
  23. (33999, 16955, 0, 1, 1, 1, 1, 0, 0, 0),
  24. (33999, 16929, 0, 1, 1, 1, 1, 0, 0, 0),
  25. (33999, 16914, 0, 1, 1, 1, 1, 0, 0, 0),
  26. (33999, 16900, 0, 1, 1, 1, 1, 0, 0, 0),
  27. (33999, 16908, 0, 1, 1, 1, 1, 0, 0, 0),
  28. (33999, 16939, 0, 1, 1, 1, 1, 0, 0, 0),
  29. (33999, 16921, 0, 1, 1, 1, 1, 0, 0, 0),
  30. (33999, 16947, 0, 1, 1, 1, 1, 0, 0, 0);
  31.  
  32.  
  33. -- remove needless Reputation Rank
  34.  
  35. UPDATE item_template SET RequiredReputationRank = 0 WHERE entry IN (51888, 50718); -- Why this item needs Reptation Rank, if he drops from some Boss in ICC?
  36.  
  37.  
  38. -- add quest choice items. Fixes issue 2344
  39.  
  40. UPDATE quest_template SET RewChoiceItemId1 = 31104, RewChoiceItemId2 = 31110, RewChoiceItemId3 = 31109, RewChoiceItemId4 = 31105, RewChoiceItemId5 = 31106, RewChoiceItemId6 = 31107 WHERE entry = 10639;
  41.  
  42.  
  43. -- add query on pool_template, Vyragosa has entry for spawnpoints now
  44.  
  45. SET @POOL := (SELECT MAX(entry) FROM pool_template);
  46. SET @NEXTPOOL := @POOL+1;
  47. DELETE FROM pool_template WHERE description = "Vyragosa - spawn";
  48. INSERT INTO pool_template (entry, max_limit, description) VALUES (@NEXTPOOL, 1, "Vyragosa - spawn");
  49.  
  50.  
  51. -- add query in pool_creature, five spawnpoints of Vyragosa
  52.  
  53. DELETE FROM pool_creature WHERE pool_entry = 1750;
  54. DELETE FROM creature WHERE id = 32630;
  55.  
  56. SET @MAXGUID := (SELECT MAX(guid) FROM creature);
  57. SET @NPC :=  @MAXGUID+1;
  58. INSERT INTO pool_creature (guid, pool_entry, chance, description) VALUES (@NPC, @NEXTPOOL, 0, "Vyragosa (32630) - Spawn Point 1");
  59. INSERT INTO creature (guid, id, map, spawnMask, phaseMask, modelid, equipment_id, position_x, position_y, position_z, orientation, spawntimesecs, spawndist, currentwaypoint, curhealth, curmana, DeathState, MovementType) VALUES (@NPC, 32630, 571, 1, 1, 0, 0, 7084.63, -669.311, 970.369, 3.40634, 300, 0, 0, 18900, 0, 0, 0);
  60.  
  61. SET @MAXGUID := (SELECT MAX(guid) FROM creature);
  62. SET @NPC :=  @MAXGUID+1;
  63. INSERT INTO pool_creature (guid, pool_entry, chance, description) VALUES (@NPC, @NEXTPOOL, 0, "Vyragosa (32630) - Spawn Point 2");
  64. INSERT INTO creature (guid, id, map, spawnMask, phaseMask, modelid, equipment_id, position_x, position_y, position_z, orientation, spawntimesecs, spawndist, currentwaypoint, curhealth, curmana, DeathState, MovementType) VALUES (@NPC, 32630, 571, 1, 1, 0, 0, 7791.49, -280.008, 979.094, 5.41547, 300, 0, 0, 18900, 0, 0, 0);
  65.  
  66. SET @MAXGUID := (SELECT MAX(guid) FROM creature);
  67. SET @NPC :=  @MAXGUID+1;
  68. INSERT INTO pool_creature (guid, pool_entry, chance, description) VALUES (@NPC, @NEXTPOOL, 0, "Vyragosa (32630) - Spawn Point 3");
  69. INSERT INTO creature (guid, id, map, spawnMask, phaseMask, modelid, equipment_id, position_x, position_y, position_z, orientation, spawntimesecs, spawndist, currentwaypoint, curhealth, curmana, DeathState, MovementType) VALUES (@NPC, 32630, 571, 1, 1, 0, 0, 6345.18, -733.521, 654.263, 2.3485, 300, 0, 0, 18900, 0, 0, 0);
  70.  
  71. SET @MAXGUID := (SELECT MAX(guid) FROM creature);
  72. SET @NPC :=  @MAXGUID+1;
  73. INSERT INTO pool_creature (guid, pool_entry, chance, description) VALUES (@NPC, @NEXTPOOL, 0, "Vyragosa (32630) - Spawn Point 4");
  74. INSERT INTO creature (guid, id, map, spawnMask, phaseMask, modelid, equipment_id, position_x, position_y, position_z, orientation, spawntimesecs, spawndist, currentwaypoint, curhealth, curmana, DeathState, MovementType) VALUES (@NPC, 32630, 571, 1, 1, 0, 0, 8690.92, -1236.7, 1093.86, 4.86177, 300, 0, 0, 18900, 0, 0, 0);
  75.  
  76. SET @MAXGUID := (SELECT MAX(guid) FROM creature);
  77. SET @NPC :=  @MAXGUID+1;
  78. INSERT INTO pool_creature (guid, pool_entry, chance, description) VALUES (@NPC, @NEXTPOOL, 0, "Vyragosa (32630) - Spawn Point 5");
  79. INSERT INTO creature (guid, id, map, spawnMask, phaseMask, modelid, equipment_id, position_x, position_y, position_z, orientation, spawntimesecs, spawndist, currentwaypoint, curhealth, curmana, DeathState, MovementType) VALUES (@NPC, 32630, 571, 1, 1, 0, 0, 7416.74, -1149.03, 1070.88, 2.78675, 300, 0, 0, 18900, 0, 0, 0);
  80.  
  81.  
  82. -- add chance on spawn Proto Drake
  83.  
  84. DELETE FROM creature_ai_scripts WHERE creature_id = 32630;
  85. INSERT INTO creature_ai_scripts (id, creature_id, event_type, event_inverse_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action1_type, action1_param1, action1_param2, action1_param3, action2_type, action2_param1, action2_param2, action2_param3, action3_type, action3_param1, action3_param2, action3_param3, comment)
  86. VALUES
  87. (3263001, 32630, 9, 0, 100, 1, 0, 35, 7000, 9000, 11, 47425, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Vyragosa - Cast Frost Breath"),
  88. (3263002, 32630, 9, 0, 100, 1, 0, 5, 3000, 6000, 11, 51857, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Vyragosa - Cast Frost Cleave"),
  89. (3263003, 32630, 0, 0, 7.5, 1, 0, 0, 0, 0, 12, 32491, 0, 259200000, 37, 0, 0, 0, 0, 0, 0, 0, "Vyragosa - 7.5% Chance on spawn Time Lost Proto-drake and kills itself");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement