Guest User

Untitled

a guest
Dec 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. local msg = "Loot and pillage, bwahahaha!"
  2. local autoinvite = CreateFrame("frame")
  3. autoinvite:RegisterEvent("CHAT_MSG_MONSTER_YELL")
  4. autoinvite:SetScript("OnEvent", function(self,event,arg1,arg2)
  5.     if arg1:match(msg) then
  6.         SendChatMessage("{square}{square} GALLEON SPAWNED!!!!!!!!!! RED ALERT MOTHERFUCKERS {square}{square}", "GUILD", nil, nil)
  7.         SendChatMessage("{square}{square} WHISPER ME -> inv <- {square}{square}", "GUILD", nil, nil)
  8.         SendChatMessage("WHISPER ME -> INV <- FOR GALLEON RAID, AUTOPROMOTE IS ON", "WHISPER", nil, nil)
  9.         InviteUnit("Sakurako")
  10.         InviteUnit("Ravengaar")
  11.     end
  12. end)
  13.  
  14. local f = CreateFrame("frame")
  15. f:RegisterEvent("CHAT_MSG_WHISPER")
  16. f:SetScript("OnEvent", function(self,event,arg1,arg2)
  17.     if arg1:lower():match("inv") then
  18.         InviteUnit(arg2)
  19.     end
  20. end)
Add Comment
Please, Sign In to add comment