Advertisement
Guest User

Untitled

a guest
Oct 26th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  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. IOW:AddCallback(AFTER_ATTACK, function(Target)
  20.     target = Target or target
  21.         if Menu.rofl.Always:Value() then
  22.                 Emote()
  23.         end
  24. end
  25.  
  26. function Emote()
  27.         if Menu.rofl.EmotesTable:Value() == 1 then
  28.                 Emoticon = EMOTE_DANCE
  29.         elseif Menu.rofl.EmotesTable:Value() == 2 then
  30.                 Emoticon = EMOTE_LAUGH
  31.         elseif Menu.rofl.EmotesTable:Value() == 3 then
  32.                 Emoticon = EMOTE_TAUNT
  33.         elseif Menu.rofl.EmotesTable:Value() == 4 then
  34.                 Emoticon = EMOTE_JOKE
  35.         end
  36.         CastEmote(Emoticon)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement