Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving m

[DiscordArchive] alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving m

[DiscordArchive] alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving m

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
05-27-2023, 05:51 AM
#1
Archived author: KJack • Posted: 2023-05-27T05:51:06.751000+00:00
Original source

alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving me fits. I am collecting all the creatures of a dungeon when they are added to the world via `OnCreatureAddWorld`. This works great , and I can figure out an average creature level to scale to, perfect.

SM is special. Although it only runs `OnCreatureAddWorld` for the creatures in the current wing you're in, the map ID and instance ID are the same between all four wings. That means if you enter graveyard first, you get the right average creature level for graveyard. But if you enter cathedral next, you get the average of all the creatures in graveyard plus the ones in cathedral.

You can fix this by resetting the instance before you enter, but that's not a great solution, I don't think. Is there any way to programatically detect which wing of SM the player entered? Or is there a better way to solve this?
rektbyfaith
05-27-2023, 05:51 AM #1

Archived author: KJack • Posted: 2023-05-27T05:51:06.751000+00:00
Original source

alright brilliant friends, i'm a lot of the way there but Scarlet Monastery is specifically giving me fits. I am collecting all the creatures of a dungeon when they are added to the world via `OnCreatureAddWorld`. This works great , and I can figure out an average creature level to scale to, perfect.

SM is special. Although it only runs `OnCreatureAddWorld` for the creatures in the current wing you're in, the map ID and instance ID are the same between all four wings. That means if you enter graveyard first, you get the right average creature level for graveyard. But if you enter cathedral next, you get the average of all the creatures in graveyard plus the ones in cathedral.

You can fix this by resetting the instance before you enter, but that's not a great solution, I don't think. Is there any way to programatically detect which wing of SM the player entered? Or is there a better way to solve this?

rektbyfaith
Administrator
0
05-27-2023, 05:52 AM
#2
Archived author: KJack • Posted: 2023-05-27T05:52:00.471000+00:00
Original source

let me know if i should move this to <#353919176714354698> , now that i think about it. it's asking how core works, but working on `mod-autobalance`.
rektbyfaith
05-27-2023, 05:52 AM #2

Archived author: KJack • Posted: 2023-05-27T05:52:00.471000+00:00
Original source

let me know if i should move this to <#353919176714354698> , now that i think about it. it's asking how core works, but working on `mod-autobalance`.

rektbyfaith
Administrator
0
05-27-2023, 06:20 AM
#3
Archived author: Honey • Posted: 2023-05-27T06:20:44.793000+00:00
Original source

You can fetch the player's area Id on top of the map.
rektbyfaith
05-27-2023, 06:20 AM #3

Archived author: Honey • Posted: 2023-05-27T06:20:44.793000+00:00
Original source

You can fetch the player's area Id on top of the map.

rektbyfaith
Administrator
0
05-27-2023, 06:22 AM
#4
Archived author: Honey • Posted: 2023-05-27T06:22:10.704000+00:00
Original source

Zone as well.
rektbyfaith
05-27-2023, 06:22 AM #4

Archived author: Honey • Posted: 2023-05-27T06:22:10.704000+00:00
Original source

Zone as well.

rektbyfaith
Administrator
0
05-27-2023, 06:23 AM
#5
Archived author: KJack • Posted: 2023-05-27T06:23:56.148000+00:00
Original source

ooo, i don't know how those work. let me see what i can figure out!
rektbyfaith
05-27-2023, 06:23 AM #5

Archived author: KJack • Posted: 2023-05-27T06:23:56.148000+00:00
Original source

ooo, i don't know how those work. let me see what i can figure out!

rektbyfaith
Administrator
0
05-27-2023, 06:25 AM
#6
Archived author: KJack • Posted: 2023-05-27T06:25:39.329000+00:00
Original source

no dice, same values in two different wings.
[Image: image.png?ex=690c3f63&is=690aede3&hm=24e...636ecdce1&]
rektbyfaith
05-27-2023, 06:25 AM #6

Archived author: KJack • Posted: 2023-05-27T06:25:39.329000+00:00
Original source

no dice, same values in two different wings.
[Image: image.png?ex=690c3f63&is=690aede3&hm=24e...636ecdce1&]

rektbyfaith
Administrator
0
05-27-2023, 06:26 AM
#7
Archived author: Rymercyble • Posted: 2023-05-27T06:26:42.875000+00:00
Original source

i mean u could use coords
rektbyfaith
05-27-2023, 06:26 AM #7

Archived author: Rymercyble • Posted: 2023-05-27T06:26:42.875000+00:00
Original source

i mean u could use coords

rektbyfaith
Administrator
0
05-27-2023, 06:27 AM
#8
Archived author: KJack • Posted: 2023-05-27T06:27:15.268000+00:00
Original source

true, or grid/cell IDs. that's going to be super hackish to make work and to keep the creature lists separate. not saying it can't be done though.
rektbyfaith
05-27-2023, 06:27 AM #8

Archived author: KJack • Posted: 2023-05-27T06:27:15.268000+00:00
Original source

true, or grid/cell IDs. that's going to be super hackish to make work and to keep the creature lists separate. not saying it can't be done though.

rektbyfaith
Administrator
0
05-27-2023, 06:27 AM
#9
Archived author: KJack • Posted: 2023-05-27T06:27:47.601000+00:00
Original source

I can just drop a message to the player to reset the instance when changing wings for best scaling.
rektbyfaith
05-27-2023, 06:27 AM #9

Archived author: KJack • Posted: 2023-05-27T06:27:47.601000+00:00
Original source

I can just drop a message to the player to reset the instance when changing wings for best scaling.

rektbyfaith
Administrator
0
05-27-2023, 06:28 AM
#10
Archived author: Honey • Posted: 2023-05-27T06:28:58.816000+00:00
Original source

I'd go with a bunch of checks for x and z variables. The entry spots are declared in the db iirc.
rektbyfaith
05-27-2023, 06:28 AM #10

Archived author: Honey • Posted: 2023-05-27T06:28:58.816000+00:00
Original source

I'd go with a bunch of checks for x and z variables. The entry spots are declared in the db iirc.

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)