Bot doesnt work when open mailbox.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
miximixi007
Posts: 94
Joined: Sat Apr 17, 2010 1:18 pm

Bot doesnt work when open mailbox.

#1 Post by miximixi007 »

Why it show me like this:

Code: Select all

We found Mailbox and will harvest it.
[string "       ..."]:7: attempt to call global 'GetInboxHeaderInfo' (a nil value)

Code: Select all

<waypoints type="RUN">
	<!-- #  9 --><waypoint x="-23691" z="4520">	
                player:target_Object("Mailbox")
                yrest(5000);
--MAIL_INBOX_UPDATE
--local numMails = GetInboxNumItems();
local packageIcon, sender, subject, COD, moneyMode, money, 
      daysLeft, paperStyle, items, wasRead, wasReturned, canReply = GetInboxHeaderInfo(1)
if (money ~= nil and money>0) or 
   (items ~= nil and items>0) then
   TakeIndoxItem(1);
else
    loadPaths("test");
end
	</waypoint>
</waypoints>
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Bot doesnt work when open mailbox.

#2 Post by rock5 »

miximixi007 wrote:Why it show me like this:

Code: Select all

We found Mailbox and will harvest it.
[string "       ..."]:7: attempt to call global 'GetInboxHeaderInfo' (a nil value)
If you want to use any in-game functions you have to use sendMacro() or RoMScript(). Read up on those. Be aware that there is a 256 character limit so you might not get all the information.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
miximixi007
Posts: 94
Joined: Sat Apr 17, 2010 1:18 pm

Re: Bot doesnt work when open mailbox.

#3 Post by miximixi007 »

:) Thx for your always help
Post Reply