Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(possibly bug) Auctioner not deleting Sale Pending messages from mailbox

  • Product: WRobot General
  • Type: Bug
  • Status: Not a Bug

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

Fq8uDFm.png

User Feedback

Recommended Comments

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

Elite user

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

BetterSister

Elite user

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

BetterSister

Elite user

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

AMIT9zP.png

BetterSister

Elite user

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

BetterSister

Elite user

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

 

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

Members

this gives an "unexpexted symbol near then" error

dida1990

Members

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

 

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

BetterSister

Elite user

Then to write this code into a plugin :smile:

dida1990

Members

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

how can that be?

twbp

Members

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

 

skaljic1

Members

Any update on this?

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.