Advertisement
Guest User

Untitled

a guest
Oct 27th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[Updated for latest Inspired]]--
  2.  
  3. Menu = MenuConfig("BM 2.0", "BM")
  4.  
  5. Menu:Menu("rofl", "Settings")
  6. Menu.rofl:Boolean("Laugh", "Enable Emotes", true)
  7. Menu.rofl:Boolean("Always", "Always laugh", false)
  8. Menu.rofl:DropDown("EmotesTable", "Use which Emotes", 1, {"Dance", "Laugh", "Taunt", "Joke"})
  9.  
  10. local target = GetCurrentTarget()
  11.  
  12. OnTick(function(myHero)
  13.     target = GetCurrentTarget() or target
  14.         if IsDead(target) and Menu.rofl.Laugh:value() then
  15.                 Emote()
  16.         end
  17. end)
  18.  
  19. if _G.IOW ~= nil then
  20.     IOW:AddCallback(AFTER_ATTACK, function(Target)
  21.         target = Target or target
  22.             if Menu.rofl.Always:Value() then
  23.                     Emote()
  24.             end
  25.     end
  26. end
  27.  
  28. function Emote()
  29.         if Menu.rofl.EmotesTable:Value() == 1 then
  30.                 Emoticon = EMOTE_DANCE
  31.         elseif Menu.rofl.EmotesTable:Value() == 2 then
  32.                 Emoticon = EMOTE_LAUGH
  33.         elseif Menu.rofl.EmotesTable:Value() == 3 then
  34.                 Emoticon = EMOTE_TAUNT
  35.         elseif Menu.rofl.EmotesTable:Value() == 4 then
  36.                 Emoticon = EMOTE_JOKE
  37.         end
  38.         CastEmote(Emoticon)
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement