Page 1 of 1

how to auto use horse rental tickets

Posted: Wed Feb 13, 2013 8:02 pm
by abron1
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.

Re: how to auto use horse rental tickets

Posted: Wed Feb 13, 2013 9:09 pm
by lisa
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.

Re: how to auto use horse rental tickets

Posted: Thu Feb 14, 2013 2:28 am
by abron1
ah thanks lisa