105 lines
2.1 KiB
Lua
Raw Normal View History

2023-06-26 04:40:53 -07:00
--------------------------------------------------------------------------------
-- Promote Job2_Forest Sub Functions --
--------------------------------------------------------------------------------
function DummyFunc( Var )
cExecCheck "DummyFunc"
end
----------------------------------------------------------------------
-- IsFail : Fail <20><><EFBFBD><EFBFBD> üũ
----------------------------------------------------------------------
function IsFail( Var )
cExecCheck( "IsFail" )
--DebugLog("IsFail : Start" )
if Var == nil
then
ErrorLog( "IsFail::Var == nil" )
return
end
if cPlayerExist( Var["Elderin"] ) == nil
then
--DebugLog("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>")
return true
end
if cPlayerExist( Var["Roumen"] ) == nil
then
--DebugLog("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>")
return true
end
if cPlayerExist( Var["PlayerHandle"] ) == nil
then
--DebugLog("<22>÷<EFBFBD><C3B7>̾<EFBFBD> <20><><EFBFBD>ų<EFBFBD> <20><><EFBFBD><EFBFBD>")
return true
end
end
----------------------------------------------------------------------
-- VanishMob : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD>(fadeout)<29>Ѵ<EFBFBD>
----------------------------------------------------------------------
function VanishMob( Var )
cExecCheck( "VanishMob" )
for i = 1, #RegenInfo["MobInfo"]["MobList"]
do
cVanishAll( Var["MapIndex"], RegenInfo["MobInfo"]["MobList"][i] )
end
end
----------------------------------------------------------------------
-- Log Functions
----------------------------------------------------------------------
function GoToFail( Var, Msg )
cExecCheck( "GoToFail" )
DebugLog("GoToFail : Start" )
if Var == nil
then
ErrorLog( "GoToFail : Var nil" );
return
end
ErrorLog( Msg )
Var["StepFunc"] = ReturnToHome
end
----------------------------------------------------------------------
-- Log Functions
----------------------------------------------------------------------
function DebugLog( String )
cExecCheck ( "DebugLog" )
if String == nil
then
cAssertLog( "DebugLog::String == nil" )
return
end
cAssertLog( "Debug - "..String )
end
function ErrorLog( String )
cExecCheck ( "ErrorLog" )
if String == nil
then
cAssertLog( "ErrorLog::String == nil" )
return
end
cAssertLog( "Error - "..String )
end