first attempt

fathersineve

Active Member
I want to have something that turns on certain slots everytime I enter space any help would be great.

Code:
function main()
{
if !${Me.InSpace} 
if ${MyShip.Module[MedSlot0].ToItem.GroupID}==316 && !${MyShip.Module[MedSlot0].IsActive}
MyShip.Module[MedSlot0]:Activate
if ${MyShip.Module[MedSlot1].ToItem.GroupID}==316 && !${MyShip.Module[MedSlot1].IsActive}
MyShip.Module[MedSlot1]:Activate
if ${MyShip.Module[MedSlot2].ToItem.GroupID}==316 && !${MyShip.Module[MedSlot2].IsActive}
MyShip.Module[MedSlot2]:Activate
if ${MyShip.Module[LowSlot0].ToItem.GroupID}==316 && !${MyShip.Module[lowSlot0].IsActive}
MyShip.Module[LowSlot0]:Activate
}
 

GliderPro

Active Member
Code:
function main()
{
  if !${Me.InSpace} 
  {
    if ${MyShip.Module[MedSlot0].ToItem.GroupID}==316 && !${MyShip.Module[MedSlot0].IsActive}
    {
      MyShip.Module[MedSlot0]:Activate
      wait 10
    }
    if ${MyShip.Module[MedSlot1].ToItem.GroupID}==316 && !${MyShip.Module[MedSlot1].IsActive}
    {
      MyShip.Module[MedSlot1]:Activate
      wait 10
    }
    if ${MyShip.Module[MedSlot2].ToItem.GroupID}==316 && !${MyShip.Module[MedSlot2].IsActive}
    {
      MyShip.Module[MedSlot2]:Activate
      wait 10
    }
    if ${MyShip.Module[LowSlot0].ToItem.GroupID}==316 && !${MyShip.Module[lowSlot0].IsActive}
    {
      MyShip.Module[LowSlot0]:Activate
      wait 10
    }
  }
}
 

fathersineve

Active Member
something not working

Code:
function main()
{
  echo "turn on"
  {
    if !${Me.Ship.Module[MedSlot0].IsActive} 
    {
      Me.Ship.Module[MedSlot0]:Click
      wait 10
    }
    if !${Me.Ship.Module[MedSlot1].IsActive} 
    {
      Me.Ship.Module[MedSlot1]:Click
      wait 10
    }
    if !${Me.Ship.Module[MedSlot2].IsActive} 
    {
      Me.Ship.Module[MedSlot2]:Click
      wait 10
    }
    if !${Me.Ship.Module[MedSlot3].IsActive} 
    {
      Me.Ship.Module[MedSlot3]:Click
      wait 10
    }
  }
}
Something about the if !${Me.InSpace} is not working
this code right here works fine it clickes all my medium modules but, I want it to do this whenever I'm not docked essentially not sure what to do I've tried a few things like adding && !${Me.InSpace} to each line but, that didn't work. Any help would be great.
 
Top Bottom