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.

105 lines
2.1 KiB

--------------------------------------------------------------------------------
-- Promote Job2_Forest Sub Functions --
--------------------------------------------------------------------------------
function DummyFunc( Var )
cExecCheck "DummyFunc"
end
----------------------------------------------------------------------
-- IsFail : Fail <EFBFBD><EFBFBD><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("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
return true
end
if cPlayerExist( Var["Roumen"] ) == nil
then
--DebugLog("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
return true
end
if cPlayerExist( Var["PlayerHandle"] ) == nil
then
--DebugLog("<EFBFBD>÷<EFBFBD><EFBFBD>̾<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ų<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
return true
end
end
----------------------------------------------------------------------
-- VanishMob : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ʿ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>(fadeout)<EFBFBD>Ѵ<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