Page 1 of 1

Interacting with the mailbox (Help)

Posted: Mon Jan 25, 2010 9:16 am
by VoiD
I was going to make my bot do stuff like:

-Target and open the Mailbox
-Open received mail and pick up items then delete that mail
-Send items via mail

What I'm looking for is either useful bot command or rom API command that I could run with sendmacro();

My biggest problem is to actually "open" the mailbox coz you cant really target it the same way you do with an NPC... :/
So how do you folks use the mailbox with the bot ? o_O

I'd prefer not to use any addons but if there is no alternative... :'(

Can anyone help me ? Coz the list of RoM API functions on their wiki is HUGE, would take me days... :P

Re: Interacting with the mailbox (Help)

Posted: Tue Jan 26, 2010 10:25 am
by depp69
i already tried, to do that, there is only sth like showmailframe, but this window is only a dummy
doesnt work actually, same problem with the dailyquestboard ...
as far as i know, theres no solution for this problem atm ...
i guess the only way atm, would be using the mobile mailbox item from rubyshop

Re: Interacting with the mailbox (Help)

Posted: Tue Jan 26, 2010 10:40 am
by raff
Hi,

I found out that you can target and open the mailbox with "attack" or macro in Dragonfang Ridge, but it seems, its the only mailbox, where it works.

Image

Re: Interacting with the mailbox (Help)

Posted: Tue Jan 26, 2010 2:11 pm
by VoiD
The mobile mailbox items will come in handy for sure since its only 15 rubys. But still finding a non costly methode would be ideal.

Have you tried the "showmailframe" while you where near a mailbox ? I tried finding that function but no luck (tried some similar ones near the mailbox but none made anything appear)... Could be that the command you where talking about only works if ur near a mialbox... :/

The attackable mailbox is quite far away... but once again it could come in handy... lets hope they don't patch that... :P

Well looks like the left click for now is the only option. To do that, the best would be to set a camera angle to view the mailbox and your character form above, then click the mailbox... that way you could pretty much effectively avoid clicking other idiot players that come to near the mailbox... -_-

Is there a way to check if a specific ingame window is open ? Would be nice if we could check if the mailbox window is open, and if not try clicking again... would avoid some nasty errors like dropping items into empty space... :/

Re: Interacting with the mailbox (Help)

Posted: Tue Jan 26, 2010 4:36 pm
by Administrator
To move items, it's probably better to use RoM API functions.

Notable functions:
CloseMail
GetSendMailItem
OpenMail_Delete
OpenMail_Reply
OpenMail_Update
OpenMail
SendMail
SetSendMailCOD
SetSendMailMoney
You can see the frames here. To show the mailbox, try this:

Code: Select all

RoMScript("MailFrame:Show()");
Also, it would be wise to try getting mail-oriented addons from curse.com then dissect them to understand how to send and recieve items or money.

Re: Interacting with the mailbox (Help)

Posted: Sat Feb 13, 2010 8:04 pm
by S3v3n11
FYI,

I just created an ingame macro with the following text:

/script MailFrame:Show();

And it opened the mail box.

Thanks to the DEVs for this info!

Re: Interacting with the mailbox (Help)

Posted: Fri Feb 26, 2010 4:30 pm
by S3v3n11
Ok, I can get the mailbox to open with MailFrame:Show but now how do I close it? CloseMail does not seem to work.

Any Ideas?

Re: Interacting with the mailbox (Help)

Posted: Fri Feb 26, 2010 4:35 pm
by S3v3n11
Got it!

/script MailFrame:Hide();

Thanks all!

Re: Interacting with the mailbox (Help)

Posted: Mon Mar 08, 2010 1:45 am
by rock5
Hold on a sec, that does not work.

It will open the mailbox frame but it wont be functional. The only way to open a functional mailbox, or bulletin board for that matter, is to click on it(as far as I know).

The only exception is if the mailbox or bulletin board is an NPC or has a corresponding NPC, in which case you can use target_NPC.

Re: Interacting with the mailbox (Help)

Posted: Mon Mar 08, 2010 6:53 am
by S3v3n11
rock5 wrote:Hold on a sec, that does not work.

It will open the mailbox frame but it wont be functional. The only way to open a functional mailbox, or bulletin board for that matter, is to click on it(as far as I know).

The only exception is if the mailbox or bulletin board is an NPC or has a corresponding NPC, in which case you can use target_NPC.
You are correct sir!