- Joined
- Mar 29, 2007
- Messages
- 2
- Reaction score
- 0
Hi ppl, i have a problem with my NPC buffer, when i get buff, the buffer don't restoring my MP&HP.
I open the __init__.py file and i include the line "st.getPlayer().restoreHPMP()" after each buff line.
if i have it change, the npc buffer say me "I do not have task for you".
and in the gameserver MS-DOS window say it =
What the problem ?
I open the __init__.py file and i include the line "st.getPlayer().restoreHPMP()" after each buff line.
if i have it change, the npc buffer say me "I do not have task for you".
and in the gameserver MS-DOS window say it =
Code:
Traceback (innermost last):
File "C:\server\gameserver\data\jscript\custom\9999_NPCBuffer\__init__.py", li
ne 57, in onEvent
AttributeError: 'javainstance' object has no attribute 'restoreHPMP'
at org.python.core.Py.AttributeError(Py.java:113)
at org.python.core.PyObject.noAttributeError(PyObject.java:1149)
at org.python.core.PyObject.__getattr__(PyObject.java:1144)
at data.jscript.custom.9999_NPCBuffer$py.onEvent$3(C:\server\gameserver\
data\jscript\custom\9999_NPCBuffer\__init__.py:57)
at data.jscript.custom.9999_NPCBuffer$py.call_function(C:\server\gameser
ver\data\jscript\custom\9999_NPCBuffer\__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:217)
at org.python.core.PyTableCode.call(PyTableCode.java:437)
at org.python.core.PyTableCode.call(PyTableCode.java:333)
at org.python.core.PyFunction.__call__(PyFunction.java:195)
at org.python.core.PyMethod.__call__(PyMethod.java:99)
at org.python.core.PyObject.__call__(PyObject.java:615)
at org.python.core.PyObject._jcallexc(PyObject.java:2678)
at org.python.core.PyObject._jcall(PyObject.java:2710)
at org.python.proxies.data.jscript.custom.9999_NPCBuffer$Quest$226.onEve
nt(Unknown Source)
at net.sf.l2j.gameserver.model.quest.Quest.notifyEvent(Quest.java:175)
at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.processQuestE
vent(L2PcInstance.java:1254)
at net.sf.l2j.gameserver.clientpackets.RequestBypassToServer.runImpl(Req
uestBypassToServer.java:151)
at net.sf.l2j.gameserver.clientpackets.ClientBasePacket.run(ClientBasePa
cket.java:59)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
What the problem ?
Last edited: