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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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