TheBurningGamer
Member
So I've just slightly modified the script from the snippets section to move meta 4 items or higher from a personal hangar to ship cargo
However when it runs, it fails to go into the if statement within the while loop. I'm not sure what I'm missing as this script should be fairly basic and work.
Code:
function main()
{
if !${Me.InStation}
return
; Open cargo hold of ship for the duration of item manipulation
EVE:Execute[OpenCargoHoldOfActiveShip]
wait 30
; Open Hangar
EVE:Execute[OpenHangarFloor]
wait 25
variable index:item MyHangarItems
variable int i = 1
variable int MyHangarItemsCount
MyHangarItemsCount:Set[${Me.Station.GetHangarItems[MyHangarItems]}]
do
{
echo ${MyHangarItems.Get[${i}].MetaLevel}
if (${MyHangarItems.Get[${i}].MetaLevel} >= 4)
{
MyHangarItems.Get[${i}]:MoveTo[MyShip]
wait 12
}
}
while ${i:Inc} <= ${MyHangarItemsCount}
; After everything is done ...let's clean up the stacks.
Me.Ship:StackAllCargo
; Close cargo hold of ship
EVE:Execute[OpenCargoHoldOfActiveShip]
wait 12
echo Script Ended
}
Last edited: