DroneSaver Script

RedMan

Active Member
I keep forgetting to recall my drones when missioning and its a pain to go back for them! Hence.... My first lavishscript!

Feedback on scripting style welcomed as well here.

Code:
function main()
{
	variable index:int dronelist
	variable bool WarpNoticed = false
	echo "Dronesaver running"
	Script:Unsquelch
		
	/* Set Turbo to lowest value to try and avoid overloading the EVE Python engine */
	Turbo 20
	
	while TRUE
	{
		if (${Me.ToEntity.Mode}==3)
		{
			if (!${WarpNoticed})
			{
				echo Dronesaver: Warping, retreiving ${Me.GetActiveDroneIDs[dronelist]} drones
				EVE:DronesReturnToDroneBay[dronelist]	
				WarpNoticed:Set[TRUE]
			}
		}
		else
		{
			if (${WarpNoticed})
			{
				echo "Dronesaver: Done warping"
				WarpNoticed:Set[FALSE]
			}
		}
		waitframe
	}
}
The purpose here is simply to recall drones while "alligning". If they have far to travel to get back you might end up leaving them behind. This is designed for the simple case where you have finished in an area and your drones have returned to orbit you then you warp out forgetting to recall them.

Enjoy!

RedMan
 

bowie

Senior Member
Anyone know what needs to change in this script to get it working now?

Code:
${Me.GetActiveDroneIDs[dronelist]}
returns NULL
 
Top Bottom