Is there a way to specify which mount to use?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Edamh
Posts: 106
Joined: Tue May 24, 2011 11:56 pm

Is there a way to specify which mount to use?

#1 Post by Edamh »

I've recently started doing the AT mini-game, and I've gathered enough mats for 30-day +65% speed mounts which is faster than the +60% mounts that I had bought for my characters.
Is there a way to specify which mount to use within waypoints/profile files?

Thanks.
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Is there a way to specify which mount to use?

#2 Post by lisa »

I don't think there is anything in bot for it already but I suspect you can use this

Code: Select all

RoMScript("PartnerFrame_CallPartner(2,1)")
the 2 is for mount and not some pet.
the 1 is for the first mount, I believe.

Hmm but you want to use a 30day mount instead of a perm mount.

Code: Select all

mount = inventory:getMount();
mount:use()
yrest(500)
repeat
yrest(100);
player:update();
until player.Casting == false
That will find a mount in your inventory and then use it and pause until you are mounted or inturupted.

Or if you want to do a specific item then something like this

Code: Select all

mount = inventory:findItem(id);
mount:use()
yrest(500)
repeat
yrest(100);
player:update();
until player.Casting == false
where id is the id of the mount you want to use.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Is there a way to specify which mount to use?

#3 Post by rock5 »

Yeah, 'mount' checks the partner bag first, on the assumption that, usually, the permanent mounts are better than temporary ones.

You could also remove the mount from the partner bag, then they will beused in the order that you place them. For instance if you put your permaneent mount at the end of your itemshop and, when you have it, you put the 30 day mount at the beginning then player:mount() should use the 30 day mount while it exists. When it expires it will start using your permanent again until you replace the temp one.

Or you could do what Lisa said but I would add a check to see if mount found so it doesn't stop mounting when the mount expires.

Code: Select all

if mount then
   mount:use()
   yrest(500)
   repeat
   yrest(100);
   player:update();
   until player.Casting == false
else
   player:mount()
end
  • 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
User avatar
Edamh
Posts: 106
Joined: Tue May 24, 2011 11:56 pm

Re: Is there a way to specify which mount to use?

#4 Post by Edamh »

As a quick fix (i.e. no added code needed), I followed rock5's suggestion and removed my perm mount out of the partner bag. I then placed my +65% 30day mount before my +60% perm mount in the item bag. Faster 30day mount is used instead of the slower perm mount.

Thanks.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Is there a way to specify which mount to use?

#5 Post by rock5 »

Probably your 65% mount hasn't been added to our mount list. Which mount is it?
  • 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
User avatar
Edamh
Posts: 106
Joined: Tue May 24, 2011 11:56 pm

Re: Is there a way to specify which mount to use?

#6 Post by Edamh »

It's the Infernal Nightmare Mount (30 Days) mount.

Looks like this (not my image; found on google)
Image
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Is there a way to specify which mount to use?

#7 Post by rock5 »

Just remembered you were talking about the AT nightmare mounts. They have been added so I'm not sure why it's doing them in the wrong order.

Actually just had a look at the inventory:getmount function. It doesn't actually search by slot order, it just uses 'in pairs' so it is possible it is searching out of order. We should really make more effort to use ipairs which would have done it in order.

Edit: Actually, I just added a few mounts and I'll change it to use 'ipairs' as well. But until I commit you could try changing it yourself. It's about line 666 of 'inventory.lua'

Code: Select all

	for slot,item in pairs(self.BagSlot) do
Just change 'pairs' to 'ipairs' and it should do them in order.
  • 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Is there a way to specify which mount to use?

#8 Post by lisa »

but he said it was using the faster 65% mount, now I am all confused lol
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Is there a way to specify which mount to use?

#9 Post by rock5 »

Oops, misread it. But then why didn't he correct me with his next post?
  • 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
Post Reply