Blaises Posted March 5, 2017 Share Posted March 5, 2017 Sometimes you don't remember where you died or were AFK at the time. This adds the sector and cause of death to the insurance email. Edit the Avorion/data/scripts/entity/insurance.lua file and change the section near line 359 from: local mail = Mail() mail.header = mailHeader mail.text = mailText mail.sender = mailSender mail.money = refundedValue to: local lx, ly = Sector():getCoordinates() local deathInfo = "Sector: (${sx},${sy})\nCause: ${cause}\n\n\n" % {sx = lx, sy = ly, cause = Faction(damagers[1]).name or "collision"} local mail = Mail() mail.header = mailHeader mail.text = deathInfo .. mailText mail.sender = mailSender mail.money = refundedValue Only the first contributor to your death will be shown, so if you were being attacked by two different factions the email will only display one. Link to comment Share on other sites More sharing options...
n0etics Posted March 6, 2017 Share Posted March 6, 2017 Serverside, clientside, both? Great idea btw, my friend could have used this last night :D Link to comment Share on other sites More sharing options...
Blaises Posted March 6, 2017 Author Share Posted March 6, 2017 It should only need to be installed on the server, but I haven't really done any testing without it on the client as well. I'll spend some time later trying it out and report back. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now