MoveTo error

A_L_F

Member
When I run the script, the items dont move inside the ship cargo - eve send the info that item is locked.
more attached

case QuestorState.LoadStuff:
Globals.Instance.Character.Ship.OpenCargo();
Globals.Instance.Eve.Execute(EVE.ISXEVE.ExecuteCommand.OpenHangarFloor);
Globals.Instance.Character.StackAllHangarItems();

var cargo = Globals.Character.GetHangarItems();
Globals.print("items" + cargo.Count.ToString());
if (cargo == null)
break;
foreach (var item in cargo)
{
item.MoveToMyShip();
Globals.print("presun x");
Thread.Sleep(500);
}
Globals.print("presunuto");
State = QuestorState.Idle;
break;


edit:
I tried the function item.MoveTo(ShipID).
recognize this problem. If I want to move the unpackage items, all is ok. But if I repackage these items, the script cant move them, they are blocked. If I fit this items (modules) and unfit them (they are again unpackage), the script move them.
 

Attachments

Last edited:

Dim454

Member
variable index:item HangarShips
variable int HangarShipsCount
HangarShipsCount:Set[${Me.Station.GetHangarShips[HangarShips]}]
variable index:item HangarItems
variable int HangarItemsCount
HangarItemsCount:Set[${Me.Station.GetHangarItems[HangarItems]}]
variable int i = 0

function main()
{

EVE:Execute[OpenHangarFloor]
wait 15
Me.Station:StackAllHangarItems
wait 15
EVE:Execute[OpenShipHangar]
wait 15



do
{
if (${HangarItems.Get[${i}].TypeID} == ${mytypeID})
{
move the items
}
}
while ${i:Inc} <= ${HangarItemsCount}

i:Set[1]

do
{
if (${HangarShips.Get[${i}].TypeID} == ${mytypeID})
{
move the items
}
}
while ${i:Inc} <= ${HangarShipsCount}

i:Set[1]
}
 

Dim454

Member
function main()
{


variable index:item HangarShips
variable int HangarShipsCount
HangarShipsCount:Set[${Me.Station.GetHangarShips[HangarShips]}]
variable index:item HangarItems
variable int HangarItemsCount
HangarItemsCount:Set[${Me.Station.GetHangarItems[HangarItems]}]
variable int i = 0

EVE:Execute[OpenHangarFloor]
wait 15
Me.Station:StackAllHangarItems
wait 15
EVE:Execute[OpenShipHangar]
wait 15



do
{
if (${HangarItems.Get[${i}].TypeID} == ${mytypeID})
{
move the items
}
}
while ${i:Inc} <= ${HangarItemsCount}

i:Set[1]

do
{
if (${HangarShips.Get[${i}].TypeID} == ${mytypeID})
{
move the items
}
}
while ${i:Inc} <= ${HangarShipsCount}

i:Set[1]
}
 

Dim454

Member
function main()
{


variable index:item HangarShips
variable int HangarShipsCount
HangarShipsCount:Set[${Me.Station.GetHangarShips[HangarShips]}]
variable index:item HangarItems
variable int HangarItemsCount
HangarItemsCount:Set[${Me.Station.GetHangarItems[HangarItems]}]
variable int i = 0

EVE:Execute[OpenHangarFloor]
wait 15
Me.Station:StackAllHangarItems
wait 15
EVE:Execute[OpenShipHangar]
wait 15



do
{
if (${HangarItems.Get[${i}].TypeID} == 23559)
{
${HangarItems.Get[${i}]}:MoveTo[MyShip]
}
}
while ${i:Inc} <= ${HangarItemsCount}

i:Set[1]

do
{
if (${HangarShips.Get[${i}].TypeID} == 23559)
{
${HangarShips.Get[${i}]}:MoveTo[MyShip]
}
}
while ${i:Inc} <= ${HangarShipsCount}

i:Set[1]
}
 
Last edited:

Dim454

Member
function main()
{


variable index:item HangarShips
variable int HangarShipsCount
HangarShipsCount:Set[${Me.Station.GetHangarShips[HangarShips]}]
variable index:item HangarItems
variable int HangarItemsCount
HangarItemsCount:Set[${Me.Station.GetHangarItems[HangarItems]}]
variable int i = 0

EVE:Execute[OpenHangarFloor]
wait 15
Me.Station:StackAllHangarItems
wait 15
EVE:Execute[OpenShipHangar]
wait 15



do
{
if (${HangarItems.Get[${i}].TypeID} == 1317)
{
echo got here
HangarItems.Get[${i}]:MoveTo[MyShip]
}
}
while ${i:Inc} <= ${HangarItemsCount}

i:Set[1]

do
{
if (${HangarShips.Get[${i}].TypeID} == 1317)
{
HangarShips.Get[${i}]:MoveTo[MyShip]
}
}
while ${i:Inc} <= ${HangarShipsCount}

i:Set[1]
}
 
Top Bottom