Untitled
unknown
lua
2 years ago
882 B
4
Indexable
local function MoveActions(self, event, ...) if ( IsShiftKeyDown() ) then SetBinding("SHIFT-SPACE"); SendAddonMessage( "MOVEACTION", "SPRINTSTART", "WHISPER", UnitName("player") ); end if not( IsShiftKeyDown() ) then if not ( IsAltKeyDown() ) then SendAddonMessage( "MOVEACTION", "SPRINTEND", "WHISPER", UnitName("player") ); end end if ( IsControlKeyDown() ) then SendAddonMessage( "MOVEACTION", "BLOCKSTART", "WHISPER", UnitName("player") ); end if not( IsControlKeyDown() ) then SendAddonMessage( "MOVEACTION", "BLOCKEND", "WHISPER", UnitName("player") ); end if ( IsAltKeyDown() ) then SendAddonMessage( "MOVEACTION", "ROLL", "WHISPER", UnitName("player") ); end local isTyping = IsPlayerTyping(); if isTyping == 1 then ConsoleAddMessage("Is typing"); else ConsoleAddMessage("is NOT typing"); end end
Editor is loading...