Page 1 of 1

How to use portable mailbox

Posted: Sun Oct 10, 2010 9:44 pm
by affirm
Hey, i'm just wondering if anyone knows the command to open and drag and drop items into portable mailbox. Any help would be appreciated :)

Re: How to use portable mailbox

Posted: Sun Oct 10, 2010 10:00 pm
by rock5

Re: How to use portable mailbox

Posted: Mon Oct 11, 2010 10:45 am
by Binafus
/script OpenMail();

will open the mail box.

Re: How to use portable mailbox

Posted: Mon Oct 11, 2010 3:03 pm
by radulfizz
Hope this helps:

Code: Select all

    OpenMail()
    PickupBagItem(GetBagItemInfo(i)) --pick up item to be sent
    ClickSendMailItemButton() --drop item into mail slot
    SendMail("MAILRECEIVER", "MAILSUBJECT", "MAILTEXT")
Some issues i couldnt solve so far:

I didnt find a sensible way to close the mail window.
Maybe CloseWindows() works, i'm not sure atm.

Sometimes after opening the mail window and sending mail
the client becomes unresponsive to keyboard input and thus to
input from the bot. This occasionally happens to me during normal
play too, so maybe its some problem on my side.
My ugly but working solution so far is to have the bot send
the Escape key which solves both issues.

Re: How to use portable mailbox

Posted: Mon Oct 11, 2010 8:39 pm
by rock5
radulfizz wrote:I didnt find a sensible way to close the mail window.
Maybe CloseWindows() works, i'm not sure atm.
CloseMail() doesn't work?

Re: How to use portable mailbox

Posted: Mon Oct 11, 2010 9:16 pm
by affirm
radulfizz wrote:Hope this helps:

Code: Select all

    OpenMail()
    PickupBagItem(GetBagItemInfo(i)) --pick up item to be sent
    ClickSendMailItemButton() --drop item into mail slot
    SendMail("MAILRECEIVER", "MAILSUBJECT", "MAILTEXT")
Some issues i couldnt solve so far:

I didnt find a sensible way to close the mail window.
Maybe CloseWindows() works, i'm not sure atm.

Sometimes after opening the mail window and sending mail
the client becomes unresponsive to keyboard input and thus to
input from the bot. This occasionally happens to me during normal
play too, so maybe its some problem on my side.
My ugly but working solution so far is to have the bot send
the Escape key which solves both issues.
I'll try that. thanks :)
Also, question... how do you get all these commands? some of them are on the wiki but how do you get these other ones? just pull them out of thin air?

Re: How to use portable mailbox

Posted: Mon Oct 11, 2010 10:12 pm
by rock5
affirm wrote:Also, question... how do you get all these commands? some of them are on the wiki but how do you get these other ones? just pull them out of thin air?
I assume you are talking about the rombot wiki. There is also a Runes of Magic wiki. Here is the link to the functions page,
http://www.theromwiki.com/List_of_Functions

Re: How to use portable mailbox

Posted: Tue Oct 12, 2010 1:17 am
by affirm
rock5 wrote:
affirm wrote:Also, question... how do you get all these commands? some of them are on the wiki but how do you get these other ones? just pull them out of thin air?
I assume you are talking about the rombot wiki. There is also a Runes of Magic wiki. Here is the link to the functions page,
http://www.theromwiki.com/List_of_Functions
oh wow... so all of those work with rombot aswell? Thanks so much! Now I can try and start learning this stuff :P any tips for a noob on how to learn? Or do I just go through the list and find whatever?

Re: How to use portable mailbox

Posted: Tue Oct 12, 2010 1:25 am
by rock5
affirm wrote:oh wow... so all of those work with rombot aswell? Thanks so much! Now I can try and start learning this stuff :P any tips for a noob on how to learn? Or do I just go through the list and find whatever?
Just think what you want to do and see if you can find a command to do it. Sometimes if you know an addon does what you want to do, you can see what command they use and how they use it.