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