-------------------------------------------------------------------------------- -- Seiren Castle Main File -- -------------------------------------------------------------------------------- require( "common" ) --[[ require( "Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶, ´Ü°è ÁøÇàÀ» À§ÇÑ ³×ÀÓ Å×À̺í require( "Data/Chat" ) -- ¸ðµç äÆà °ü·Ã require( "Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Data/Stuff" ) -- Stuff°ü·Ã ó¸® µ¥ÀÌÅÍ( NPC ¾×¼Ç Á¤º¸ ¹× ¾×¼ÇÀ» ÀÏÀ¸Å°±â À§ÇÑ ¿ä¼Ò Á¤º¸ ) require( "Data/Boss" ) -- Boss°ü·Ã ó¸® µ¥ÀÌÅÍ require( "Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]] require( "ID/Bla/Data/Name" ) require( "ID/Bla/Data/Chat" ) require( "ID/Bla/Data/Process" ) require( "ID/Bla/Data/Regen" ) require( "ID/Bla/Data/Stuff" ) require( "ID/Bla/Data/Boss" ) require( "ID/Bla/Functions/SubFunc" ) require( "ID/Bla/Functions/Routine" ) require( "ID/Bla/Functions/Progress" ) --]] function Main( Field ) cExecCheck "Main" local Var = InstanceField[ Field ] if Var == nil then InstanceField[ Field ] = {} Var = InstanceField[ Field ] Var["MapIndex"] = Field Var["AreaMobGroup"] = {} -- ¾îµð¿¡ ¸÷À» ¸®Á¨ÇÒÁö ·£´ýÀ¸·Î Á¤ÇØÁø °á°ú¸¦ ÀúÀåÇØµÒ Var["RootManager"] = {} Var["RootManager"]["RootA"] = 1 Var["RootManager"]["RootB"] = 1 Var["RootManager"]["DelayTime"] = {} Var["RootManager"]["DelayTime"]["RootA"] = cCurrentSecond() + DelayTime["RootManagerFuncTick"] Var["RootManager"]["DelayTime"]["RootB"] = cCurrentSecond() + DelayTime["RootManagerFuncTick"] Var["Door"] = {} -- ¹® Á¤º¸ ´ã´Â ¸Þ¸ð¸® Var["RoutineTime"] = {} --Var["RoutineTime"]["Routine_Blakan"] --Var["RoutineTime"]["Routine_Seal"] --Var["RoutineTime"]["Routine_Fagels"] Var["Enemy"] = {} -- Àû Á¤º¸ ´ã´Â ¸Þ¸ð¸® --Var["Enemy"]["MildWin"] --Var["Enemy"]["Blakan"] --Var["Enemy"]["Seal"]{} --Var["Enemy"]["Fagels"] Var["TimeList"] = {} --Var["TimeList"]["FaceCutArea"] = {} --Var["TimeList"]["FaceCutArea"]["PlayerEntrance"] --Var["TimeList"]["FaceCutArea"]["Dialog_Blakan"] --Var["TimeList"]["TeleportArea"] = {} --Var["TimeList"]["TeleportArea"]["PlayerEntrance"] --Var["TimeList"]["TeleportArea"]["Dialog_Blakan"] --Var["TimeList"]["TeleportArea"]["Dialog_Fagels"] --Var["TimeList"]["TeleportArea"]["SummonStart"] cSetFieldScript ( Var["MapIndex"], MainLuaScriptPath ) cFieldScriptFunc( Var["MapIndex"], "MapLogin", "PlayerMapLogin" ) -- ÃÖÃÊ ½Ã°£ ÀÔ·Â Var["InitialSec"] = cCurrentSecond() Var["CurSec"] = cCurrentSecond() DebugLog("¸ÞÀÎÇÔ¼ö ½ÃÀÛ") -- ù ½ºÅÜÀ¸·Î Var["StepFunc"] = InitDungeon -- ·£´ýÀ¸·Î ¸®Á¨¸÷ ¼¼Æà RandomRegenMobGroupSetFunc( Var ) end -- 0.2Ãʸ¶´Ù ½ÇÇà if Var["CurSec"] + 0.5 > cCurrentSecond() then return else Var["CurSec"] = cCurrentSecond() end -- ½ºÅÜÇÔ¼ö ½ÇÇà ( Functions/Progress.lua ) Var["StepFunc"]( Var ) RootManagerFunc( Var, "RootA" ) RootManagerFunc( Var, "RootB" ) TeleportFunc( Var ) end