Page 1 of 1

__init__.py failing due to incorrect import calls (c_npc)

Posted: Wed Jan 20, 2010 7:19 am
by florinel
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision 3813:
L2JDP Revision 6891:


Hello. I was trying to install a NPC buffer and I get failures in the __init__.py saying it's unable to import the net module.

I assume it's referring to these calls:

Code: Select all

import sys[u]from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance[/u]from java.util import Iterator[u]from net.sf.l2j.gameserver.datatables import SkillTable[/u][u]from net.sf.l2j import L2DatabaseFactory[/u][u]from net.sf.l2j.gameserver.model.quest import State[/u][u]from net.sf.l2j.gameserver.model.quest import QuestState[/u][u]from net.sf.l2j.gameserver.model.base import Experience[/u][u]from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest[/u]qn = "18111983_QueenOfDragonFire"NPC = 18111983QuestId      = 18111983QuestName    = "QueenOfDragonFire"QuestDesc    = "custom"InitialHtml = "1.htm"ADENA_ID = 57print "importing custom: 18111983_QueenOfDragonFire"class Quest (JQuest) :...
Please advise if the imports have changed in epilogue. I have searched all other imports and nothing else in scripts uses the net module.

I appreciate any help. Thank you.

Re: __init__.py failing due to incorrect import calls (c_npc)

Posted: Wed Jan 20, 2010 7:20 am
by janiii
yes, the imports have changed in epilogue. you can check other .py scripts.

the imports have changed from "net.sf.l2j" to "com.l2jserver" .

Re: __init__.py failing due to incorrect import calls (c_npc)

Posted: Wed Jan 20, 2010 12:24 pm
by florinel
Thank you. Updated and worked.