Forums WoW Modding Support Archives WoWModding Threads [DiscordArchive] How does one create an area that causes the pla...

[DiscordArchive] How does one create an area that causes the pla...

[DiscordArchive] How does one create an area that causes the pla...

rektbyfaith
Administrator
0
12-02-2024, 05:40 PM
#1
Archived author: Needle • Posted: 2024-12-02T17:40:01.693000+00:00
Original source

rektbyfaith
12-02-2024, 05:40 PM #1

Archived author: Needle • Posted: 2024-12-02T17:40:01.693000+00:00
Original source

rektbyfaith
Administrator
0
12-02-2024, 05:40 PM
#2
Archived author: Needle • Posted: 2024-12-02T17:40:02.671000+00:00
Original source

Thread automatically created by Crow in <#415944535718494208>
rektbyfaith
12-02-2024, 05:40 PM #2

Archived author: Needle • Posted: 2024-12-02T17:40:02.671000+00:00
Original source

Thread automatically created by Crow in <#415944535718494208>

rektbyfaith
Administrator
0
12-03-2024, 02:37 AM
#3
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.
rektbyfaith
12-03-2024, 02:37 AM #3

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.

rektbyfaith
Administrator
0
12-03-2024, 03:14 PM
#4
Archived author: Crow • Posted: 2024-12-03T15:14:27.428000+00:00
Original source

That's cool for a city. What about an inn?
rektbyfaith
12-03-2024, 03:14 PM #4

Archived author: Crow • Posted: 2024-12-03T15:14:27.428000+00:00
Original source

That's cool for a city. What about an inn?

rektbyfaith
Administrator
0
12-04-2024, 09:37 PM
#5
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.
rektbyfaith
12-04-2024, 09:37 PM #5

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.

rektbyfaith
Administrator
0
12-04-2024, 10:01 PM
#6
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?
rektbyfaith
12-04-2024, 10:01 PM #6

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?

rektbyfaith
Administrator
0
12-04-2024, 10:50 PM
#7
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&]

[Image: image.png?ex=690c7d66&is=690b2be6&hm=d32...8dc26bdcc&]
rektbyfaith
12-04-2024, 10:50 PM #7

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&]

[Image: image.png?ex=690c7d66&is=690b2be6&hm=d32...8dc26bdcc&]

rektbyfaith
Administrator
0
12-04-2024, 10:51 PM
#8
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.
rektbyfaith
12-04-2024, 10:51 PM #8

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.

rektbyfaith
Administrator
0
12-04-2024, 10:51 PM
#9
Archived author: Xahnder • Posted: 2024-12-04T22:51:50.810000+00:00
Original source

They all achieve this via the AreaTable
rektbyfaith
12-04-2024, 10:51 PM #9

Archived author: Xahnder • Posted: 2024-12-04T22:51:50.810000+00:00
Original source

They all achieve this via the AreaTable

rektbyfaith
Administrator
0
12-05-2024, 02:16 AM
#10
Archived author: Crow • Posted: 2024-12-05T02:16:06.046000+00:00
Original source

Thanks man I really appreciate the info
rektbyfaith
12-05-2024, 02:16 AM #10

Archived author: Crow • Posted: 2024-12-05T02:16:06.046000+00:00
Original source

Thanks man I really appreciate the info

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)