Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local msg = "Loot and pillage, bwahahaha!"
- local autoinvite = CreateFrame("frame")
- autoinvite:RegisterEvent("CHAT_MSG_MONSTER_YELL")
- autoinvite:SetScript("OnEvent", function(self,event,arg1,arg2)
- if arg1:match(msg) then
- SendChatMessage("GALLEON SPAWNED!!!!!!!!!! RED ALERT MOTHERFUCKERS", "GUILD", nil, nil)
- SendChatMessage("WHISPER ME -> inv <- PULLING IN 60 SEC", "GUILD", nil, nil)
- SendChatMessage("GALLEON SPAWNED! accept invite (or keyword >inv<)", "WHISPER", nil, "Sakurako")
- SendChatMessage("GALLEON SPAWNED! accept invite (or keyword >inv<)", "WHISPER", nil, "Ravengaar")
- InviteUnit("Ravengaar")
- InviteUnit("Sakurako")
- end
- end)
- local f = CreateFrame("frame")
- f:RegisterEvent("CHAT_MSG_WHISPER")
- f:SetScript("OnEvent", function(self,event,arg1,arg2)
- if arg1:lower():match("inv") then
- InviteUnit(arg2)
- end
- end)
- local q = CreateFrame("frame")
- q:RegisterEvent('GROUP_ROSTER_UPDATE')
- q:SetScript('OnEvent', function(self,event,arg1,arg2)
- for i = 1, GetNumGroupMembers() do
- rUnit = "raid"..i
- if UnitExists(rUnit) then
- name,rank,_,_,_,_,_,_,_,_,_ = GetRaidRosterInfo(i)
- if rank == 0 then
- PromoteToAssistant(name)
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment