Jump to content
  • 0

L2 Buffer error in the logs


Question

Posted

hey guys I installed a buffer and i get this error in the logs

WARNING:

Traceback (innermost last):

 File "E:\L2 Baked\gameserver\data\jscript\quests\15012_NPCBuffer\__init__.py", line 1087, in onTalk

AttributeError: 'None' object has no attribute 'setState'

 

at org.python.core.Py.AttributeError(Py.java:93)

at org.python.core.PyObject.noAttributeError(PyObject.java:1086)

at org.python.core.PyObject.__getattr__(PyObject.java:1081)

at data.jscript.quests.15012_NPCBuffer$py.onTalk$4(E:\L2 Baked\gameserver\data\jscript\quests\15012_NPCBuffer\__init__.py:1087)

at data.jscript.quests.15012_NPCBuffer$py.call_function(E:\L2 Baked\gameserver\data\jscript\quests\15012_NPCBuffer\__init__.py)

at org.python.core.PyTableCode.call(PyTableCode.java:213)

at org.python.core.PyTableCode.call(PyTableCode.java:426)

at org.python.core.PyTableCode.call(PyTableCode.java:322)

at org.python.core.PyFunction.__call__(PyFunction.java:193)

at org.python.core.PyMethod.__call__(PyMethod.java:93)

at org.python.core.PyObject.__call__(PyObject.java:570)

at org.python.core.PyObject._jcallexc(PyObject.java:2573)

at org.python.core.PyObject._jcall(PyObject.java:2605)

at org.python.proxies.data.jscript.quests.15012_NPCBuffer$Quest$289.onTalk(Unknown Source)

at net.sf.l2j.gameserver.model.quest.Quest.notifyTalk(Quest.java:285)

at net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.showQuestWindow(L2NpcInstance.java:1630)

at net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.onBypassFeedback(L2NpcInstance.java:1124)

at net.sf.l2j.gameserver.model.actor.instance.L2FolkInstance.onBypassFeedback(L2FolkInstance.java:312)

at net.sf.l2j.gameserver.model.actor.instance.L2TeleporterInstance.onBypassFeedback(L2TeleporterInstance.java:159)

at net.sf.l2j.gameserver.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:188)

at net.sf.l2j.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:75)

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)

2 answers to this question

Recommended Posts

  • 0
Posted

I believe this is where the error is coming from can someone edit it and send it back plz

def onTalk (self,npc,player):

  st = player.getQuestState(qn)

  htmltext = "<html><head><body>I have nothing to say to you</body></html>"

  st.setState(State.STARTED)

  return InitialHtml

 

QUEST      = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

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