-
abron1
- Posts: 162
- Joined: Wed Feb 22, 2012 12:43 am
#1
Post
by abron1 » Wed Feb 13, 2013 8:02 pm
i took this pieces of code from another post
http://www.solarstrike.net/phpBB3/viewt ... ets#p30470
about 10 post down
Code: Select all
-- First find mount
-- Look in partner bag first
if RoMScript("PartnerFrame_GetPartnerCount(2)") > 0 then
-- There is a mount in the bag. Assign the mountmethod.
mountMethod = "partner"
elseif inventory then -- Make sure inventory has been mapped.
mount = inventory:getMount();
if mount then
mountMethod = "inventory"
else
inventory:useItem(203033); -- horse ticket
inventory:update()
mount = inventory:getMount();
if mount then
mountMethod = "inventory"
end
end
end
but not sure where to put it or where it is to edit it.. have a few alts that do dailies with a mount but don't have one and i would like for the bot to auto use the tickets if a mount or perma mount isn't there.
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#2
Post
by lisa » Wed Feb 13, 2013 9:09 pm
in the onload of the script you can just do this, assuming none of the chars have perm mounts and if they did then you wouldn't have a mount ticket in inventory.
Code: Select all
if not inventory:getMount() then
inventory:useItem(203033); -- horse ticket
end
Basically if you don't have a mount in your bags then it will use a ticket.
-
abron1
- Posts: 162
- Joined: Wed Feb 22, 2012 12:43 am
#3
Post
by abron1 » Thu Feb 14, 2013 2:28 am
ah thanks lisa
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 8 guests