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.
Is there a way to specify which mount to use?
Re: Is there a way to specify which mount to use?
I don't think there is anything in bot for it already but I suspect you can use this
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.
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
where id is the id of the mount you want to use.
Code: Select all
RoMScript("PartnerFrame_CallPartner(2,1)")
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
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
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Is there a way to specify which mount to use?
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.
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
Re: Is there a way to specify which mount to use?
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.
Thanks.
Re: Is there a way to specify which mount to use?
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
Re: Is there a way to specify which mount to use?
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'Just change 'pairs' to 'ipairs' and it should do them in 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- 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
Re: Is there a way to specify which mount to use?
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Is there a way to specify which mount to use?
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