Jump to content
  • 0

255_tutorial please help me!


Question

Posted

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.

                player.setClassId(88)

                htmltext = "heavy.htm"

        st.showTutorialHTML(str(htmltext))

        return

 

2 answers to this question

Recommended Posts

  • 0
Posted

Do you have the "st." registred¿? Try to use "player.addExpAndSp(70,0)".

 

It gives exp, however I still get that error.

 

p.s. without addExpAndSp event works fine without any errors.

 

EDIT: problem fixed, lock topic.

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock