Jump to content
  • 0

Question

Posted

Hello guys  i have one issue with a quest that gives vitality when its complete

 

In java it is like this and works:

				player.getVitalityManagement().setVitalityPoints(20000, true);

 

So in python  that i have it like this:

			     player.getVitalityManagement().setVitalityPoints(20000,true)

 

 

I get error when a player click to npc to complete one quest

 

 

error:

Traceback (innermost last):
  File "__init__.py", line 140, in onTalk
NameError: true

        at org.python.core.Py.NameError(Unknown Source)
        at org.python.core.PyFrame.getglobal(Unknown Source)
        at org.python.pycode.serializable._pyx1365247187573.onTalk$5(__init__.p
        at org.python.pycode.serializable._pyx1365247187573.call_function(__ini
        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)

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..