[Geo]Sky Posted January 31, 2011 Posted January 31, 2011 Hello Mxc, i have one question, where ai can add new quest or npc or script in datapack, This Is server/data/___init__.py Code : __all__ = [ 'scripts' ] import scripts This Is server/data/scripts/___init__.py Code : __all__ = [ 'quests', 'custom', 'teleports', 'village_master', 'ai' ] import quests import custom import teleports import village_master import ai This Is server/data/scripts/costum/___init__.py Code : __all__ = [ '3995_echo', '4000_ShadowWeapons', '7000_HeroItems', '8000_RaidbossInfo', '6050_KetraOrcSupport', '6051_VarkaSilenosSupport', '9999_NPCBuffer', '9099_HotSprings' ] print "" print "importing custom data ..." for name in __all__ : try : __import__('data.scripts.custom.'+name,globals(), locals(), ['__init__'], -1) except: print "failed to import quest : ",name print "... done" print "" But Pack Don't Have scripts.cfg, where i can add in scripts buffer, for them : '912_buffer' P.S Sorry For my bad englis, Help Mxc ;)
0 Matim Posted January 31, 2011 Posted January 31, 2011 Sky" post="1648987" timestamp="1296495247"] Not Found :( Help Matim ;) Not found... what? Its is in server/data/scripts/costum/___init__.py
0 [Geo]Sky Posted January 31, 2011 Author Posted January 31, 2011 __all__ = [ '3995_echo', '4000_ShadowWeapons', '7000_HeroItems', '8000_RaidbossInfo', '6050_KetraOrcSupport', '6051_VarkaSilenosSupport', '9999_NPCBuffer', '912_buffer', '9099_HotSprings' ] print "" print "importing custom data ..." for name in __all__ : try : __import__('data.scripts.custom.'+name,globals(), locals(), ['__init__'], -1) except: print "failed to import quest : ",name print "... done" print "" Look Matim, This '912_buffer' Buffer Don't Work but, sql is work and Imports are OK
0 Matim Posted January 31, 2011 Posted January 31, 2011 Explain it.. "don't work" ok, fine but what exactly? Error log ingame? GameServer error logs? Or maybe something else.
0 [Geo]Sky Posted January 31, 2011 Author Posted January 31, 2011 Yes Says Failed Load NPC are Spawn OK, but don't import scripts, Sorry For my English :(
0 Matim Posted January 31, 2011 Posted January 31, 2011 Sky" post="1649017" timestamp="1296496328"] Yes Says Failed Load NPC are Spawn OK, but don't import scripts, Sorry For my English :( There should be log which description about where error is (line) Check whole code, correct imports etc, maybe something is wrong.
0 WeirdSituation Posted January 31, 2011 Posted January 31, 2011 Q: I want help for L2j Archid/Dot/Brazil/Umbrella/Jenova/Oneo/Equal. A: Well, do not ask for help if you are using any of these projects. They are dead, so you can't find support.
Question
[Geo]Sky
Hello Mxc, i have one question, where ai can add new quest or npc or script in datapack,
This Is server/data/___init__.py
Code :
This Is server/data/scripts/___init__.py
Code :
This Is server/data/scripts/costum/___init__.py
Code :
But Pack Don't Have scripts.cfg, where i can add in scripts buffer, for them : '912_buffer'
P.S Sorry For my bad englis, Help Mxc ;)
8 answers to this question
Recommended Posts