WowAddons

World of Warcraft Forever API · C_HousingNeighborhood.md, for your AI

C_HousingNeighborhood

30 functions, 13 events, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_HousingNeighborhood.CanReturnAfterVisitingHouse

canReturn = C_HousingNeighborhood.CanReturnAfterVisitingHouse()

Returns

canReturnbool

C_HousingNeighborhood.CancelInviteToNeighborhood

C_HousingNeighborhood.CancelInviteToNeighborhood(playerName)

Only available when interacting with a bulletin board game object

Arguments

playerNamecstring

C_HousingNeighborhood.DemoteToResident

C_HousingNeighborhood.DemoteToResident(playerGUID)

Only available when interacting with a bulletin board game object

Arguments

playerGUIDWOWGUID

C_HousingNeighborhood.GetCornerstoneHouseInfo

houseInfo = C_HousingNeighborhood.GetCornerstoneHouseInfo()

Only available when interacting with a cornerstone game object

Returns

houseInfoHouseInfo

C_HousingNeighborhood.GetCornerstoneNeighborhoodInfo

neighborhoodInfo = C_HousingNeighborhood.GetCornerstoneNeighborhoodInfo()

Only available when interacting with a cornerstone game object

Returns

neighborhoodInfoNeighborhoodInfo

C_HousingNeighborhood.GetCornerstonePurchaseMode

purchaseMode = C_HousingNeighborhood.GetCornerstonePurchaseMode()

Only available when interacting with a cornerstone game object

Returns

purchaseModeCornerstonePurchaseMode

C_HousingNeighborhood.GetCurrentNeighborhoodTextureSuffix

neighborhoodTextureSuffix = C_HousingNeighborhood.GetCurrentNeighborhoodTextureSuffix()

Returns

neighborhoodTextureSuffixcstring

C_HousingNeighborhood.GetDiscountedMovePrice

movePrice = C_HousingNeighborhood.GetDiscountedMovePrice()

Only available when interacting with a cornerstone game object

Returns

movePricenumberCan be negative if the refund from moving is more than the cost of the new house

C_HousingNeighborhood.GetMoveCooldownTime

movecooldownTime = C_HousingNeighborhood.GetMoveCooldownTime()

Only available when interacting with a cornerstone game object

Returns

movecooldownTimenumber

C_HousingNeighborhood.GetNeighborhoodMapData

neighborhoodPlots = C_HousingNeighborhood.GetNeighborhoodMapData()

Returns

neighborhoodPlotsNeighborhoodPlotMapInfo[]

C_HousingNeighborhood.GetNeighborhoodName

neighborhoodName = C_HousingNeighborhood.GetNeighborhoodName()

Returns

neighborhoodNamestring

C_HousingNeighborhood.GetNeighborhoodPlotName

neighborhoodName = C_HousingNeighborhood.GetNeighborhoodPlotName(plotIndex)

Arguments

plotIndexnumber

Returns

neighborhoodNamestring

C_HousingNeighborhood.GetPreviousHouseIdentifier

previousHouseIdentifier = C_HousingNeighborhood.GetPreviousHouseIdentifier()

Only available when interacting with a cornerstone game object

Returns

previousHouseIdentifierstring

C_HousingNeighborhood.HasPermissionToPurchase

cantPurchaseReason = C_HousingNeighborhood.HasPermissionToPurchase()

Only available when interacting with a cornerstone game object

Returns

cantPurchaseReasonPurchaseHouseDisabledReason

C_HousingNeighborhood.InvitePlayerToNeighborhood

C_HousingNeighborhood.InvitePlayerToNeighborhood(playerName)

Only available when interacting with a bulletin board game object

Arguments

playerNamecstring

C_HousingNeighborhood.IsNeighborhoodManager

isManager = C_HousingNeighborhood.IsNeighborhoodManager()

Returns

isManagerbool

C_HousingNeighborhood.IsNeighborhoodOwner

isOwner = C_HousingNeighborhood.IsNeighborhoodOwner()

Returns

isOwnerbool

C_HousingNeighborhood.IsPlayerInOtherPlayersPlot

isInUnownedPlot = C_HousingNeighborhood.IsPlayerInOtherPlayersPlot()

This returns true if the player is in a plot that is owned by another player

Returns

isInUnownedPlotbool

C_HousingNeighborhood.IsPlotAvailableForPurchase

isAvailable = C_HousingNeighborhood.IsPlotAvailableForPurchase()

Only available when interacting with a cornerstone game object

Returns

isAvailablebool

C_HousingNeighborhood.IsPlotOwnedByPlayer

isPlayerOwned = C_HousingNeighborhood.IsPlotOwnedByPlayer()

Only available when interacting with a cornerstone game object

Returns

isPlayerOwnedbool

C_HousingNeighborhood.OnBulletinBoardClosed

C_HousingNeighborhood.OnBulletinBoardClosed()

C_HousingNeighborhood.OnCornerstoneClosed

C_HousingNeighborhood.OnCornerstoneClosed()

C_HousingNeighborhood.PromoteToManager

C_HousingNeighborhood.PromoteToManager(playerGUID)

Only available when interacting with a bulletin board game object

Arguments

playerGUIDWOWGUID

C_HousingNeighborhood.RequestNeighborhoodInfo

C_HousingNeighborhood.RequestNeighborhoodInfo()

C_HousingNeighborhood.RequestNeighborhoodRoster

C_HousingNeighborhood.RequestNeighborhoodRoster()

Only available when interacting with a bulletin board game object

C_HousingNeighborhood.RequestPendingNeighborhoodInvites

C_HousingNeighborhood.RequestPendingNeighborhoodInvites()

Only available when interacting with a bulletin board game object

C_HousingNeighborhood.TransferNeighborhoodOwnership

C_HousingNeighborhood.TransferNeighborhoodOwnership(playerGUID)

Only available when interacting with a bulletin board game object

Arguments

playerGUIDWOWGUID

C_HousingNeighborhood.TryEvictPlayer

C_HousingNeighborhood.TryEvictPlayer(plotID)

Only available when interacting with a bulletin board game object

Arguments

plotIDnumber

C_HousingNeighborhood.TryMoveHouse

C_HousingNeighborhood.TryMoveHouse()

Only available when interacting with a cornerstone game object

C_HousingNeighborhood.TryPurchasePlot

C_HousingNeighborhood.TryPurchasePlot()

Only available when interacting with a cornerstone game object

Events

CANCEL_NEIGHBORHOOD_INVITE_RESPONSE

resultNeighborhoodInviteResult
playerNamecstring may be nil

CLOSE_PLOT_CORNERSTONE

No payload.

NEIGHBORHOOD_INFO_UPDATED

neighborhoodInfoNeighborhoodInfo

NEIGHBORHOOD_INVITE_RESPONSE

resultNeighborhoodInviteResult

NEIGHBORHOOD_MAP_DATA_UPDATED

No payload.

NEIGHBORHOOD_NAME_UPDATED

neighborhoodGuidWOWGUID
neighborhoodNamecstring

OPEN_PLOT_CORNERSTONE

No payload.

PENDING_NEIGHBORHOOD_INVITES_RECIEVED

resultNeighborhoodInviteResult
pendingInviteListstring[] may be nil

PURCHASE_PLOT_RESULT

resultnumber

SHOW_PLAYER_EVICTED_DIALOG

No payload.

UPDATE_BULLETIN_BOARD_MEMBER_TYPE

playerWOWGUID
residentTypeResidentType

UPDATE_BULLETIN_BOARD_ROSTER

neighborhoodInfoNeighborhoodInfo
rosterMemberListNeighborhoodRosterMemberInfo[]

UPDATE_BULLETIN_BOARD_ROSTER_STATUSES

rosterMemberListNeighborhoodRosterMemberUpdateInfo[]

Tables

Enum.CornerstonePurchaseMode enumeration

Basic0
Import1
Move2

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows