Responding to Noob Questions??

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
whome
Posts: 58
Joined: Fri Jun 17, 2011 2:51 am

Responding to Noob Questions??

#1 Post by whome » Sat Aug 06, 2011 11:30 pm

Is there a way to respond to noobs who ask stupid questions, like 'wanna join my guild' etc, when botting. Maybe have a number of responses like the GM detect does??

Edit: I dont think I can modify responses but ima gunna try 'declineinvite'.......

Code: Select all

declineInvite_conf = {
	["ENABLED"] = true,
};

function declineInvite_OnLoad()
	SlashCmdList["declineInvite"] = declineInvite_SlashCmd;
	SLASH_declineInvite1 = "/declineinvite";
	SLASH_declineInvite2 = "/di";

	DEFAULT_CHAT_FRAME:AddMessage("Loaded declineIvite addon.");
end

function declineInvite_SlashCmd(a, msg)
	if( declineInvite_conf["ENABLED"] ) then
		declineInvite_conf["ENABLED"] = false;
		DEFAULT_CHAT_FRAME:AddMessage("declineInvite disabled.");
	else
		declineInvite_conf["ENABLED"] = true;
		DEFAULT_CHAT_FRAME:AddMessage("declineInvite enabled.");
	end;
end

local timeInvited = nil;
function declineInvite_OnUpdate()

	if( timeInvited ~= nil and timeInvited == 1 ) then
		-- Decline the invite
		DeclineGroup();

		timeInvited = nil;
	end

	if( timeInvited ~= nil and timeInvited == 2 ) then
		StaticPopup_OnClick(StaticPopup1, 2);
		timeInvited = nil;
	end

	if( timeInvited ~= nil and timeInvited == 3 ) then
		CancelDuel()
		timeInvited = nil;
	end

end


function declineInvite_OnEvent(event)
	if( declineInvite_conf["ENABLED"] == false ) then
		return;
	end;

	if( event == "PARTY_INVITE_REQUEST" ) then
		DEFAULT_CHAT_FRAME:AddMessage("Enqueued a decline for party invite")
		timeInvited = 1;
	end

	if( event == "GUILD_INVITE_REQUEST" ) then
		DEFAULT_CHAT_FRAME:AddMessage("Enqueued a decline for guild invite")
		DEFAULT_CHAT_FRAME:AddMessage("guildinvite: "..StaticPopup_Visible("GUILD_INVITE"))
		timeInvited = 2;
	end

	if( event == "DUEL_REQUESTED" ) then
		DEFAULT_CHAT_FRAME:AddMessage("Enqueued a decline for duel request")
		timeInvited = 3;
	end

end
At the bottom, where it says 'AddMessage', is that where I can enter my response??

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Responding to Noob Questions??

#2 Post by lisa » Sun Aug 07, 2011 7:24 am

the addon declineinvite doesn't actually respond to whispers, it only responds to if you are invited to guild/party/duel.

If you just want to change how the addon reacts to invites you can do it in the last bit of code you posted.

Code: Select all

function declineInvite_OnEvent(event)
Alsong as you leave in the timeInvited part of the code then it will still decline the invite. You can just change the addmessage part and tell them to bugger off.

Tricky part with this is because it only monitors invite events then it never monitors whispers so you will never know who actually did the invite. So whispering them would be very difficult.

If you want to respond to whispers much better off going with chat monitor addon and adjusting that code to suit your needs as it already has a tick option to monitor just whispers.

Seems kinda risky though, imagine setting up an auto response saying "get lost" and it was actually a GM that whispered you, wouldn't go down well.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

whome
Posts: 58
Joined: Fri Jun 17, 2011 2:51 am

Re: Responding to Noob Questions??

#3 Post by whome » Sun Aug 07, 2011 2:48 pm

Thnaks Lisa, ill do a little more work/investigation. Im sick of dorks saying 'wanna join my guild' etc etc.

Edit: Can't find the ChatMonitor addon anywhere..... Can anyone help?? :?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Responding to Noob Questions??

#4 Post by lisa » Sun Aug 07, 2011 6:40 pm

doesnt seem to be on curse anymore

Pretty sure this is an unedited version. I've played with this addon so many times I lost track lol
It's just a good lite chat monitor. I had another post somewhere I uploaded a version that had user input for responses instead of just playing a sound file. Might be in a topic about auto reply to guild or something, can't remember for sure.
Something about greeting guildies when they log in, also something about wanting to reply "me" any time a card was posted in guild chat.
Attachments
ChatMonitor_v120.zip
chat monitor addon
(105.38 KiB) Downloaded 151 times
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

whome
Posts: 58
Joined: Fri Jun 17, 2011 2:51 am

Re: Responding to Noob Questions??

#5 Post by whome » Mon Aug 08, 2011 1:28 am

Thanks heaps, ill give it a go..... :D

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests