-------------------------------------------------------------------------------- -- Mara Pirate Routine -- -------------------------------------------------------------------------------- function PlayerMapLogin( MapIndex, Handle ) cExecCheck( "PlayerMapLogin" ) if MapIndex == nil then DebugLog( "PlayerMapLogin::MapIndex == nil") return end if Handle == nil then DebugLog( "PlayerMapLogin::Handle == nil") return end local Var = InstanceField[ MapIndex ] if Var == nil then DebugLog( "PlayerMapLogin::Var == nil") return end -- ù Ç÷¹À̾îÀÇ ¸Ê ·Î±×ÀΠüũ Var["bPlayerMapLogin"] = true -- ½Ã°£ ¼³Á¤ÀÌ ¾ÆÁ÷ µÇÁö ¾ÊÀº °æ¿ì¿¡´Â ¾Æ¹«°Íµµ ½ÇÇàÇÏÁö ¾Ê´Â´Ù. if Var["KQLimitTime"] == nil then return end if Var["CurSec"] == nil then return end -- ÇöÀç ½Ã°£ ±âÁØÀ¸·Î Á¦Çѽð£À» ¹Þ¾Æ¼­ ¿äûÇÑ´Ù. local nLimitSec = Var["KQLimitTime"] - Var["CurSec"] cShowKQTimerWithLife_Obj( Handle, nLimitSec ) end -- Áß°£ º¸½º ¸¶¶ó function MiddleMaraDead( Handle, MapIndex ) cExecCheck( "MiddleMaraDead" ) local Var = InstanceField[ MapIndex ] if Var == nil then cAIScriptSet( Handle ) cNPCVanish( Handle ) return ReturnAI["CPP"] end if cIsObjectDead( Handle ) == 1 then cMobChat( Handle, MiddleBossChat["ScriptFileName"], MiddleBossChat["MaraDeadChat"]["Index"], true ) cAIScriptSet( Handle ) return ReturnAI["CPP"] end return ReturnAI["CPP"] end -- Áß°£ º¸½º ¸»·Ð function MiddleMarloneDead( Handle, MapIndex ) cExecCheck( "MiddleMarloneDead" ) local Var = InstanceField[ MapIndex ] if Var == nil then cAIScriptSet( Handle ) cNPCVanish( Handle ) return ReturnAI["CPP"] end if cIsObjectDead( Handle ) == 1 then cMobChat( Handle, MiddleBossChat["ScriptFileName"], MiddleBossChat["MarloneDeadChat"]["Index"], true ) cAIScriptSet( Handle ) return ReturnAI["CPP"] end return ReturnAI["CPP"] end -- ¸¶Áö¸· º¸½º ¸¶¶ó function LastMaraDead( Handle, MapIndex ) cExecCheck( "LastMaraDead" ) local Var = InstanceField[ MapIndex ] if Var == nil then cAIScriptSet( Handle ) cNPCVanish( Handle ) return ReturnAI["CPP"] end if cIsObjectDead( Handle ) == 1 then cMobChat( Handle, BossChat["ScriptFileName"], BossChat["MaraDeadChat"]["Index"], true ) cAIScriptSet( Handle ) return ReturnAI["CPP"] end return ReturnAI["CPP"] end -- ¸¶Áö¸· º¸½º ¸»·Ð function LastMarloneDead( Handle, MapIndex ) cExecCheck( "LastMarloneDead" ) local Var = InstanceField[ MapIndex ] if Var == nil then cAIScriptSet( Handle ) cNPCVanish( Handle ) return ReturnAI["CPP"] end if cIsObjectDead( Handle ) == 1 then cMobChat( Handle, BossChat["ScriptFileName"], BossChat["MarloneDeadChat"]["Index"], true ) cAIScriptSet( Handle ) return ReturnAI["CPP"] end return ReturnAI["CPP"] end -- °¡Â¥ º¸½º ¸¶¶ó function VirtualMaraDead( Handle, MapIndex ) cExecCheck( "VirtualMaraDead" ) local Var = InstanceField[ MapIndex ] if Var == nil then cAIScriptSet( Handle ) cNPCVanish( Handle ) return ReturnAI["CPP"] end if cIsObjectDead( Handle ) == 1 then local MaraRegenInfo = RegenInfo["Mob"]["Boss"]["RegenMara"] for i = 1, MaraRegenInfo["RegenNumber"] do cMobRegen_XY( Var["MapIndex"], MaraRegenInfo["Index"], MaraRegenInfo["x"], MaraRegenInfo["y"], MaraRegenInfo["dir"] ) end cAIScriptSet( Handle ) return ReturnAI["CPP"] end return ReturnAI["CPP"] end -- °¡Â¥ º¸½º ¸»·Ð function VirtualMarloneDead( Handle, MapIndex ) cExecCheck( "VirtualMarloneDead" ) local Var = InstanceField[ MapIndex ] if Var == nil then cAIScriptSet( Handle ) cNPCVanish( Handle ) return ReturnAI["CPP"] end if cIsObjectDead( Handle ) == 1 then local MarloneRegenInfo = RegenInfo["Mob"]["Boss"]["RegenMarlone"] for i = 1, MarloneRegenInfo["RegenNumber"] do cMobRegen_XY( Var["MapIndex"], MarloneRegenInfo["Index"], MarloneRegenInfo["x"], MarloneRegenInfo["y"], MarloneRegenInfo["dir"] ) end cAIScriptSet( Handle ) return ReturnAI["CPP"] end return ReturnAI["CPP"] end