Thread Tools Display Modes
04-09-11, 06:45 AM   #1
Jalisco
A Defias Bandit
Join Date: Apr 2011
Posts: 2
I search addon for raid.

Hi guys I have a question. This is going to be a bit hard to understand so make sure you read carefully.

I need an addon for raid and when the raid leader says in the guild chat "Wrote in the guild chat for invite!" the addon automaticly wrote in the guild chat "Inv me" (example).
The addon must have easy setup to given keyword - example ("Wro", "Wrote" etc...). I hope that someone tell me who is this addon. Thank for the attention. : )
  Reply With Quote
04-09-11, 07:48 AM   #2
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
You could use a simple script for that:

/script f=CreateFrame("Frame") f:RegisterEvent("CHAT_MSG_GUILD") f:SetScript("OnEvent", function(a1,a2) if a1=="raid leader's name" and a2=="phase to search for" then SendChatMessage("phrase to send","GUILD",nil,a1) end end)

(untested)

Last edited by Duugu : 04-09-11 at 07:52 AM.
  Reply With Quote
04-09-11, 01:44 PM   #3
Jalisco
A Defias Bandit
Join Date: Apr 2011
Posts: 2
It doesn't work but 10x. : ) Other solutions? : )
  Reply With Quote
04-12-11, 01:04 AM   #4
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi Jalisco,

The script Duugu posted just needs a few adjustments. This should work:

Code:
/run local f=CreateFrame("Frame") f:RegisterEvent("CHAT_MSG_GUILD") f:SetScript("OnEvent", function(_,_,m,s) if s=="raid leader name" and m:find("search term") then SendChatMessage("phrase to send","GUILD") end end)
But, to make it easier, you could make it into a small addon instead of having to run the macro every time you log in:

AddOns\AutoInviteMe\AutoInviteMe.toc:
Code:
## Interface: 40000
AutoInviteMe.lua
AddOns\AutoInviteMe\AutoInviteMe.lua:
Code:
local f = CreateFrame( "Frame" )
f:RegisterEvent( "CHAT_MSG_GUILD" )
f:SetScript( "OnEvent", function( self, event, message, sender )
    if sender == "raid leader name"
    and message:find( "search term" ) then 
        SendChatMessage( "phrase to send", "GUILD" )
    end
end)
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » I search addon for raid.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off