Jump to content
  • 0

Question

Posted (edited)

Hello guys. I want to make 1 NPC with only 2 buttons.  1st button goes to 1 instance and the 2nd one goes to another. Im talking about l2BufferInstance. 

 

This bypass should give access to the buffer from a different NPC with L2Npc type.

Edited by raF

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

You got few possibilites :

 

- the bypass can be written to L2Npc, and with the "else super.blabala", it is supposed to be available to any instance, no matter what.

- you write both bypasses in both NPC instances

- you create a super class, whom both buffers children would heritate from the mother class, cf. a L2WeddingManager can have "Quest" bypass because it's also a L2Npc.

 

L2Character > L2Npc  >  L2SuperBufferInstance (with new bypasses)

                                    |-> buffer A        |-> buffer B

Edited by Tryskell
  • 0
Posted

U got 2 completely different buffers. L2BufferInstance and L2Buffer1Instance. Here is a preview:

 

24mb4ph.png

 

 

I got another one NPC  that is L2NpcInstance which I want to make it work like a link to one of the 2 buffers like i am showed in the picture. I use these links in the HTML of the 3rd NPC and it works, but it only show me the main window. Every move after the main window doesnt work.

action="bypass -h npc_%objectId%_Link mods/buffer/50008.htm"
action="bypass -h npc_%objectId%_Link mods/buffer1/50013.htm"

I guess I have to use the 2nd method u mentioned, but I dont know how exactly to write it. 

  • 0
Posted (edited)

The 2nd point, I guess, simply do all actions, bypasses you want in ONE instance, there is no need for 2 instances. Simply make one instance "more fat", add functions/methods of that 2nd instance. Merge them.

Edited by SweeTs

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock