Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 2.96 KB | Hits: 20 | Expires: Never
Copy text to clipboard
  1. -- 10-Man Boss loot from Obsidian Sanctrum (including Hard Modes)
  2. -- Source: WoWhead
  3.  
  4. SET @Sartharion := 28860;
  5. SET @Reference := 70000; -- didn't know what exact reference range I should use so I used static for test drops
  6. SET @ReferenceD1 := 1+@Reference;
  7. SET @ReferenceD2 := 2+@Reference;
  8. SET @ReferenceD3 := 3+@Reference;
  9.  
  10. DELETE FROM 'creature_loot_template' WHERE 'entry'=@Sartharion;
  11. DELETE FROM 'reference_loot_template' WHERE 'entry'=@Reference;
  12. DELETE FROM 'reference_loot_template' WHERE 'entry'=@ReferenceD1;
  13. DELETE FROM 'reference_loot_template' WHERE 'entry'=@ReferenceD2;
  14. DELETE FROM 'reference_loot_template' WHERE 'entry'=@ReferenceD3;
  15.  
  16. UPDATE 'creature_template' SET 'lootid'='entry' WHERE 'entry'=@Sartharion;
  17.  
  18. -- generic loot (don't know whether tokens should be in generic - assume yes)
  19. INSERT INTO 'creature_loot_template' (`entry`,`item`,`ChanceOrQuestChance`,`lootmode`,`groupid`,`mincountOrRef`,`maxcount`,`lootcondition`,`condition_value1`,`condition_value2`) VALUES
  20. (@Sartharion,1,100,1,0,-@Reference,2,0,0,0), -- 2 selections from gear loot
  21. (@Sartharion,2,100,2,0,-@ReferenceD1,1,0,0,0), -- 1 selection from hard mode (1 Drake left alive)
  22. (@Sartharion,3,100,4,0,-@ReferenceD2,1,0,0,0), -- 1 selection from hard mode (2 Drakes left alive)
  23. (@Sartharion,4,100,8,0,-@ReferenceD3,1,0,0,0), -- 1 selection from hard mode (3 Drakes left alive)
  24. (@Sartharion,43347,94,1,0,0,1,0,0,0), -- Satchel of Spoils
  25. (@Sartharion,43345,93,1,0,0,1,0,0,0), -- Dragon Hide Bag
  26. (@Sartharion,45624,100,1,0,1,1,0,0,0), -- Emblem of conquest
  27. (@Sartharion,40615,37,1,0,0,1,0,0,0), -- Gloves of the Lost Vanquisher
  28. (@Sartharion,40614,29,1,0,0,1,0,0,0), -- Gloves of the Lost Protector
  29. (@Sartharion,40613,28,1,0,0,1,0,0,0); -- Gloves of the Lost Cunqueror
  30.  
  31. INSERT INTO `reference_loot_template` (`entry`,`item`,`ChanceOrQuestChance`,`lootmode`,`groupid`,`mincountOrRef`,`maxcount`,`lootcondition`,`condition_value1`,`condition_value2`) VALUES
  32. -- gear loot
  33. (@Reference,40430,0,1,1,1,1,0,0,0), -- Majestic Dragon Figurine
  34. (@Reference,40428,0,1,1,1,1,0,0,0), -- Titan's Outlook
  35. (@Reference,40427,0,1,1,1,1,0,0,0), -- Circle of Arcane Streams
  36. (@Reference,40426,0,1,1,1,1,0,0,0), -- Signet of the Accord
  37. (@Reference,45429,0,1,1,1,1,0,0,0), -- Crimson Steel
  38. -- 1 drake left
  39. (@ReferenceD1,43992,0,1,1,1,1,0,0,0), -- Volitant Amulet
  40. (@ReferenceD1,43988,0,1,1,1,1,0,0,0), -- Gale-Proof Cloak
  41. (@ReferenceD1,43990,0,1,1,1,1,0,0,0), -- Blade_Scarred Tunic
  42. (@ReferenceD1,43989,0,1,1,1,1,0,0,0), -- Remembrance Girdle
  43. (@ReferenceD1,43991,0,1,1,1,1,0,0,0), -- Legguards of Composure
  44. -- 2 drakes left
  45. (@ReferenceD2,43995,0,1,1,1,1,0,0,0), -- Enamored Cowl
  46. (@ReferenceD2,43998,0,1,1,1,1,0,0,0), -- Chestguard of Flagrant Prowess
  47. (@ReferenceD2,43994,0,1,1,1,1,0,0,0), -- Belabored Legplates
  48. (@ReferenceD2,43996,0,1,1,1,1,0,0,0), -- Sabatons of Firmament
  49. (@ReferenceD2,43993,0,1,1,1,1,0,0,0), -- Greatring of Collision
  50. -- 3 drakes left
  51. (@ReferenceD3,43986,0,1,1,1,1,0,0,0); -- Reins of the Black Drake