Page 1 of 1

Is there a way to specify which mount to use?

Posted: Tue Jun 19, 2012 9:53 pm
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.

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

Posted: Tue Jun 19, 2012 11:02 pm
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.

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

Posted: Tue Jun 19, 2012 11:48 pm
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

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

Posted: Wed Jun 20, 2012 10:41 am
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.

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

Posted: Wed Jun 20, 2012 11:35 am
by rock5
Probably your 65% mount hasn't been added to our mount list. Which mount is it?

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

Posted: Wed Jun 20, 2012 11:45 am
by Edamh
It's the Infernal Nightmare Mount (30 Days) mount.

Looks like this (not my image; found on google)
Image

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

Posted: Wed Jun 20, 2012 12:09 pm
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.

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

Posted: Wed Jun 20, 2012 9:54 pm
by lisa
but he said it was using the faster 65% mount, now I am all confused lol

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

Posted: Thu Jun 21, 2012 1:14 am
by rock5
Oops, misread it. But then why didn't he correct me with his next post?