require( "common" ) gIsInit = false -- ÃʱâÈ­ µÇ¾ú³ª? ¤¤¤¤ ------------------------------------------------------------------------------------------------------ -- -- FUNCTION : CPP -> LUA -- ------------------------------------------------------------------------------------------------------ function DummyFunction() end function ClassChangeMaster01( Handle, MapIndex ) cExecCheck( "ClassChangeMaster01" ) -- À̺¥Æ® ÃʱâÈ­ if gIsInit == false then -- AISctipt Function ¼³Á¤ cAIScriptFunc( Handle, "NPCClick", "ClassChangeMaster01_Click" ) cAIScriptFunc( Handle, "NPCMenu", "ClassChangeMaster01_Menu" ) gIsInit = true; end end function ClassChangeMaster01_Click( NPCHandle, PlyHandle, PlyCharNo ) cExecCheck( "ClassChangeMaster01_Click" ) -- ´ÙÀ̾ó·Î±× ¸Þ´º Ãâ·Â cNPCMenuOpen( NPCHandle, PlyHandle ) end function ClassChangeMaster01_Menu( NPCHandle, PlyHandle, PlyCharNo, Value ) cExecCheck( "ClassChangeMaster01_Menu" ) -- Ŭ·¡½º º¯°æ? ¤·¤· if Value == 1 then cClassChangeOpen( PlyHandle ) end end