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.
SigFiesta/LuaScript/AIScript/ClassChangeMaster02.lua

53 lines
1.0 KiB

require( "common" )
gIsInit = false -- <EFBFBD>ʱ<EFBFBD>ȭ <EFBFBD>Ǿ<EFBFBD><EFBFBD><EFBFBD>? <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
------------------------------------------------------------------------------------------------------
--
-- FUNCTION : CPP -> LUA
--
------------------------------------------------------------------------------------------------------
function DummyFunction()
end
function ClassChangeMaster02( Handle, MapIndex )
cExecCheck( "ClassChangeMaster02" )
-- <EFBFBD>̺<EFBFBD>Ʈ <EFBFBD>ʱ<EFBFBD>ȭ
if gIsInit == false
then
-- AISctipt Function <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
cAIScriptFunc( Handle, "NPCClick", "ClassChangeMaster02_Click" )
cAIScriptFunc( Handle, "NPCMenu", "ClassChangeMaster02_Menu" )
gIsInit = true;
end
end
function ClassChangeMaster02_Click( NPCHandle, PlyHandle, PlyCharNo )
cExecCheck( "ClassChangeMaster02_Click" )
-- <EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD><EFBFBD>α<EFBFBD> <EFBFBD>޴<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
cNPCMenuOpen( NPCHandle, PlyHandle )
end
function ClassChangeMaster02_Menu( NPCHandle, PlyHandle, PlyCharNo, Value )
cExecCheck( "ClassChangeMaster02_Menu" )
-- Ŭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>? <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if Value == 1
then
cClassChangeOpen( PlyHandle )
end
end