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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...