Пользовательские дополнения

На главную


social.EndFriendship( friendId )

Завершает дружбу главного игрока с указанным побратимом.

-- библиотека:
social

-- объявление:
EndFriendship( friendId )

-- параметры:
friendId: ObjectId - идентификатор побратима

-- возвращаемые значения:
нет


-- пример:
local friendId = social.GetFiriendList()[ 0 ]
if friendId and social.GetFiriendInfo( friendId ).isBestFriend then
  social.EndFriendship( friendId )
end

Связанные страницы: "CategoryLuaApi" "CategorySocial"

EnumAvatarFriendIgnoreListsError
EventAvatarAddedToFriendList
EventAvatarFriendAdded
EventAvatarFriendAltNameChanged
EventAvatarFriendDescriptionChanged
EventAvatarFriendIgnoreListsError
EventAvatarFriendInfoChanged
EventAvatarFriendLevelChanged
EventAvatarFriendListChanged
EventAvatarFriendMoodChanged
EventAvatarFriendMutualChanged
EventAvatarFriendOnlineChanged
EventAvatarFriendRemoved
EventAvatarFriendSexChanged
EventAvatarFriendZoneChanged
EventAvatarIgnoreAdded
EventAvatarIgnoreDescriptionChanged
EventAvatarIgnoreListChanged
EventAvatarIgnoreRemoved
EventBestFriendReturnStateChanged
EventBestFriendTeleportSpellChanged
EventBestFriendTeleportSpellEffect
EventBestFriendTeleportStateChanged
FunctionHangarCanLendShip
FunctionHangarGetTakeAwaySpellId
FunctionHangarLendShip
FunctionHangarTakeAwayShip
FunctionSocialAddFriend
FunctionSocialAddIgnore
FunctionSocialCanReturn
FunctionSocialCanTeleport
FunctionSocialEndFriendship
FunctionSocialGetBackMount
FunctionSocialGetFriend
FunctionSocialGetFriendInfo
FunctionSocialGetFriendList
FunctionSocialGetFriendshipInfo
FunctionSocialGetIgnoreInfo
FunctionSocialGetIgnoreList
FunctionSocialGetTeleportSpell
FunctionSocialGiveBackMount
FunctionSocialLendMount
FunctionSocialRemoveFriend
FunctionSocialRemoveIgnore
FunctionSocialReturnFromBestFriend
FunctionSocialTeleportToBestFriend


CategoryLuaApi CategoryFunction CategorySocial

На главную