------------------------------------------------------ -- Promote Job2_Forest Main File ------------------------------------------------------ require( "common" ) --[[ require( "Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Data/Chat" ) -- ´ë»ç µ¥ÀÌÅÍ( NPCDlg, °øÁö µî ) require( "Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]]-- require( "Promote/Job2_Forest/Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "Promote/Job2_Forest/Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Promote/Job2_Forest/Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Promote/Job2_Forest/Data/Chat" ) -- ´ë»ç µ¥ÀÌÅÍ( NPCDlg, °øÁö µî ) require( "Promote/Job2_Forest/Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Promote/Job2_Forest/Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Promote/Job2_Forest/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["InitialSec"] = cCurrentSecond() Var["CurSec"] = Var["InitialSec"] Var["LimitTime"] = 0 Var["FindHeroLimitTime"] = 0 Var["StepFunc"] = InitDungeon Var["Elderin"] = nil Var["Roumen"] = nil -- ÇÊµå ½ºÅ©¸³Æ® ¼³Á¤ 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