Functions for auto use of 30 Day Mounts (From AT Minigame)
Posted: Thu May 21, 2015 7:47 am
UPDATED: Version 1.1
This update will now use item ID for the horse rental tickets. Also fixed it so it will look for at least 1 in inventory (when needed) instead of more than 1.
I have some functions I use in my bots' daily scripts for mounting that utilize the 30 Day mounts, and creates new ones when needed so I thought I'd share it. I made this so I wouldn't have to manually go in to each bot every 30 days to build their 30 Day Mount, and it also removes my need for constantly worrying about sending horse rental tickets to them all.
I made this as a userfunction so if you add this file to your userfunctions directory, then all you have to do is any time you want your bot to mount, type "doMount()
doMount() will first check if the player is already mounted. If not, it will then check for a mount in inventory. If one is found, it will mount. If no mount is found in inventory, it will check inventory for both the Abysmal and Infernal mounts. If found, it will mount up. If not found, it will then check inventory for the items needed to create one. It will first check for Abysmal and if all needed items are found, it will create the mount. If not, it will then check for the items for an Infernal, and if found will create that one. Afterward, if there is still no mount it will check for any horse rental tickets and use one if found. At the end, after mounting, it will apply the speed() function.
***NOTE: the items required to create the 30 Day Mounts must be in the bot's bag inventory (not the bank) for this to create the 30 day mount when needed. If your bot does AT regularly and has all items needed to create both mounts, that uses 11 bag slots.
If you have any questions about this, feel free to ask here. I know my code may not be optimized, but it works and saves me a lot of time from worrying about if my bot has a mount or not.
This update will now use item ID for the horse rental tickets. Also fixed it so it will look for at least 1 in inventory (when needed) instead of more than 1.
I have some functions I use in my bots' daily scripts for mounting that utilize the 30 Day mounts, and creates new ones when needed so I thought I'd share it. I made this so I wouldn't have to manually go in to each bot every 30 days to build their 30 Day Mount, and it also removes my need for constantly worrying about sending horse rental tickets to them all.
I made this as a userfunction so if you add this file to your userfunctions directory, then all you have to do is any time you want your bot to mount, type "doMount()
doMount() will first check if the player is already mounted. If not, it will then check for a mount in inventory. If one is found, it will mount. If no mount is found in inventory, it will check inventory for both the Abysmal and Infernal mounts. If found, it will mount up. If not found, it will then check inventory for the items needed to create one. It will first check for Abysmal and if all needed items are found, it will create the mount. If not, it will then check for the items for an Infernal, and if found will create that one. Afterward, if there is still no mount it will check for any horse rental tickets and use one if found. At the end, after mounting, it will apply the speed() function.
***NOTE: the items required to create the 30 Day Mounts must be in the bot's bag inventory (not the bank) for this to create the 30 day mount when needed. If your bot does AT regularly and has all items needed to create both mounts, that uses 11 bag slots.
If you have any questions about this, feel free to ask here. I know my code may not be optimized, but it works and saves me a lot of time from worrying about if my bot has a mount or not.