Code:
// Script created by Mouldy Tacos // This script will cook all of the items in your back pack, close the cooking window, then right click // This script is currently set up to cook bass, cod, trout, salmon, scroll down twice, then cook swordfish and herring // It then closes the cooking window and right clicks // Feel free to adjust the script to your needs // HOW IT WORKS // // You must have the cooking window open and the item you wish to cook highlighted // The first item you cook should be at the top of the list // If you're keeping to the original setup the bass would be first followed by cod, trout, and salmon on the list // You will have to set your mouse co-ordinates for the script to work correctly // Mouse co-ordinates are appropiately labelled in the script // You will have to set the co-ordinates for: // - The Create button // - Food to highlight in the cooking list // - The scroll down button // - The Close/Cancel button // Once all of your mouse co-ordinates are set up it will work everytime as long as you don't move the cooking window // Follow these instructions to change the mouse co-ordinates: // - Highlight 'MousePos XXX, XXX' in the script and press Delete // - Alt+Tab into Darkfall // - Hover your mouse over the area you want it to go to // - Without moving the mouse Alt+Tab into AC Tool and press Ctrl+M. This will automatically input the mouse position into the script // Change the Loop numbers to the number of items you have to cook and you are ready to run the script SetActiveWindow Darkfall Online Constants MouseDelay=10700 End Procedure Cook // Cook food item 1 Delay 1 sec Loop 1 MousePos 678, 665 // Mouse co-ordinates for Create button End Loop 1 // Number of food to cook LeftClick Delay $MouseDelay End // Cook food item 2 Delay 1 sec Loop 1 MousePos 653, 158 // Mouse co-ordinates for item 2 on cooking list LeftClick MousePos 678, 665 // Mouse co-ordinates for Create button End Delay 1 sec Loop 1 // Number of food to cook LeftClick Delay $MouseDelay End // Cook food item 3 Delay 1 sec Loop 1 MousePos 657, 175 // Mouse co-ordinates for item 3 on cooking list LeftClick MousePos 678, 665 // Mouse co-ordinates for Create button End Delay 1 sec Loop 1 // Number of food to cook LeftClick Delay $MouseDelay End // Cook food item 4 Delay 1 sec Loop 1 MousePos 650, 191 // Mouse co-ordinates for item 4 on cooking list LeftClick MousePos 678, 665 // Mouse co-ordinates for Create button End Delay 1 sec Loop 1 // Number of food to cook LeftClick Delay $MouseDelay End // Scroll down list Delay 1 sec Loop 1 MousePos 850, 209 // Mouse co-ordinates for the scroll down button LeftClick Delay 1 sec LeftClick End // Cook food item 5 Delay 1 sec Loop 1 MousePos 651, 191 // Mouse co-ordinates for item 5 on cooking list LeftClick MousePos 678, 665 // Mouse co-ordinates for Create button End Delay 1 sec Loop 1 //Number of food to cook LeftClick Delay $MouseDelay End // Cook food item 6 Delay 1 sec Loop 1 MousePos 661, 206 // Mouse co-ordinates for item 6 on cooking list LeftClick MousePos 678, 665 // Mouse co-ordinates for Create button End Delay 1 sec Loop 1 // Number of food to cook LeftClick Delay $MouseDelay End // Close cooking window and right click Delay 1 sec Loop 1 MousePos 763, 665 // Mouse co-ordinates for Close/Cancel button LeftClick Delay 1 sec RightClick End End Loop 1 Call Cook End