Jython FAQ
Q. Why my script does not work?
First of all - read python language documentation. People often make such errors as mixing spaces and tabulators in indentation, use incorrect operators and so on. Try to reload your quest - during initialization (import) errors are silently ignored. If you use reaload function - you will see error messages.
Q. How can I see errors or reload my quest script during the quest debug?
Type admin command in the client's console like:
//jython import data.quests.Foo; reload Foo
to reload quest Foo.
Special command added to reload jython quests:
//reload_quest Name
which is equivalent to the command above, and can be placed to macro.
Q. How do I actually make the server load the quests after I have installed jython?
By loading init.py in datapack folder, which loads init.py in quests folder, which loads init.py of each quest.
Note, -Dpython.path must point to Datapack dir, not 'data' subdirectory in Datapack
Q. How can I set conditions like this quest is only for level 35 and more?
By code like
if st.getPlayer().getLevel() < 35 : st.exitQuest(True) # can restart quest later return "YouNeedLvl35.htm"
Q. Have followed this guide to the letter yet nothing happens when I click on a Quest link ingame. Any idea why?
If you are sure that your quest is correct and l2j server can load the quest, check that the action for Quest link in NPC's .htm file is
<a action="bypass -h npc_%objectId%_Quest">
