The change of code works perfectly.
You only get charged once.

Kruger was not hostile so I couldn't grind it.

If the pirates that kill you off turn up when you are in Kruger, pirates do get hostile.

All pirates turn against you.
I used god mode to take the tug all over the place and get lots of cash from Zebos warehouse trading.
Tug is renowned for ramming for attacks.

Ramming a stone arrow didn't work as the stone arrow would have taken longer then I was willing to wait to go boom.
I wanted to disable this so that traders with tug could live the dream of trading their way through the mothership mod.
I am thinking of changing the 1000 fine and hostile pirates to a Piracy agreement, where you pay a fee to join a piracy guild.
Just like the donation systems for pirates that pop up through the game with a dialog box.
Some how changing the hostile pirates into an escort which like the Mercs asks for a escort fee every system.
So the initial pirate contact would be an escort after agreement.
Further expansion would then be to turn the money asking pirates into escorts that ask for a donation to provide you with an escort in the system, instead of disappearing if you pay them.
So giving the random pirate events some benefit other then just no and killing them off.
Of course your escorts would get killed off fast.

But the cost of the escort would be made relative to the amount of parts that would be left over after they were killed.
So bitz by them and their enemies leave.
Just thoughts.
I went back and did the mission to get the Heavy Trader, later on and got the hostile 6 Pirates again with another 1000 fee, but with the heavy trader I had guns and could take care of them.
So now I am cruising around in a heavy trader with two Asmodeus turrets and 4 Icebergs.

Nothing like a Liger, but Fun.
Zebos Trading still.
Just wishing I know how to fix the Fronn to Zebos Portal to be able to sneak into Zebos and with Mercs, do a snatch and grab on the warehouse.

3 Kalis and a Tungsten should allow me to do it with Mercs. Legit.
I can pay off any corp that doesn't like me.
BE safe.