Jump to content
  • 0

Question

Posted

Hy all,

 

maybe someone can help me with script import? inserted script to custom\BossRespawn\BossRespawn.java and don't know how to add its import in __init__ . thanks in advance

 

__all__ = [
'3995_echo',
'4000_ShadowWeapons',
'7000_HeroItems',
'8000_RaidbossInfo',
'6050_KetraOrcSupport',
'6051_VarkaSilenosSupport',
'BossRespawn' <<--- ???
]
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 ""

2 answers to this question

Recommended Posts

  • 0
Posted
__all__ = [
'3995_echo',
'4000_ShadowWeapons',
'7000_HeroItems',
'8000_RaidbossInfo',
'6050_KetraOrcSupport',
'6051_VarkaSilenosSupport',
'BossRespawn' .
]
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 ""

  <== ok now

Guest
This topic is now closed to further replies.


×
×
  • Create New...