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"?

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