|
|
|
|
|
|
|
|
|
function IsPetMasterMoved( PetMem )
|
|
|
|
|
cExecCheck( "IsPetMasterMoved" )
|
|
|
|
|
|
|
|
|
|
if PetMem == nil
|
|
|
|
|
then
|
|
|
|
|
DebugLog( "IsPetMasterMoved::PetMem is nil" )
|
|
|
|
|
return nil
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local tMasterCoord = PetMem["MasterInfo"]["Coord"]["Cur"]
|
|
|
|
|
local tMasterLastCoord = PetMem["MasterInfo"]["Coord"]["Last"]
|
|
|
|
|
|
|
|
|
|
if tMasterLastCoord["x"] ~= tMasterCoord["x"]
|
|
|
|
|
then
|
|
|
|
|
return true
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if tMasterLastCoord["y"] ~= tMasterCoord["y"]
|
|
|
|
|
then
|
|
|
|
|
return true
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function PetBaseScriptMessage( nHandle, sScriptMessageIndex )
|
|
|
|
|
cExecCheck( "PetBaseScriptMessage" )
|
|
|
|
|
|
|
|
|
|
-- <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>Ѵ<EFBFBD>.
|
|
|
|
|
if sScriptMessageIndex ~= "-"
|
|
|
|
|
then
|
|
|
|
|
-- <EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <EFBFBD>ൿ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ÿ<EFBFBD>̹<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ù <EFBFBD><EFBFBD><EFBFBD>ܿ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>Ѵ<EFBFBD>.
|
|
|
|
|
cSimpleChatScriptMsg( nHandle, sScriptMessageIndex ); -- <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ȵ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function PetBaseObjectEffect( nHandle, sObjectEffectFileName )
|
|
|
|
|
cExecCheck( "PetBaseObjectEffect" )
|
|
|
|
|
|
|
|
|
|
-- <EFBFBD>꿡 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <EFBFBD><EFBFBD>
|
|
|
|
|
if sObjectEffectFileName ~= "-"
|
|
|
|
|
then
|
|
|
|
|
-- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>߰<EFBFBD><EFBFBD>Ǹ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD>
|
|
|
|
|
cObjectEffect( nHandle, sObjectEffectFileName );
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function PetBaseObjectSound( nHandle, sObjectSoundFileName )
|
|
|
|
|
cExecCheck( "PetBaseObjectSound" )
|
|
|
|
|
|
|
|
|
|
-- <EFBFBD><EFBFBD> <EFBFBD>ൿ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ٿ<EFBFBD>
|
|
|
|
|
if sSoundFile ~= "-"
|
|
|
|
|
then
|
|
|
|
|
-- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>߰<EFBFBD><EFBFBD>Ǹ<EFBFBD> Ÿ<EFBFBD>ֿ̹<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>缭 <EFBFBD>Ҹ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>Ʈ <EFBFBD>ϸ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|
|
|
|
cObjectSound( nHandle, sObjectSoundFileName );
|
|
|
|
|
end
|
|
|
|
|
end
|