how to auto use horse rental tickets
Posted: 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
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.
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