Advertisement
Guest User

Untitled

a guest
Oct 27th, 2015
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[Updated for latest Inspired]]--
  2.  
  3. require("Inspired")
  4.  
  5. Menu = MenuConfig("BM 2.0", "BM")
  6.  
  7. Menu:Menu("rofl", "Settings")
  8. Menu.rofl:Boolean("Laugh", "Enable Emotes", true)
  9. Menu.rofl:Boolean("Always", "Always laugh", false)
  10. Menu.rofl:DropDown("EmotesTable", "Use which Emotes", 1, {"Dance", "Laugh", "Taunt", "Joke"})
  11.  
  12. local target = GetCurrentTarget()
  13.  
  14. OnTick(function(myHero)
  15.     target = GetCurrentTarget() or target
  16.         if IsDead(target) and Menu.rofl.Laugh:value() then
  17.                 Emote()
  18.         end
  19. end)
  20.  
  21. IOW:AddCallback(AFTER_ATTACK, function(Target)
  22.     target = Target or target
  23.     if Menu.rofl.Always:Value() then
  24.         Emote()
  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