How to bypass two different PY scripts in the same npc

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
DrGonzo
Posts: 16
Joined: Sun Sep 29, 2013 4:20 pm

How to bypass two different PY scripts in the same npc

Post by DrGonzo »

I have a custom NPC (ID is 9999). I want to start 2 different quest scripts in python from this.

In the main HTML there are two buttons.

FIRST

Code: Select all

<button value="First Quest" action="bypass -h npc_%objectId%_Quest 9999_Npc" width=170 height=52 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
This works fine. I have a folder named 9999_Npc where is the script __init__.py.


SECOND

Code: Select all

<button value="Second Quest" action="bypass -h npc_%objectId%_Quest 555_Npc" width=170 height=52 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
The same, I have a folder named 555_Npc where is the script py.

This does not work.
Changed bypass to "bypass -h Quest 555_Npc", but no way.

Pushing the button nothing happens, just close the window. There are no errors in console or in scripts and if I run these scripts in two different NPC, they are ok.

Please help, thank you
DrGonzo
Posts: 16
Joined: Sun Sep 29, 2013 4:20 pm

Re: How to bypass two different PY scripts in the same npc

Post by DrGonzo »

Oh, btw.. I can't merge the two scripts.
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Re: How to bypass two different PY scripts in the same npc

Post by disorder35 »

Code: Select all

NPC_ID = USE YOUR NPC ID
I guess on both scripts.
So What?????
DrGonzo
Posts: 16
Joined: Sun Sep 29, 2013 4:20 pm

Re: How to bypass two different PY scripts in the same npc

Post by DrGonzo »

Thx disorder35, but NPC_ID is correct in both scripts..

The first script works, not the second. And I don't know how to do..
I'm not really experienced on programming on L2j with these languages, where could be the error?

It seems there are no problems with the code, as scripts works fine separately. And there are no compiling errors....
:| Really confused..
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: How to bypass two different PY scripts in the same npc

Post by Zoey76 »

If the NPC ID is the same, you must check both script won't register it for on first talk.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
DrGonzo
Posts: 16
Joined: Sun Sep 29, 2013 4:20 pm

Re: How to bypass two different PY scripts in the same npc

Post by DrGonzo »

Zoey76 wrote:If the NPC ID is the same, you must check both script won't register it for on first talk.
Ok solved, thanks!
Post Reply