Heavily modified core based off Arcemu source.