I had a small issue with the hauler flying off 40km to pickup a can from a rat (someone salvaged the wreck, turned into a can, hauler was happily going after it to pick it up). For me it completely fucked up my hauler routine (going after 5-6 cans spread over 40km took too long).
This patch is for iss_Hauler.iss again :
Note this is not a complete patch !!
It assumes your part of the same corp, if your not then the jetcans wont be picked up correctly !!
This is evident in the fact that canprefix gets set to me.corpticker. Keep this in mind !
This patch is for iss_Hauler.iss again :
Code:
method BuildJetCanList(int id)
{
variable index:entity cans
variable int idx
EVE:DoGetEntities[cans,GroupID,12]
idx:Set[${cans.Used}]
Entities:Clear
variable string CanPrefix = "${Me.CorporationTicker}"
while ${idx} > 0
{
if ${cans.Get[${idx}].Name.Left[${CanPrefix.Length}].Equal[${CanPrefix}]}
{
if ${cans.Get[${idx}].Owner.CharID} == ${id}
{
Entities:Queue[${cans.Get[${idx}]}]
}
}
idx:Dec
}
UI:UpdateConsole["BuildJetCanList found ${Entities.Used} cans nearby."]
}
It assumes your part of the same corp, if your not then the jetcans wont be picked up correctly !!
This is evident in the fact that canprefix gets set to me.corpticker. Keep this in mind !