Jump to content

Suggestion

Posted

When starting a server, it would be useful to have the spawn sector be free of pirates and have pvp/ collision damage in that sector disabled.

Without going too far into detail, is this possible in the demo via script gymnastics?

2 answers to this suggestion

Recommended Posts

  • 0
  • Boxelware Team
Posted

Free of pirates yes, free of damage no. You'll have to modify the start sector script as well as some player scripts so they won't spawn enemies.

  • 0
Posted

For pirates just open

data/scripts/startsector.lua

find line

    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")

change to

    Sector():addScript("data/scripts/sector/events.lua")

And it should work.

 

For ayy lmaos

in data/scripts/player/attack.lua

    if Server().difficulty == Difficulty.Insane then
        updateSuperAction()
    else
        updateNormal()
    end

change to

    if Server().difficulty == Difficulty.Insane then
        updateSuperAction()
    else
	local x,y = Sector():getCoordinates()
	if x ~= -139 or y ~= 427 then
		updateNormal()
	end
    end

Note that you will need to change -139 and 427 to your home sector coordinates.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...