Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

  • 0
Posted

Thanks, Tryskell. :)

Np, but be aware it will affect every single object using that instance.

 

If you want it affects only a few NPCs (really special NPCs), I invite you to create a new instance extending an existing one, and then to @Override onAction as I said higher.

 

You will have only to edit npc.sql about the type to fit with your new instance.

  • 0
Posted

I need only one NPC that would be untargetable, so I can make an instance something like ChristmasTree.java ? :)

You can simply hardcode it if there is only one npc affected. That system is generally not a good one, but after all you make your own pack so...

 

if (npc.getNpcId() == blabla)
{
    actionfail
    return
}

 

Instances are in model.actor.instance

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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..