Jump to content
  • 0

[Help] Equal Pack


Question

Posted

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 ;)

8 answers to this question

Recommended Posts

  • 0
Posted
Sky" post="1648987" timestamp="1296495247"]

Not Found :( Help Matim ;)

 

Not found... what?

 

Its is in server/data/scripts/costum/___init__.py

  • 0
Posted

__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
Posted

Explain it.. "don't work" ok, fine but what exactly?

 

Error log ingame? GameServer error logs? Or maybe something else.

  • 0
Posted
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.

Guest
This topic is now closed to further replies.


×
×
  • Create New...