You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SigFiesta/LuaScript/ID/Leviathan/Leviathan.lua

65 lines
1.3 KiB

require( "common" )
--[[
require( "Data/Name" )
require( "Data/Process" )
require( "Data/Chat" )
require( "Data/Regen" )
require( "Functions/SubFunc" )
require( "Functions/Routine" )
require( "Functions/Progress" )
--]]
require( "ID/Leviathan/Data/Name" )
require( "ID/Leviathan/Data/Process" )
require( "ID/Leviathan/Data/Chat" )
require( "ID/Leviathan/Data/Regen" )
require( "ID/Leviathan/Functions/SubFunc" )
require( "ID/Leviathan/Functions/Routine" )
require( "ID/Leviathan/Functions/Progress" )
--]]
function Main( Field )
cExecCheck "Main"
local Var = InstanceField[ Field ]
if Var == nil
then
InstanceField[ Field ] = {}
Var = InstanceField[ Field ]
Var["MapIndex"] = Field
Var["Door"] = {} -- <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>޸<EFBFBD><EFBFBD><EFBFBD>
Var["Boss"] = {} -- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>޸<EFBFBD><EFBFBD><EFBFBD>
Var["RoutineTime"] = {} -- <EFBFBD><EFBFBD>ƾ Ÿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ڵ鸶<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <EFBFBD>޸<EFBFBD><EFBFBD><EFBFBD>
cSetFieldScript ( Var["MapIndex"], MainLuaScriptPath )
cFieldScriptFunc( Var["MapIndex"], "MapLogin", "PlayerMapLogin" )
-- <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ð<EFBFBD> <EFBFBD>Է<EFBFBD>
Var["InitialSec"] = cCurrentSecond()
Var["CurSec"] = cCurrentSecond()
-- ù <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Var["StepFunc"] = InitDungeon
end
-- 0.05<EFBFBD>ʸ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if Var["CurSec"] + 0.05 > cCurrentSecond()
then
return
else
Var["CurSec"] = cCurrentSecond()
end
Var["StepFunc"] ( Var )
end