Jump to content
  • (possibly bug) Auctioner not deleting Sale Pending messages from mailbox


    After these pile up there is so many mails game will crash

    Fq8uDFm.png



    User Feedback

    Recommended Comments

    Droidz

    Posted

    Hello, are you sure that this problem was not caused by your addon or server (or an wow settings)? Message is deleted for moi.

    BetterSister

    Posted

    Probably because of server. I'm playing on warmane's Lordaeron

    Droidz

    Posted

    when you click on red cross message is deleted? If yes, can you give me button name please.

    BetterSister

    Posted

    The button is added by Postal addon. I'll look into it in sec

    BetterSister

    Posted

    The red cross returns Nil because it's addon-created but you could use inmail Delete button "OpenMailDeleteButton" and it works

    AMIT9zP.png

    BetterSister

    Posted

    Actually this private server side bug is now preventing the bot from taking more mails from mailbox

    BetterSister

    Posted

    button that opens mail is called "MailItem1Button" and deletion button is called "OpenMailDeleteButton". Could you make it check after finishing taking mails if clicking MailItem1Button fires event LuaEventsId.MAIL_SHOW ? if true use button OpenMailDeleteButton. After this try taking items again... empty mail button is called "MailFrame"

    az5YTVL.png

     

    Droidz

    Posted

    I am sorry but I cannot add code to remove mail (I cannot test if user want keep or not mail).

    To remove quickly mails, you can run this lua code in tab "Tools" > "Development Tools" > paste code and click on button "Lua (return value in 'ret')":

     

    for i = 1, GetInboxNumItems() do 
    	local packageIcon, stationeryIcon, sender, subject, money, CODAmount, daysLeft, hasItem, wasRead, wasReturned, textCreated, canReply, isGM = GetInboxHeaderInfo(i);
    	if hasItem == nil or  hasItem == 0 or not hasItem then 
    		if  money == 0 or not money then
    			DeleteInboxItem(i); 
    		end
    	end
    end

    (this code remove all mails without money/item)

    dida1990

    Posted

    this gives an "unexpexted symbol near then" error

    dida1990

    Posted

    Maybe like this?

    for i = 1, GetInboxNumItems() do 
    	local packageIcon, stationeryIcon, sender, subject, money, CODAmount, daysLeft, hasItem, wasRead, wasReturned, textCreated, canReply, isGM = GetInboxHeaderInfo(i);
    	if hasItem == nil or  hasItem == nil  then 
    		if  money == nil  then
    			DeleteInboxItem(i); 
    		end
    	end
    end

     

    Droidz

    Posted

    25 minutes ago, dida1990 said:

    Maybe like this?

    
    for i = 1, GetInboxNumItems() do 
    	local packageIcon, stationeryIcon, sender, subject, money, CODAmount, daysLeft, hasItem, wasRead, wasReturned, textCreated, canReply, isGM = GetInboxHeaderInfo(i);
    	if hasItem == nil or  hasItem == nil  then 
    		if  money == nil  then
    			DeleteInboxItem(i); 
    		end
    	end
    end

     

    Sorry, I have fixed my first post: http://wrobot.eu/bugtracker/possibly-bug-auctioner-not-deleting-sale-pending-messages-from-mailbox-r386/?do=findComment&comment=2794

    dida1990

    Posted

    Currently it is just deleting one item for each run although there is a "for if" loop :/

    how can that be?

    twbp

    Posted

    i have tried this and it isnt working. any other way of doing this?

     



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...