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

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