My Mining-Ship is weak.
That's a risk but I am usually mining in High Sec anyway so that's no biggie.
However, after being hit by rats hard, the bot returns to the station and stays there ... the whole night.
I didn't like that. So here is what I did:
1.) obj_EVEBot.iss
change
to
2.) obj_Miner.iss (Behaviour)
in method SetState() change
to
then go to function Mine()
change
to
It worked for me ... I haven't been attacked by PVP-Players ever since. So I hope if that's the case the bot will stay in the station.
That's a risk but I am usually mining in High Sec anyway so that's no biggie.
However, after being hit by rats hard, the bot returns to the station and stays there ... the whole night.
I didn't like that. So here is what I did:
1.) obj_EVEBot.iss
change
Code:
variable bool ReturnToStation = FALSE
variable bool Paused = FALSE
variable time NextPulse
variable int PulseIntervalInSeconds = 4
Code:
variable bool ReturnToStation = FALSE
variable bool Paused = FALSE
variable time NextPulse
variable int PulseIntervalInSeconds = 4
variable bool Shieldsdown = FALSE
in method SetState() change
Code:
; If we're in a station HARD STOP has been called for, just idle until user intervention
if ${EVEBot.ReturnToStation} && ${Me.InStation}
{
This.CurrentState:Set["IDLE"]
return
}
Code:
; If we're in a station HARD STOP has been called for, just idle until user intervention
if ${EVEBot.ReturnToStation} && ${Me.InStation}
{
This.CurrentState:Set["IDLE"]
if ${EVEBot.Shieldsdown}
{
UI:UpdateConsole["Setting current state to BASE"]
EVEBot.Shieldsdown:Set[FALSE]
This.CurrentState:Set["BASE"]
EVEBot.ReturnToStation:Set[FALSE]
}
return
}
change
Code:
; This checks our armor and shields to determine if we need to run like hell. If we're being attacked by something
; dangerous enough to get us this damaged, it's best to switch to HARD STOP mode.
if (${Me.Ship.ArmorPct} < ${Config.Combat.MinimumArmorPct} || \
${Me.Ship.ShieldPct} < ${Config.Combat.MinimumShieldPct})
{
UI:UpdateConsole["Armor is at ${Me.Ship.ArmorPct}: ${Me.Ship.Armor}/${Me.Ship.MaxArmor}", LOG_CRITICAL]
UI:UpdateConsole["Shield is at ${Me.Ship.ShieldPct}: ${Me.Ship.Shield}/${Me.Ship.MaxShield}", LOG_CRITICAL]
UI:UpdateConsole["Miner aborting due to defensive status", LOG_CRITICAL]
EVEBot.ReturnToStation:Set[TRUE]
return
}
Code:
; This checks our armor and shields to determine if we need to run like hell. If we're being attacked by something
; dangerous enough to get us this damaged, it's best to switch to HARD STOP mode.
if (${Me.Ship.ArmorPct} < ${Config.Combat.MinimumArmorPct} || \
${Me.Ship.ShieldPct} < ${Config.Combat.MinimumShieldPct})
{
UI:UpdateConsole["Armor is at ${Me.Ship.ArmorPct}: ${Me.Ship.Armor}/${Me.Ship.MaxArmor}", LOG_CRITICAL]
UI:UpdateConsole["Shield is at ${Me.Ship.ShieldPct}: ${Me.Ship.Shield}/${Me.Ship.MaxShield}", LOG_CRITICAL]
UI:UpdateConsole["Miner aborting due to defensive status", LOG_CRITICAL]
EVEBot.Shieldsdown:Set[TRUE]
UI:UpdateConsole["EVEBot.Shieldsdown ${EVEBot.Shieldsdown}", LOG_CRITICAL]
Ship.Drones:ReturnAllToDroneBay
This.CurrentState:Set["DROPOFF"]
EVEBot.ReturnToStation:Set[TRUE]
return
}