Firerain Posted August 27, 2009 Share 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 Link to comment Share on other sites More sharing options...
0 Horus Posted August 27, 2009 Share 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 Link to comment Share on other sites More sharing options...
0 Firerain Posted August 27, 2009 Author Share Posted August 27, 2009 Sorry, I'm new to this whole developing thing. How would I go about creating a new instance? Quote Link to comment Share on other sites More sharing options...
0 Firerain Posted August 27, 2009 Author Share Posted August 27, 2009 Bump =o Quote Link to comment Share on other sites More sharing options...
0 Horus Posted August 28, 2009 Share 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 Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.