Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.33 KB | None | 0 0
  1. -- Hunter
  2. if class == "HUNTER" then
  3.     local pets = {}
  4.     _, _, _, pets[1], _ = GetStablePetInfo(1);
  5.     _, _, _, pets[2], _ = GetStablePetInfo(2);
  6.     _, _, _, pets[3], _ = GetStablePetInfo(3);
  7.     _, _, _, pets[4], _ = GetStablePetInfo(4);
  8.     _, _, _, pets[5], _ = GetStablePetInfo(5);
  9.  
  10.     local family = {
  11.         ["Basilisk"] = "Petrifying Gaze",
  12.         ["Bat"] = "Sonic Blast",
  13.         ["Bear"] = "Thick Fur",
  14.         ["Beetle"] = "Harden Carapace",
  15.         ["Bird of Prey"] = "Talon Rend",
  16.         ["Boar"] = "Bristle",
  17.         ["Carrion Bird"] = "Bloody Screech",
  18.         ["Cat"] = "Catlike Reflexes",
  19.         ["Chimaera"] = "Frost Breath",
  20.         ["Clefthoof"] = "Thick Hide",
  21.         ["Core Hound"] = "Obsidian Skin",
  22.         ["Crab"] = "Pin",
  23.         ["Crane"] = "Chi-Ji's Tranquility",
  24.         ["Crocolisk"] = "Ankle Crack",
  25.         ["Devilsaur"] = "Monstrous Bite",
  26.         ["Direhorn"] = "Gore",
  27.         ["Dog"] = "Lock Jaw",
  28.         ["Dragonhawk"] = "Dragon's Guile",
  29.         ["Feathermane"] = "Feather Flurry",
  30.         ["Fox"] = "Agile Reflexes",
  31.         ["Goat"] = "Gruff",
  32.         ["Gorilla"] = "Silverback",
  33.         ["Hydra"] = "Acid Bite",
  34.         ["Hyena"] = "Infected Bite",
  35.         ["Krolusk"] = "Bulwark",
  36.         ["Lizard"] = "Grievous Bite",
  37.         ["Mechanical"] = "Defense Matrix",
  38.         ["Monkey"] = "Primal Agility",
  39.         ["Moth"] = "Serenity Dust",
  40.         ["Nether Ray"] = "Nether Shock",
  41.         ["Ox"] = "Niuzao's Fortitude",
  42.         ["Pterrordax"] = "Ancient Hide",
  43.         ["Quilen"] = "Stone Armor",
  44.         ["Raptor"] = "Savage Rend",
  45.         ["Ravager"] = "Ravage",
  46.         ["Riverbeast"] = "Gruesome Bite",
  47.         ["Rodent"] = "Gnaw",
  48.         ["Scalehide"] = "Scale Shield",
  49.         ["Scorpid"] = "Deadly Sting",
  50.         ["Serpent"] = "Serpent's Swiftness",
  51.         ["Shale Spider"] = "Solid Shell",
  52.         ["Silithid"] = "Tendon Rip",
  53.         ["Spider"] = "Web Spray",
  54.         ["Spirit Beast"] = "Spirit Shock",
  55.         ["Sporebat"] = "Spore Cloud",
  56.         ["Stag"] = "Nature's Grace",
  57.         ["Tallstrider"] = "Dust Cloud",
  58.         ["Toad"] = "Swarm of Flies",
  59.         ["Turtle"] = "Shell Shield",
  60.         ["Warp Stalker"] = "Warp Time",
  61.         ["Wasp"] = "Toxic Sting",
  62.         ["Water Strider"] = "Soothing Water",
  63.         ["Wind Serpent"] = "Winged Agility",
  64.         ["Wolf"] = "Furious Bite",
  65.         ["Worm"] = "Acid Spit",
  66.     }
  67.     local exotic = {
  68.         ["Bear"] = "Trick",
  69.         ["Bird of Prey"] = "Trick",
  70.         ["Cat"] = "Prowl",
  71.         ["Chimaera"] = "Froststorm Breath",
  72.         ["Clefthoof"] = "Blood of the Rhino",
  73.         ["Core Hound"] = "Molten Hide",
  74.         ["Crane"] = "Trick",
  75.         ["Devilsaur"] = "Feast",
  76.         ["Feathermane"] = "Updraft",
  77.         ["Fox"] = "Play",
  78.         ["Krolusk"] = "Calcified Carapace",
  79.         ["Pterrordax"] = "Updraft",
  80.         ["Quilen"] = "Eternal Guardian",
  81.         ["Rodent"] = "Rest",
  82.         ["Shale Spider"] = "Shimmering Scale",
  83.         ["Silithid"] = "Dune Strider",
  84.         ["Spirit Beast"] = "Spirit Mend",
  85.         ["Water Strider"] = "Surface Trot",
  86.         ["Worm"] = "Burrow Attack",
  87.     }
  88.  
  89.     -- Family Pet Ability
  90.     local body = "#showtooltip\n/use "
  91.  
  92.     for i = 1, 5 do
  93.         if family[pets[i]] then
  94.             body = body .. "[pet:" .. pets[i] .. "]" .. family[pets[i]] .. ";"
  95.         end
  96.     end
  97.  
  98.     body = body .. "Tame Beast"
  99.  
  100.     EditMacro("CR", nil, nil, body, 1, 1)
  101.  
  102.  
  103.     -- Exotic Pet Ability
  104.     local body = "#showtooltip\n/use "
  105.  
  106.     for i = 1, 5 do
  107.         if exotic[pets[i]] then
  108.             if pets[i] == "Spirit Beast" then
  109.                 body = body .. "[pet:Spirit Beast,help][pet:Spirit Beast,@player]Spirit Mend;"
  110.             else
  111.                 body = body .. "[pet:" .. pets[i] .. "]" .. exotic[pets[i]] .. ";"
  112.             end
  113.         end
  114.     end
  115.  
  116.     body = body .. "Tame Beast"
  117.  
  118.     EditMacro("F3", nil, nil, body, 1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement