Jump to content
  • 0

Error adding NPC


Question

Posted

Hello!

I use L2J Freya last rev!

I tryed to add TOP PVP/PK NPC shared on this forum but i get this error!

 

Error on: /freya/server/gameserver/data/scripts/custom/7206_CustomInfo/__init__.py.error.log

Line: -1 - Column: -1

 

Traceback (innermost last):

  File "__init__.py", line 4, in ?

ImportError: no module named net

--------------------------------------------------------------------------------------------------------------------

 

File looks like this(first part)

 

#Jython-based Top PvP Manger

import sys

from java.util                                  import Iterator

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

from net.sf.l2j.gameserver.network.serverpackets import CreatureSay

from net.sf.l2j                                  import L2DatabaseFactory

 

3 answers to this question

Recommended Posts

  • 0
Posted

import line are wrong, try to change this:

 

from net.sf.l2j...... for "from com.sf.l2j......" whitout quotes i all lines where u see "net.sf.l2j...."

  • 0
Posted

I will try this,and also i was looking at html files and what it says is:

--------------------------------------------------------------------------------------

<td><button value="See TOP PK Player's" action="bypass -h Quest 7206_CustomInfo 1" width=203 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

-----------------------------------------------------------------------------------

 

Maybe it should be action="bypass -h Custom 7206_CustomInfo 1"?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...