Delete cursor item not working correctly
Hi all
I am the author of a small addon called Aardvark; the addon will auto destroy listed items when a vendor window is opened. Since 90002 when I visit a vendor the destroy item messages print but the items themselves are not deleted; no matter how many times I close and reopen the vendor window the messages print about the items never leave my bags. I can run the destroy function manually after I have already opened the vendor window and then the items are destroyed. This is the error I get; Lua Code:
I cannot work out why I get the UNKNOWN() error, or why it works fine if the vendor window is already opened. This is my destroy function which fires on the "MERCHANT_SHOW" event; Lua Code:
And here is my full code. I am really stumped with this one, and I am looking for some help to get this going again. |
9.0.2 has protected DeleteCursorItem(), it now requires a hardware event.
This is the error I get when Scrap tries to delete an item (reported by Swatter from the Auctioneer package): "Warning: AddOn Scrap attempted to call a protected function (DeleteCursorItem()) which may require interaction." BugGrabber is incorrectly reporting a hidden function within DeleteCursorItem. When you see UNKNOWN() in an error report, it's actually a function within the C code, which is not exposed ingame. |
Thanks for making me aware of this change.
Has this change got anything to do the crackdown on multiboxing? I have a slash command that does run the function but I suppose that there is no way to automate that slash command. Where is the forum where we can raise issues or questions to the wow api team? |
I actually reported it not being protected as a bug because it could delete literally everything
https://github.com/Stanzilla/WoWUIBugs/issues/13 |
I don't mean to be rude, but at some point, the convenience of addons should win over the inconvenience of someone blindly running a random script or installing a random weakaura.
|
Hi Ketho
I agree with Kanegasi, making this a protected function exacerbates the painful manual typing of "delete" for each and every item that cannot be sold. It gets a bit much that we have to take such nanny state actions to prevent others from running random scripts. If we end up creating rules based on the lowest IQ we will end up all wrapped in cotton wool. |
I know this is a bit old now, but I wrote an addon specifically to delete trash items (or items that I tag as trash) when I run out of bag space. I originally did it for levelling in Classic with small bags, but found it very useful when farming old content in retail.
Now that this function has been borked, is there any way to automatically delete a specific item, or the item in a given bag space? Previously I was using Code:
PickupContainerItem(intBagID, intSlotID); |
Not without a hardware event. It shouldn't be that hard to make a button to click somewhere or a slash command to run that would trigger a purge of unwanted items.
|
All times are GMT -6. The time now is 01:04 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI