Jump to content
  • 0

Buffer imports


Question

Posted

Hi i tried to add buffer on my aCis pack. I changed imports, but it dont work i dont understand why. Where is imports of buffer

 

import sys
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j			       import L2DatabaseFactory
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest

 

And this is error

 

Error on: D:\Midas\gameserver\data\scripts\custom\9999_NPCBuffer\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
  File "__init__.py", line 692, in ?
TypeError: net.sf.l2j.gameserver.model.quest.State(): expected 0 args; got 2

 

Did somebody know where is a mistake

4 answers to this question

Recommended Posts

  • 0
Posted

Try this in the end of the file :

 

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)

  • 0
Guest Elfocrash
Posted

you can't use jython on acis. You need a java coded buffer. Locked

Guest
This topic is now closed to further replies.


×
×
  • Create New...