carbonfire
Member
I cannot get my bot to move my ship's cargo to my item hangar for the life of me. I read the documentation here, and I tried basically every combination of possible arguments for the MoveTo() method to no avail.
My Code:
In MoveTo, I tried basically every combination, not just the one above.
In the docs, it says
My Code:
Code:
echo("Storing Cargo");
using (new FrameLock(true))
{
Ext.Me.Ship.StackAllCargo();
List<Item> cargo = Ext.Me.Ship.GetCargo();
foreach (Item i in cargo)
{
echo("Storing " + i.Name + ".");
Ext.Me.Ship.Cargo(i.Name).MoveTo(1, "Hangar");
}
}
In the docs, it says
So I tried that. But the part that confuses me is that just before the list of possible destinations, it saysPossible Destinations:
1. CargoHold (The traditional cargo hold)
2. DroneBay
....
13. Hangar (For this destination, you can enter any positive integer for the ID#)
So which is it? What do I put if I want to move an item from my ship to my item hangar?Can be used in place of <ID#>
1. MyShip
2. MyStationHangar
3. MyStationCorporateHangar