------------------------------------------------------ -- Main File ------------------------------------------------------ require( "common" ) --[[ require( "Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]]-- require( "Promote/Job2_Gamb/Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "Promote/Job2_Gamb/Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Promote/Job2_Gamb/Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Promote/Job2_Gamb/Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Promote/Job2_Gamb/Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Promote/Job2_Gamb/Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]]-- ---------------------------------------------------------------------- -- Main : ¸ÞÀÎÇÔ¼ö ---------------------------------------------------------------------- function Main( Field ) cExecCheck "Main" local Var = InstanceField[Field] -- ¹öÆÛ if Var == nil then InstanceField[Field] = {} Var = InstanceField[Field] Var["MapIndex"] = Field Var["PlayerHandle"] = INVALID_HANDEL Var["Door"] = {} --Var["Door"]["Handle"] = {} --Var["Door"]["Handle"][i] = nil Var["Roulette"] = {} --Var["Roulette"]["Handle"] = nil Var["Dice"] = {} --Var["Dice"]["Handle"] = {} --Var["Dice"]["Handle"][i] = nil Var["NPC"] = {} --Var["NPC"]["Handle"] = nil --Var["InitDungeon"] = nil --Var["WelcomeGamble"] = nil --Var["PlayRouletteGame"] = nil --Var["LoseRouletteGame"] = nil --Var["WinRouletteGame"] = nil --Var["BeforeBossBattle"] = nil --Var["BossBattle"] = nil --Var["QuestSuccess"] = nil --Var["ReturnToHome"] = nil Var["InitialSec"] = cCurrentSecond() Var["CurSec"] = Var["InitialSec"] Var["LimitTime"] = 0 Var["StepFunc"] = InitDungeon Var["RouletteCount"] = 0 -- ÇÊµå ½ºÅ©¸³Æ® ¼³Á¤ cSetFieldScript ( Var["MapIndex"], MainLuaScriptPath ) cFieldScriptFunc ( Var["MapIndex"], "MapLogin", "PlayerMapLogin" ) end -- 0.5ÃÊ ¸¶´Ù ½ÇÇà if Var["CurSec"] + 0.5 > cCurrentSecond() then return else Var["CurSec"] = cCurrentSecond() end Var["StepFunc"] ( Var ) end