*** FINAL VERSION! ***
Had a lot of fun with this one and learned a lot about what I have been doing wrong in some of my other scripts. Its time to wrap this one up with version 2.2 and move on to my other projects.
To run this script simply save the file into your Orion scripts folder. Either re-start your Orion Assistant to get the script to show up under "Scripts from folder" or load it from "Script file path" (at least on linux). Select Autostart from the drop down menu and click play. A gump will be displayed showing you a list of options you can edit.
-Items that are red are not setup, click the button beside it and it will turn green or ask for what it needs to get setup.
-When Max Backpack Items is reached, any combination of the following active actions will be performed:
---Turn in Eggs: Will travel to "Rune in Travel Book" and exchange eggs for fey ingots
---Turn in Ingots: Will approach the fey dealer and turn in all ingots for points
---Insure Eggs: Will insure eggs as you pick them up
---Insure Ingots: Will insure any Fey Ingots found in your pack
---Pause When Full: Will cause you to travel to "Rune in Travel Book" then pause the script
---Clicking Recall/Sacred journey will toggle your travel method to the one displayed
---Travel Rune Book: Will ask you to target a new rune book used with "Rune in Travel Book"
---Max Load Screen Delay: Sets the maximum amount of seconds to wait for a lag check to pass
---Delay Before next Recall: Creates a delay after scanning/collecting eggs, and travelling to the next rune
---Rune in Travel Book: This rune will be travelled too any time you go somewhere besides an egg rune
---Use portal for Destard: This will cause you to travel to "Rune in Travel Book", search for and approch, corrupted portal, then say "Dungeon Destard"
---Clicking cancel will return you to the main gump
---Click apply and the settings will be updated
---Selecting default will set all values to false or default.
To get back to the Options penal and make changes later, simply click the pause button on the egg gump, and select 'options' to make any changes.
You can name your rune books "egg book", add they will be cycled through the script automatically. If you don't have any books with that name in your backpack, you will be asked to select a book that contains your egg locations. Simply hit Esc to stop adding books to the list, you can have as many as you want.
If your a more experienced user, or would like to try adding further customization to the script without the risk of breaking it, There are two functions you can safely edit at the top of the script. customCodeOne() will be executed each time you travel, and before you scan for an egg. This allows you to add your own custom additions to the script such as checking for other players, checking your health, for pk's, etc. If your still learning, and make a mistake, simply correct or remove the code in the edit area and you're back to normal. customCodeTwo() works the same way but will be run after completing an egg scan and collecting any eggs and before travelling to the next rune.
The script will recall to each spot in each book, it reads how many runes each book has so they don't need to be full. It will do a quick scan in the area for Eggs and grab any it find before continuing to the next. Once you're pack is full, it will head to rune set in travel book and perform any active actions. This allows you to automatically turn in eggs for ingots, then turn in ingots for points, and continue hunting. You can easily change it to put all the eggs in a bag while collecting, go to a safe spot when pack is full and pause the script. Have it go to a custom spot when you're pack is full and run a custom function you create with the provided functions, like sorting eggs and putting a collection together! Simply edit the options and the script will respond to the updates real time.
You can also assign a hot key to eggScan that will automatically move you to an egg it finds and pick it up if you want to just run around scanning for eggs. To do this, go into your Orion Assistant -> Hotkeys -> Scripts -> Double click here to add new script hotkey. Then, in the box to the right click in the Hotkey: entry and assign your hotkey. Active the "Run one script" box, under script name select the drop down and choose eggScan. You can now use it any time in game as long as the eggHunter.oajs script is active in your Orion Assistant's Scripts tab.
* Version 2.2
* -Created travel function to cleanup some code.
* -General code cleanup
* -Added Options button while script is paused
* -Moved all script options to Options panel in game, now even easier to set up!
* -Added ability to use corrupt portal to get to destard instead of relying on rune book
* Version 2.1
* -Added grab bag option, eggs picked up will be put in selected bag if true.
* -Will now stop walking to egg if pause button is pressed.
* -Added optional delay between recalls, to uhh slow it down(?).
* -Can now name rune books to egg book and avoid being asked to target books.
* -Will no longer be asked for destard book once set, Remove from
* OrionAssistant->Lists->Objects->destardBook to be asked for a new book.
* -Added customCodeOne and customCodeTwo functions to add your own behaviours
* -Updated gump to display egg count individually
* Version 2.0
* -Faster and more responsive than the original!
* -Better Egg scanning, more range.
* -Better interaction with NPCs.
* -Ability to insure eggs/ingots.
* -Can now toggle EggTurnin and IngotTurnin on/off.
* -Added pause once pack is full (Will still recall to destard book location first, it does not have to be destard in this case).
* -Added function to move Eggs from backpack to a container.
* -Can now switch between recall/sacred journey.
* -Added Pause/Resume button.
* -Added ignore egg button (For those porch locked eggs)
* Version 1.0
* -Will recall to array of rune books scanning for and picking up eggs.
* -Will recall to destard book when full and exchange eggs for ingots.
* -Will turn in eggs for points and continue hunting.