Deleted as per request.
Deleted as per request.
Last edited by hp94; 12-15-2010 at 04:24 PM.
Looks nice, it's in the wrong section though, since it's an addon.
/moved. (Left a temporary redirect in bots and programs section).
Abra su mente a la realidad.
Do NOT contact me about trading section stuff. Contact a section MOD instead.
screenshots?
and upload 3 files in 1 archive
Lua is a name, not an acronym, so it's Lua and not LUA.
And bro, are you kidding me? Your whole 20kB addon can be an one-liner...
And here as a macro:Code:local gm = GMChatFrame_OnEvent function GMChatFrame_OnEvent(self, event, arg1, arg2, arg3, arg4, arg5, _, ...) gm(self, event, arg1, arg2, arg3, arg4, arg5, "GM", ...) end
Code:/run local g=GMChatFrame_OnEvent;function GMChatFrame_OnEvent(s,e,a1,a2,a3,a4,a5,_,...)g(s,e,a1,a2,a3,a4,a5,"GM",...)end
Deleted as per request.
Last edited by hp94; 12-15-2010 at 04:25 PM.
Woops forgot LoadAddOn().
Code:/run LoadAddOn"Blizzard_GMChatUI"local g=GMChatFrame_OnEvent;function GMChatFrame_OnEvent(s,e,a1,a2,a3,a4,a5,_,...)g(s,e,a1,a2,a3,a4,a5,"GM",...)end
Deleted as per request.
Last edited by hp94; 12-15-2010 at 04:25 PM.
I used a diff program on the original GMChatUI and your addon. The differences were minimal but critical. There were no XML changes, only Lua changes.
You also made some stupid errors. Like this:
This is equal to the following since Immortalmage is a variable not yet set to anything.Code:local ListOfGMs = {Immortalmage};
The next diff was the following line:Code:local ListOfGMs = {nil};
instead ofCode:if ( event == "CHAT_MSG_WHISPER" ) then
Simple, you removed the check wether we are GM or not, I did this with a pre-hook in my macro.Code:if ( event == "CHAT_MSG_WHISPER" and arg6 == "GM" ) then
The next diff was a non-important one, removing the check for CHAT_SHOW_ICONS, doesn't matter.
The next diff was forgotten in my macro, it was the addition of this line:
This is used only for the setting of the /r tell target, no space for it in my macro.Code:table.insert(self.lastGM,arg2);
The next diff was a non-important one, replacing GM_CHAT_STATUS_READY_DESCRIPTION with "An Administrative Game Master must speak with you".
The next diff was a critical one not added in my macro, the removal of the GMChatFrame_IsGM check. I'm going to add that.
So my macro after this change:
Code:/run LoadAddOn"Blizzard_GMChatUI"function GMChatFrame_IsGM()return 1 end;local g=GMChatFrame_OnEvent;function GMChatFrame_OnEvent(s,e,a1,a2,a3,a4,a5,_,...)g(s,e,a1,a2,a3,a4,a5,"GM",...)end
Deleted as per request.
Last edited by hp94; 12-15-2010 at 04:26 PM.
Deleted as per request.
Last edited by hp94; 12-15-2010 at 04:26 PM.