[Addon] [BuddyChecker] Auto share & debug accepted quests

Work with other players to create your own special custom interfaces and macros.
User avatar
thedtsniper
Posts: 5
Joined: 25 Sep 2015 23:59

[Addon] [BuddyChecker] Auto share & debug accepted quests

#1 » Post by thedtsniper » 25 Feb 2016 11:56

Hello I wrote this little addon for me and my friend for this server. I thought maybe you guys could use it. In this addon it automatically shares shareable quests to other party members when accepting any quests and tells the party members what quest was shared. it also automatically checks to see if the quest you accepted is bugged with the chat command .qc [QUESTLINK]. Anyways have fun :D.

Here is the addon in a zip file for ya :D.
[CURRENT v1.L85a20n21k14] http://puu.sh/nlC5o/c1c8f04a36.zip

[Change log] (1.L85a20n21k14)
[change log #1] Changed line #20 chat channel to "CHANNEL" instead of "PARTY". This will allow the .qc debug chat command to check a quest even if the player isn't in a party or the player is dead or without a guild.

[Credit to the people for the people]
Thank you Hansrutger and Fastor for [change log #1]

Here is the code

main.lua [CURRENT 1.L85a20n21k14]

Code: Select all

local Buddy_Caller = CreateFrame("Frame")
Buddy_Caller:RegisterEvent("QUEST_ACCEPTED")

Buddy_Caller:SetScript("OnEvent",

function(self, event, ...)
local arg1 = ...
local title, level, tag, header = GetQuestLogTitle(arg1);
local buddylink=GetQuestLink(arg1);

if(GetNumPartyMembers() > 0) then
SelectQuestLogEntry(arg1);
if(GetQuestLogPushable()) then
QuestLogPushQuest();
SendChatMessage(string.format("[BuddyCheck]: Quest %s[%i] shared",buddylink,level),"PARTY");
else
SendChatMessage(string.format("[BuddyCheck]: Quest %s[%i] UNSHAREABLE",buddylink,level),"PARTY");
end
end
SendChatMessage(string.format(".qc %s",buddylink),"CHANNEL",nil,1)
end
)
BuddyChecker.toc [CURRENT 1.L85a20n21k14]

Code: Select all

## Interface: 50001
## Title: Buddy Checker
## Author: The DT
## Version: 1.L85a20n21k14
## Notes: Allows for automated quest sharing and auto debugging of quests on the truewow.org server.
main.lua
Last edited by thedtsniper on 26 Feb 2016 03:04, edited 5 times in total.

User avatar
thedtsniper
Posts: 5
Joined: 25 Sep 2015 23:59

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#2 » Post by thedtsniper » 25 Feb 2016 11:58

[Legacy versions]

[Version 1.L83a18n19k12]
ZIp file
http://puu.sh/nk94A/3f2bb3b5de.zip

Code:
main.lua

Code: Select all

local Buddy_Caller = CreateFrame("Frame")
Buddy_Caller:RegisterEvent("QUEST_ACCEPTED")

Buddy_Caller:SetScript("OnEvent",

function(self, event, ...)
local arg1 = ...
local title, level, tag, header = GetQuestLogTitle(arg1);
local buddylink=GetQuestLink(arg1);

if(GetNumPartyMembers() > 0) then
SelectQuestLogEntry(arg1);
if(GetQuestLogPushable()) then
QuestLogPushQuest();
SendChatMessage(string.format("[BuddyCheck]: Quest %s[%i] shared",buddylink,level),"PARTY");
else
SendChatMessage(string.format("[BuddyCheck]: Quest %s[%i] UNSHAREABLE",buddylink,level),"PARTY");
end
end
SendChatMessage(string.format(".qc %s",buddylink),"PARTY");
end
)
BuddyChecker.toc

Code: Select all

## Interface: 50001
## Title: Buddy Checker
## Author: The DT
## Version: 1.L83a18n19k12
## Notes: Allows for automated quest sharing and auto debugging of quests.
main.lua
Last edited by thedtsniper on 26 Feb 2016 02:14, edited 1 time in total.

User avatar
Hansrutger
Former Staff
Posts: 1052
Joined: 10 Apr 2013 14:17

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#3 » Post by Hansrutger » 25 Feb 2016 14:05

Good job! Keep up the good work! :D
Retired

I'd say that trying is the best one can do in order to higher themselves from the people crying and only complaining. Whilst you try, it doesn't mean it is always going to be the most successful result but I'd like to think that it is still a better choice than standing idle.

TrueWoW main: Palamaster

User avatar
Fastor
Posts: 4031
Joined: 16 Dec 2012 17:38

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#4 » Post by Fastor » 25 Feb 2016 15:03

Tested and here are few comments:

Idea is great!
Addon does not do .qc function if not in party, l would like to have .qc working always.
Make sharing and .qc optional. Aka add code /buddychecker sharing on and /buddychecker qc on.
Also add info that its supposed to debug on truewow.org server.
Image

User avatar
Hansrutger
Former Staff
Posts: 1052
Joined: 10 Apr 2013 14:17

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#5 » Post by Hansrutger » 25 Feb 2016 18:34

Thought of that before as well but was not sure if party fail gave a message or not. Either way, a chat that will ALWAYS work is "GUILD". SAY would also work but then you cannot use it when you are dead. I suggest you simply change on line 20 from "PARTY" to "GUILD".

Once again, good job.
Retired

I'd say that trying is the best one can do in order to higher themselves from the people crying and only complaining. Whilst you try, it doesn't mean it is always going to be the most successful result but I'd like to think that it is still a better choice than standing idle.

TrueWoW main: Palamaster

User avatar
thedtsniper
Posts: 5
Joined: 25 Sep 2015 23:59

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#6 » Post by thedtsniper » 26 Feb 2016 02:33

Fastor wrote:Tested and here are few comments:

Idea is great!
Addon does not do .qc function if not in party, l would like to have .qc working always.
Make sharing and .qc optional. Aka add code /buddychecker sharing on and /buddychecker qc on.
Also add info that its supposed to debug on truewow.org server.
Image
Thank you Fastor for your wonderful thoughts! I have updated my addon so that you no longer need to be in a group to use the .qc chat command. I'll see what I can do for some / commands in a future update :D. I also updated the notes to include the turewow.org domain. Again thanks! Have a good one :D.
Hansrutger wrote:Thought of that before as well but was not sure if party fail gave a message or not. Either way, a chat that will ALWAYS work is "GUILD". SAY would also work but then you cannot use it when you are dead. I suggest you simply change on line 20 from "PARTY" to "GUILD".

Once again, good job.
Thank you Hansrutger for your awesome thoughts! I have updated my addon so that it'll use the channel 1 instead of the party chat. This will allow players that are dead, without a guild and who are not in a group to have the command run for them upon accepting the quest.
Last edited by thedtsniper on 26 Feb 2016 09:05, edited 1 time in total.


User avatar
thedtsniper
Posts: 5
Joined: 25 Sep 2015 23:59

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#8 » Post by thedtsniper » 26 Feb 2016 09:07

Fastor wrote:Im not Fostor :cry:
I'm so sorry Fastor! I edited my post xD.

User avatar
Hansrutger
Former Staff
Posts: 1052
Joined: 10 Apr 2013 14:17

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#9 » Post by Hansrutger » 26 Feb 2016 09:17

thedtsniper wrote:
Hansrutger wrote:Thought of that before as well but was not sure if party fail gave a message or not. Either way, a chat that will ALWAYS work is "GUILD". SAY would also work but then you cannot use it when you are dead. I suggest you simply change on line 20 from "PARTY" to "GUILD".

Once again, good job.
Thank you Hansrutger for your awesome thoughts! I have updated my addon so that it'll use the channel 1 instead of the party chat. This will allow players that are dead, without a guild and who are not in a group to have the command run for them upon accepting the quest.
Guild chat is always eligable. To test it try to go on PTR, die and try to do "/g .revive". You will be able to revive yourself even without being in a guild. Or look at the actual Bugged Quest Checker v2:

Code: Select all


function ChatMsg(msg, msgt, recipient)
if not msgt then msgt="GUILD" end
if msgt == "addon" then
if recipient then
SendAddonMessage("", msg, "WHISPER", recipient)
else
SendAddonMessage("", msg, "GUILD")
end
end
And the .qc is done:

Code: Select all


id = getQuestId(questIndex);
ChatMsg(".qc "..id)
Here the code will send to function ChatMsg to type in ".qc questID" and then the function sets it to GUILD chat. Anyhow using channel 1 is also a valid solution. So good job either way!
Retired

I'd say that trying is the best one can do in order to higher themselves from the people crying and only complaining. Whilst you try, it doesn't mean it is always going to be the most successful result but I'd like to think that it is still a better choice than standing idle.

TrueWoW main: Palamaster

User avatar
Fastor
Posts: 4031
Joined: 16 Dec 2012 17:38

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#10 » Post by Fastor » 26 Feb 2016 10:33

Hansrutger wrote: Guild chat is always eligable.
Errr not always, some of us does not wish to play in guild.

User avatar
Etro
Honorary Member
Posts: 2558
Joined: 14 Oct 2012 08:24
Location: Behind ccrs

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#11 » Post by Etro » 26 Feb 2016 11:14

Handsome stuff Hansrutger is right. For commands, /g is always available, whether you're in a guild or not.
"With life, no matter what you do, you are all in. This is going to kill you. Might as well play the most magnificent game you can while you're waiting, because... Do you have anything better to do? Really?"

User avatar
Hansrutger
Former Staff
Posts: 1052
Joined: 10 Apr 2013 14:17

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#12 » Post by Hansrutger » 26 Feb 2016 11:28

For the five hundredth time... And thank you Etro for backing me up on this: G-chat is ALWAYS available... Why? Because it gives no error message if you are not in guild chat and you attempt to talk in guild chat. Jeez these people -.-'
Retired

I'd say that trying is the best one can do in order to higher themselves from the people crying and only complaining. Whilst you try, it doesn't mean it is always going to be the most successful result but I'd like to think that it is still a better choice than standing idle.

TrueWoW main: Palamaster


User avatar
Sagiri
Donor
Posts: 280
Joined: 30 Nov 2013 18:05
Location: Nevereverland

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#14 » Post by Sagiri » 26 Feb 2016 14:15

Fastor wrote:l dont talk in guild :(
Cause your guild is dead.

Nice little addon, thanks for sharing!
Image
` I'm taking it slow, feeding my flame.
Shuffling the cards of your game...
And just in time and in the right place
Suddenly I will play my ace.`

User avatar
Jiranthos
Admin
Posts: 1978
Joined: 23 Jun 2015 03:43
Location: Not on your bad side, hopefully

Re: [Addon] [BuddyChecker] Auto share & debug accepted quest

#15 » Post by Jiranthos » 26 Feb 2016 17:35

Hansrutger wrote:For the five hundredth time... And thank you Etro for backing me up on this: G-chat is ALWAYS available... Why? Because it gives no error message if you are not in guild chat and you attempt to talk in guild chat. Jeez these people -.-'
^ This man is right. Fact. Period. Done. :)

Other solutions are valid, too, but using Guild channel seems to be the text-book, proper solution.

Everybody knows that the best way to describe the ocean to a blind man is to push him in

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest