Sign in to follow this  
byxoft

server mod Custom NPC - log killer :) help pls

Recommended Posts

Hi

I would like to ask you for a favor

it can be removed from the code info about start movement and finished movement custom npc to log?

*************************************************************
    public void setNextMovement(IMovementStep nextMovement) {
        if (nextMovement != null) {
            CustomNpcMod.logInfo(String.format("New movement for %s: %s", getCreature().getName(), nextMovement.toString()));
        }
        this.nextMovement = nextMovement;
*************************************************************
        if ((next != null) && next.pollMovement(creature, creature.getStatus(), this, data, delta)) {
            CustomNpcMod.logInfo(String.format("Movement finished for %s: %s", creature.getName(), next.toString()));
            data.setNextMovement(null)
*************************************************************

I think it slows down the system and fills the log unnecessarily

Thank you very much

Share this post


Link to post
Share on other sites

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
Sign in to follow this