Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] can some1 explain this to me ?

[DiscordArchive] can some1 explain this to me ?

[DiscordArchive] can some1 explain this to me ?

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
05-05-2023, 04:58 AM
#21
Archived author: Anchy • Posted: 2023-05-05T04:58:03.431000+00:00
Original source

there are different contexts for accessing level for different units
rektbyfaith
05-05-2023, 04:58 AM #21

Archived author: Anchy • Posted: 2023-05-05T04:58:03.431000+00:00
Original source

there are different contexts for accessing level for different units

rektbyfaith
Administrator
0
05-05-2023, 04:58 AM
#22
Archived author: Anchy • Posted: 2023-05-05T04:58:06.730000+00:00
Original source

so I retract what I wrote
rektbyfaith
05-05-2023, 04:58 AM #22

Archived author: Anchy • Posted: 2023-05-05T04:58:06.730000+00:00
Original source

so I retract what I wrote

rektbyfaith
Administrator
0
05-05-2023, 04:58 AM
#23
Archived author: Anchy • Posted: 2023-05-05T04:58:19.620000+00:00
Original source

for example
rektbyfaith
05-05-2023, 04:58 AM #23

Archived author: Anchy • Posted: 2023-05-05T04:58:19.620000+00:00
Original source

for example

rektbyfaith
Administrator
0
05-05-2023, 04:58 AM
#24
Archived author: Anchy • Posted: 2023-05-05T04:58:22.297000+00:00
Original source

```cpp
uint8 Creature::getLevelForTarget(WorldObject const* target) const
{
if (!isWorldBoss() || !target->ToUnit())
return Unit::getLevelForTarget(target);

uint16 level = target->ToUnit()->GetLevel() + sWorld->getIntConfig(CONFIG_WORLD_BOSS_LEVEL_DIFF);
if (level < 1)
return 1;
if (level > 255)
return 255;
return uint8(level);
}```
rektbyfaith
05-05-2023, 04:58 AM #24

Archived author: Anchy • Posted: 2023-05-05T04:58:22.297000+00:00
Original source

```cpp
uint8 Creature::getLevelForTarget(WorldObject const* target) const
{
if (!isWorldBoss() || !target->ToUnit())
return Unit::getLevelForTarget(target);

uint16 level = target->ToUnit()->GetLevel() + sWorld->getIntConfig(CONFIG_WORLD_BOSS_LEVEL_DIFF);
if (level < 1)
return 1;
if (level > 255)
return 255;
return uint8(level);
}```

rektbyfaith
Administrator
0
05-05-2023, 04:58 AM
#25
Archived author: Anchy • Posted: 2023-05-05T04:58:49.736000+00:00
Original source

and
rektbyfaith
05-05-2023, 04:58 AM #25

Archived author: Anchy • Posted: 2023-05-05T04:58:49.736000+00:00
Original source

and

rektbyfaith
Administrator
0
05-05-2023, 04:58 AM
#26
Archived author: Anchy • Posted: 2023-05-05T04:58:52.308000+00:00
Original source

```cpp
uint8 getLevelForTarget(WorldObject const* target) const override
{
if (Unit* owner = GetOwner())
return owner->getLevelForTarget(target);

return 1;
}```
rektbyfaith
05-05-2023, 04:58 AM #26

Archived author: Anchy • Posted: 2023-05-05T04:58:52.308000+00:00
Original source

```cpp
uint8 getLevelForTarget(WorldObject const* target) const override
{
if (Unit* owner = GetOwner())
return owner->getLevelForTarget(target);

return 1;
}```

rektbyfaith
Administrator
0
05-05-2023, 04:59 AM
#27
Archived author: Anchy • Posted: 2023-05-05T04:59:06.357000+00:00
Original source

the first one is for creatures, the second for game objects (i think)
rektbyfaith
05-05-2023, 04:59 AM #27

Archived author: Anchy • Posted: 2023-05-05T04:59:06.357000+00:00
Original source

the first one is for creatures, the second for game objects (i think)

rektbyfaith
Administrator
0
05-05-2023, 04:59 AM
#28
Archived author: Anchy • Posted: 2023-05-05T04:59:38.290000+00:00
Original source

who knows what legacy code it would break if you start messing with it
rektbyfaith
05-05-2023, 04:59 AM #28

Archived author: Anchy • Posted: 2023-05-05T04:59:38.290000+00:00
Original source

who knows what legacy code it would break if you start messing with it

rektbyfaith
Administrator
0
05-05-2023, 04:59 AM
#29
Archived author: Anchy • Posted: 2023-05-05T04:59:41.394000+00:00
Original source

<:kek:1065379143887372398>
rektbyfaith
05-05-2023, 04:59 AM #29

Archived author: Anchy • Posted: 2023-05-05T04:59:41.394000+00:00
Original source

<:kek:1065379143887372398>

rektbyfaith
Administrator
0
05-05-2023, 04:59 AM
#30
Archived author: Rymercyble • Posted: 2023-05-05T04:59:51.090000+00:00
Original source

https://tenor.com/view/forsen-nymn-shaki...f-12075452
rektbyfaith
05-05-2023, 04:59 AM #30

Archived author: Rymercyble • Posted: 2023-05-05T04:59:51.090000+00:00
Original source

https://tenor.com/view/forsen-nymn-shaki...f-12075452

Pages (4): Previous 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)