Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] So in this case of creature and target, what class would target be?

[DiscordArchive] So in this case of creature and target, what class would target be?

[DiscordArchive] So in this case of creature and target, what class would target be?

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
10-16-2023, 06:59 AM
#11
Archived author: Orion • Posted: 2023-10-16T06:59:31.431000+00:00
Original source

'cause this is the event

```
RegisterCreatureEvent(299, 9, Nathanos_OnDamageTaken)
```
rektbyfaith
10-16-2023, 06:59 AM #11

Archived author: Orion • Posted: 2023-10-16T06:59:31.431000+00:00
Original source

'cause this is the event

```
RegisterCreatureEvent(299, 9, Nathanos_OnDamageTaken)
```

rektbyfaith
Administrator
0
10-16-2023, 07:01 AM
#12
Archived author: Foe • Posted: 2023-10-16T07:01:40.801000+00:00
Original source

Target is a unit
rektbyfaith
10-16-2023, 07:01 AM #12

Archived author: Foe • Posted: 2023-10-16T07:01:40.801000+00:00
Original source

Target is a unit

rektbyfaith
Administrator
0
10-16-2023, 07:01 AM
#13
Archived author: Foe • Posted: 2023-10-16T07:01:49.500000+00:00
Original source

It can be both player and creature
rektbyfaith
10-16-2023, 07:01 AM #13

Archived author: Foe • Posted: 2023-10-16T07:01:49.500000+00:00
Original source

It can be both player and creature

rektbyfaith
Administrator
0
10-16-2023, 07:04 AM
#14
Archived author: Orion • Posted: 2023-10-16T07:04:43.882000+00:00
Original source

Ooh, nice. Thanks!
Extending the srv functionality with lua is crazy as fuck, I absolutely love it XD It's like i just found a new toy to play with.

Is there a way to intercept the damage and increase it before it gets dealt to the unit? I did a workaround to deal half of the unit's HP as damage or so, but I'd like to do it the other way too, and I couldnt find anything
rektbyfaith
10-16-2023, 07:04 AM #14

Archived author: Orion • Posted: 2023-10-16T07:04:43.882000+00:00
Original source

Ooh, nice. Thanks!
Extending the srv functionality with lua is crazy as fuck, I absolutely love it XD It's like i just found a new toy to play with.

Is there a way to intercept the damage and increase it before it gets dealt to the unit? I did a workaround to deal half of the unit's HP as damage or so, but I'd like to do it the other way too, and I couldnt find anything

rektbyfaith
Administrator
0
10-16-2023, 08:27 AM
#15
Archived author: Roboto • Posted: 2023-10-16T08:27:12.063000+00:00
Original source

`CREATURE_EVENT_ON_DAMAGE_TAKEN = 9, // (event, creature, attacker, damage) - Can return true to stop normal action, can return new damage as second return value.`
rektbyfaith
10-16-2023, 08:27 AM #15

Archived author: Roboto • Posted: 2023-10-16T08:27:12.063000+00:00
Original source

`CREATURE_EVENT_ON_DAMAGE_TAKEN = 9, // (event, creature, attacker, damage) - Can return true to stop normal action, can return new damage as second return value.`

rektbyfaith
Administrator
0
10-16-2023, 08:27 AM
#16
Archived author: Roboto • Posted: 2023-10-16T08:27:43.972000+00:00
Original source

> can return new damage as second return value
rektbyfaith
10-16-2023, 08:27 AM #16

Archived author: Roboto • Posted: 2023-10-16T08:27:43.972000+00:00
Original source

> can return new damage as second return value

rektbyfaith
Administrator
0
10-16-2023, 09:09 AM
#17
Archived author: Orion • Posted: 2023-10-16T09:09:42.566000+00:00
Original source

I tried with return {true, newDamage} but it didnt work
rektbyfaith
10-16-2023, 09:09 AM #17

Archived author: Orion • Posted: 2023-10-16T09:09:42.566000+00:00
Original source

I tried with return {true, newDamage} but it didnt work

rektbyfaith
Administrator
0
10-16-2023, 09:10 AM
#18
Archived author: Orion • Posted: 2023-10-16T09:10:35.219000+00:00
Original source

I'll try it again, maybe the issue was smth else 'cause I do remember changing more than one thing at a time
rektbyfaith
10-16-2023, 09:10 AM #18

Archived author: Orion • Posted: 2023-10-16T09:10:35.219000+00:00
Original source

I'll try it again, maybe the issue was smth else 'cause I do remember changing more than one thing at a time

rektbyfaith
Administrator
0
10-16-2023, 09:12 AM
#19
Archived author: Roboto • Posted: 2023-10-16T09:12:05.923000+00:00
Original source

remove the braces
rektbyfaith
10-16-2023, 09:12 AM #19

Archived author: Roboto • Posted: 2023-10-16T09:12:05.923000+00:00
Original source

remove the braces

rektbyfaith
Administrator
0
10-16-2023, 09:12 AM
#20
Archived author: Orion • Posted: 2023-10-16T09:12:06.728000+00:00
Original source

or should I do like return true, newDamage?
rektbyfaith
10-16-2023, 09:12 AM #20

Archived author: Orion • Posted: 2023-10-16T09:12:06.728000+00:00
Original source

or should I do like return true, newDamage?

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