Hello, I got a little problem. I wanted to make custom tutorial quest, but I faced with one problem:
Sep 25, 2011 5:41:28 PM com.l2jserver.gameserver.model.quest.Quest showError
WARNING: C:\Users\Rimvis\Desktop\L2 Server\gameserver\data\scripts\quests\255_Tutorial\__init__.py
Traceback (innermost last):
File "__init__.py", line 201, in onAdvEvent
UnboundLocalError: local: 'htmltext'
at org.python.core.Py.UnboundLocalError(Unknown Source)
at org.python.core.PyFrame.getlocal(Unknown Source)
at org.python.core.PyFrame.getlocal(Unknown Source)
at org.python.pycode.serializable._pyx1316961660640.onAdvEvent$3(__init__.py:201)
at org.python.pycode.serializable._pyx1316961660640.call_function(__init__.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyObject._jcallexc(Unknown Source)
at org.python.core.PyObject._jcall(Unknown Source)
at org.python.proxies.main$Quest$203.onAdvEvent(Unknown Source)
at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:448)
at com.l2jserver.gameserver.model.actor.stat.PcStat.addLevel(PcStat.java:230)
at com.l2jserver.gameserver.model.actor.stat.PlayableStat.addExp(PlayableStat.java:68)
at com.l2jserver.gameserver.model.actor.stat.PcStat.addExp(PcStat.java:72)
at com.l2jserver.gameserver.model.actor.stat.PlayableStat.addExpAndSp(PlayableStat.java:104)
at com.l2jserver.gameserver.model.actor.stat.PcStat.addExpAndSp(PcStat.java:130)
at com.l2jserver.gameserver.model.actor.stat.PcStat.addExpAndSp(PcStat.java:186)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.addExpAndSp(L2PcInstance.java:11273)
at com.l2jserver.gameserver.model.quest.QuestState.addExpAndSp(QuestState.java:912)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode.serializable._pyx1316961660640.onAdvEvent$3(__init__.py:129)
at org.python.pycode.serializable._pyx1316961660640.call_function(__init__.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyObject._jcallexc(Unknown Source)
at org.python.core.PyObject._jcall(Unknown Source)
at org.python.proxies.main$Quest$203.onAdvEvent(Unknown Source)
at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:448)
at com.l2jserver.gameserver.network.clientpackets.RequestTutorialLinkHtml.runImpl(RequestTutorialLinkHtml.java:43)
at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62)
at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1003)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
elif string == "TE" :
if event[2:].isdigit() :
event_id = int(event[2:])
if event_id == 1 :
st.addExpAndSp(70,0) <-- whenever I add this, I allways get that error, eventhought I get expereance.
Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
MoMoProxy has updated more static residential proxies for USA location, anyone interested in can view: https://momoproxy.com/static-residential-proxies
To manually override it you got to use command //field_cycle set_step 1 11
1 is the field cycle id for hellbound island from db (fiy 2 & 3 are the seeds in gracia sod and soi) and 11 is the level you want to change it to. Anywhere from 1 to 11 will work for different stages.
Question
lsj14
Hello, I got a little problem. I wanted to make custom tutorial quest, but I faced with one problem:
elif string == "TE" :
if event[2:].isdigit() :
event_id = int(event[2:])
if event_id == 1 :
st.addExpAndSp(70,0) <-- whenever I add this, I allways get that error, eventhought I get expereance.
player.setClassId(88)
htmltext = "heavy.htm"
st.showTutorialHTML(str(htmltext))
return
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now