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.
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.
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
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
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.