SHOW:
|
|
- or go back to the newest paste.
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 | - | if _G.IOW ~= nil then |
19 | + | |
20 | - | IOW:AddCallback(AFTER_ATTACK, function(Target) |
20 | + | |
21 | - | target = Target or target |
21 | + | IOW:AddCallback(AFTER_ATTACK, function(Target) |
22 | - | if Menu.rofl.Always:Value() then |
22 | + | target = Target or target |
23 | - | Emote() |
23 | + | if Menu.rofl.Always:Value() then |
24 | - | end |
24 | + | Emote() |
25 | - | end) |
25 | + | end |
26 | - | end |
26 | + | |
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 |