internal string GetHeadIcon() { CObject_Character pCharObj = _GetTargetAsCharacter(); if (pCharObj.GetCharacterType() == CHARACTER_TYPE.CT_MONSTER) { CObject_PlayerNPC npc = pCharObj as CObject_PlayerNPC; if (npc != null) { return(npc.GetPortrait()); } else { return(""); } } //得到玩家和自己的头像 string pImageName = ""; //打开生物定义表 _DBC_CHAR_FACE pFaceImage = CDataBaseSystem.Instance.GetDataBase <_DBC_CHAR_FACE>( (int)DataBaseStruct.DBC_CHAR_FACE).Search_Index_EQU(pCharObj.GetCharacterData().Get_PortraitID()); if (pFaceImage != null) { pImageName = pFaceImage.pImageSetName; } return(pImageName); }