Firerain Posted August 27, 2009 Posted August 27, 2009 I'm trying to make a door that opens only when you have a specific item. Any idea on how to do this? Quote
0 Horus Posted August 27, 2009 Posted August 27, 2009 Just make a new Instance extending L2DoorInstance and Override the onAction(L2PcInstance yourchar) to smth like if(activeChar.getInventory().contains(youritemid) this.openMe(); Quote
0 Firerain Posted August 27, 2009 Author Posted August 27, 2009 Sorry, I'm new to this whole developing thing. How would I go about creating a new instance? Quote
0 Horus Posted August 28, 2009 Posted August 28, 2009 If you're new then this is way out of your lead. I recommend you to get Eclipse and read the core extensively. When you think you have achieved a decent knowledge level just open model.actor.instance and based on the other instances (Extend L2DoorInstance) make up your own. Quote
Question
Firerain
I'm trying to make a door that opens only when you have a specific item. Any idea on how to do this?
4 answers to this question
Recommended Posts
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.