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.
 
 

104 lines
2.1 KiB

--------------------------------------------------------------------------------
-- Promote Job2_Forest Sub Functions --
--------------------------------------------------------------------------------
function DummyFunc( Var )
cExecCheck "DummyFunc"
end
----------------------------------------------------------------------
-- IsFail : Fail 인지 체크
----------------------------------------------------------------------
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("엘더린 사망")
return true
end
if cPlayerExist( Var["Roumen"] ) == nil
then
--DebugLog("루멘 사망")
return true
end
if cPlayerExist( Var["PlayerHandle"] ) == nil
then
--DebugLog("플레이어 없거나 사망")
return true
end
end
----------------------------------------------------------------------
-- VanishMob : 지정된 몹을 맵에서 삭제(fadeout)한다
----------------------------------------------------------------------
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