[DiscordArchive] How does one create an area that causes the pla...
[DiscordArchive] How does one create an area that causes the pla...
Archived author: Needle • Posted: 2024-12-02T17:40:01.693000+00:00
Original source
Archived author: Needle • Posted: 2024-12-02T17:40:02.671000+00:00
Original source
Thread automatically created by Crow in <#415944535718494208>
Archived author: Xahnder • Posted: 2024-12-03T02:37:13.913000+00:00
Original source
This is achieved via the AreaTable.dbc file (https://wowdev.wiki/DB/AreaTable). It's controlled by flags (AREA_FLAG_AllowResting, AREA_FLAG_Horde Resting, AREA_FLAG_Alliance Resting). Set the flag for the areatable record you want to have resting enabled for. And if on TrinityCore or AzerothCore, you can alternatively put records in the areatrigger and areatrigger_tavern SQL tables.
Archived author: Crow • Posted: 2024-12-03T15:14:27.428000+00:00
Original source
That's cool for a city. What about an inn?
Archived author: Xahnder • Posted: 2024-12-04T21:37:48.950000+00:00
Original source
It applies the same, so no concerns there. There are AreaTable associations at the Map.dbc as well as Wmoareatable.dbc levels. For example, the inn in wetlands has it's own Areatable record.
Archived author: Crow • Posted: 2024-12-04T22:01:39.782000+00:00
Original source
An areatable without an area on the ground but just for the wmo?
![[Image: image.png?ex=690c7d65&is=690b2be5&hm=ef4...874b0d7ce&]](https://cdn.discordapp.com/attachments/1313198000457121792/1314000842587766804/image.png?ex=690c7d65&is=690b2be5&hm=ef479b999d38ad15aa7c249b6a782e24545feb52f7906d9e368fe11874b0d7ce&)
![[Image: image.png?ex=690c7d66&is=690b2be6&hm=d32...8dc26bdcc&]](https://cdn.discordapp.com/attachments/1313198000457121792/1314000843476828240/image.png?ex=690c7d66&is=690b2be6&hm=d324327cd9dd30c96901f642b98d65304609879cd0de5645bdff0228dc26bdcc&)
Archived author: Xahnder • Posted: 2024-12-04T22:50:14.089000+00:00
Original source
"Areas" are used at multiple levels, and have respective AreaTable records. At the highest level, you have an AreaID associated with a whole map in Map.dbc. Next step down, you can have an AreaTable record for individual ADT chunks (MCNK areaid). And even one step below (well, to the side) of that you can have your WMO root OR groups reference an AreaTable record via wmoareatable. Here's wetlands. Pic 1 shows that the Area table record is 150 for Menethil Harbor, but flips to Area 2104 for Deepwater Harbor just as soon as the WMO for the inn is under the player (so applies outside the building too). Technically you could make all of Menethil Harbor provide resting bonus if you change record 150 of AreaTable
![[Image: image.png?ex=690c7d65&is=690b2be5&hm=ef4...874b0d7ce&]](https://cdn.discordapp.com/attachments/1313198000457121792/1314000842587766804/image.png?ex=690c7d65&is=690b2be5&hm=ef479b999d38ad15aa7c249b6a782e24545feb52f7906d9e368fe11874b0d7ce&)
![[Image: image.png?ex=690c7d66&is=690b2be6&hm=d32...8dc26bdcc&]](https://cdn.discordapp.com/attachments/1313198000457121792/1314000843476828240/image.png?ex=690c7d66&is=690b2be6&hm=d324327cd9dd30c96901f642b98d65304609879cd0de5645bdff0228dc26bdcc&)
Archived author: Xahnder • Posted: 2024-12-04T22:51:37.107000+00:00
Original source
Keep in mind that in most places, it's only the inn that gives you the rested and quick logout. That's how this inn works. And Goldshire inn, for example, is that way too.
Archived author: Xahnder • Posted: 2024-12-04T22:51:50.810000+00:00
Original source
They all achieve this via the AreaTable
Archived author: Crow • Posted: 2024-12-05T02:16:06.046000+00:00
Original source
Thanks man I really appreciate the info