mine picks up all the lootable items when you loot and queues them up so ive no need to check for alt clicking on the loot slots themselves but if thats what youre doing it shouldnt be too hard to figure out what the frame is called and hook that as well (if the setitemref hook doesnt work for that)
The reason I am trying to use HandleModifiedItemClick is because that would make it usable on any item in any frame. If I wanted to use it for like orbs or something out of the guild bank. Also it is easy to get the itemlink from it.
Master and BidNotOpen are globals? any chance these are getting overwritten by another mod? or even blizzard?
you may want to put those debug print statements back in right at the top just to confirm if your hook is being called.
Well they are declared outside of the functions like this...
local Master = false;
local BidNotOpen = true;
Does that make them local to my addon? Because that was my intent. However, I have used debugs before to try to solve this issue. When it occurs my HandleModifiedItemClicks function is not called at all.
edit: Should they be declared DrunkardSK.Master and DrunkardSK.BidNotOpen?
then its most likely not another addon. can we see the code for the whole DSK_HandleModifiedItemClick function?
Yes...
function DrunkardSK:DSK_HandleModifiedItemClick(item)
if (Master) then
if (BidNotOpen) then
if (IsAltKeyDown() and
not IsShiftKeyDown() and
not IsControlKeyDown()) then
ItemLink = item;
DrunkardSK:SendCommMessage("DSKOpenBid", ItemLink, "RAID");
BidNotOpen = false;
DSKListFrame.closeBid:Enable();
end
end
end
end
Master is set if you are masterlooter and BidNotOpen if there is not currently a bid open. I did have some debugging prints in this function at one point and I saw none of them when the hooking seemed to stop working.
I used window's find command to find them. It feels like a poor man's grep.
Would it be bad to simply rehook the function either on command or on an event? Seems like it would be an easy work around, but I do not know if there would be bad side effects.
Ok so I added all the addons I use that hook HandleModifiedItemClick to optional dependencies and my hook still seems to stop working.
As I said earlier I set the hook up on initialize. Is there any reason it could come unhooked after zoning into an instance? Because it only ever happens on the first loot after zoning into an instance.
The problem I am seeing is that sometimes it seems to come unhooked. Is it possible that some other addon is hooking the same thing and overwriting my hook? If so, is there a way to stop this?
I cannot really test if it is another addon because this is my guilds raid loot distribution addon and I need my other addons running to raid. Also it does not happen all the time. It is very sporadic and simply reloading the ui fixes the issue.
Any help and/or advice would be greatly appreciated!
Could you make the text on the LDB display the current time? So while running an instance you could glance at it to see how long you have been in there.
Drunkard Suicide Kings is my take on a suicide kings addon. While it is not technically a rewrite/revamp of JoeHunk's "Suicide Kings" (none of his code was reused), it was certainly inspired by that addon.
My design philosophy was to make it simple. This means there is no confusing options to set. It simply works right out of the box. Setup the list and you are ready to roll. Of course due to not having options there are restrictions in place to ensure the security and integrity of the lists. The addon was written specifically for use for my own guild (Drunkard of Bloodscalp-US). Thus it may not be flexible enough for everyone. However, I am trying to implement feature requests that fit into my overall design goals.
I'm going to make two guesses: You're using DockingStation, and haven't updated it in the past few days (double display). You're using TipTac (because of the tooltip flicker).
Yep... but it was only Currency that had this issue the other broker things were fine. Thanks for the info.
0
Nope not disabling it.
0
The reason I am trying to use HandleModifiedItemClick is because that would make it usable on any item in any frame. If I wanted to use it for like orbs or something out of the guild bank. Also it is easy to get the itemlink from it.
0
Well they are declared outside of the functions like this...
Does that make them local to my addon? Because that was my intent. However, I have used debugs before to try to solve this issue. When it occurs my HandleModifiedItemClicks function is not called at all.
edit: Should they be declared DrunkardSK.Master and DrunkardSK.BidNotOpen?
0
Yes...
Master is set if you are masterlooter and BidNotOpen if there is not currently a bid open. I did have some debugging prints in this function at one point and I saw none of them when the hooking seemed to stop working.
When someone alt clicks and item the addon opens up bidding on the item to the raid. So, nothing for shift or ctrl.
It seemed the best way to do what I wanted to do.
Yes I use that. It is not an error.
0
I really doubt this has anything to do with my current issue but I am curious.
0
Would it be bad to simply rehook the function either on command or on an event? Seems like it would be an easy work around, but I do not know if there would be bad side effects.
0
As I said earlier I set the hook up on initialize. Is there any reason it could come unhooked after zoning into an instance? Because it only ever happens on the first loot after zoning into an instance.
0
And for sake of clarity what is the difference between a secure hook and a regular hook? How do I know if what I am hooking is secure or not?
0
Fun fun! Thanks for the quick reply!
0
inside my
The problem I am seeing is that sometimes it seems to come unhooked. Is it possible that some other addon is hooking the same thing and overwriting my hook? If so, is there a way to stop this?
I cannot really test if it is another addon because this is my guilds raid loot distribution addon and I need my other addons running to raid. Also it does not happen all the time. It is very sporadic and simply reloading the ui fixes the issue.
Any help and/or advice would be greatly appreciated!
0
0
Edit: This isn't the same as the translation thing above. I am in the US.
0
My design philosophy was to make it simple. This means there is no confusing options to set. It simply works right out of the box. Setup the list and you are ready to roll. Of course due to not having options there are restrictions in place to ensure the security and integrity of the lists. The addon was written specifically for use for my own guild (Drunkard of Bloodscalp-US). Thus it may not be flexible enough for everyone. However, I am trying to implement feature requests that fit into my overall design goals.
Curse Link for downloads
Curseforge Project Link
Feel free to use this thread for any feedback. Many thanks and enjoy!
0
0
Yep... but it was only Currency that had this issue the other broker things were fine. Thanks for the info.