Jump to content
  • 0

Bypass To Npc Which Starts Quest


Question

Posted

Hello L2java developers!

 

I have faced 1 issue. I am trying to make AIO NPC and my custom npc is starting quest on talk.

The question is: how do I force my main NPC to bypass to that NPC and start that quest?

4 answers to this question

Recommended Posts

  • 0
Posted

You can add a check to add the quest whenevert player talks to a npc, if you don't work with source code, the only way to start the quest is bypass

  • 0
Posted

Well my main NPC already got quest which starts on talk, I want to add additional button to it which will start quest from second NPC but will be displayed in 1st npc window

Get the method that are you using to start the quest inside onTalk() and c/p it inside onAdvEvent() with a check like "if(npc.getId() == YourNpcId && event.equals("startquest2"){blabla}" and inside the html use "action='bypass -h npc_%objectId%_Quest NameofTheQuest startquest2'" or whatever...

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