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): 1 2 3 4 Next
rektbyfaith
Administrator
0
10-16-2023, 06:00 AM
#1
Archived author: Orion • Posted: 2023-10-16T06:00:43.189000+00:00
Original source

So in this case of creature and target, what class would target be?
rektbyfaith
10-16-2023, 06:00 AM #1

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

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

rektbyfaith
Administrator
0
10-16-2023, 06:02 AM
#2
Archived author: Orion • Posted: 2023-10-16T06:02:52.357000+00:00
Original source

'cause for example, print("creature: "..creature:GetName().." has entered combat.") this works. but I can't find "GetName()" for creature class in Eluna documentation
rektbyfaith
10-16-2023, 06:02 AM #2

Archived author: Orion • Posted: 2023-10-16T06:02:52.357000+00:00
Original source

'cause for example, print("creature: "..creature:GetName().." has entered combat.") this works. but I can't find "GetName()" for creature class in Eluna documentation

rektbyfaith
Administrator
0
10-16-2023, 06:30 AM
#3
Archived author: Roboto • Posted: 2023-10-16T06:30:27.906000+00:00
Original source

Here's [`GetName()`](<https://www.azerothcore.org/pages/eluna/WorldObject/GetName.html>), it comes from the `WorldObject` class, which both the `Player` and `Creature` classes inherit from
rektbyfaith
10-16-2023, 06:30 AM #3

Archived author: Roboto • Posted: 2023-10-16T06:30:27.906000+00:00
Original source

Here's [`GetName()`](<https://www.azerothcore.org/pages/eluna/WorldObject/GetName.html>), it comes from the `WorldObject` class, which both the `Player` and `Creature` classes inherit from

rektbyfaith
Administrator
0
10-16-2023, 06:49 AM
#4
Archived author: Orion • Posted: 2023-10-16T06:49:47.998000+00:00
Original source

Ah, I see.
Well it'll take a bit until I randomly guess what type each param is, but shouldn't be that hard.

Also, why is this damage * 10 causing 19 damage to become bigger than 4294967295???
```
local function Nathanos_OnDamageTaken(event, creature, attacker, damage)
if attacker then
attackerBig GrinealDamage(creature, damage * 10)
end
end
```
rektbyfaith
10-16-2023, 06:49 AM #4

Archived author: Orion • Posted: 2023-10-16T06:49:47.998000+00:00
Original source

Ah, I see.
Well it'll take a bit until I randomly guess what type each param is, but shouldn't be that hard.

Also, why is this damage * 10 causing 19 damage to become bigger than 4294967295???
```
local function Nathanos_OnDamageTaken(event, creature, attacker, damage)
if attacker then
attackerBig GrinealDamage(creature, damage * 10)
end
end
```

rektbyfaith
Administrator
0
10-16-2023, 06:50 AM
#5
Archived author: Orion • Posted: 2023-10-16T06:50:04.108000+00:00
Original source

atm it's not on Nathanos, it's on diseased young wolf, the lv1 mob from human starting zone
rektbyfaith
10-16-2023, 06:50 AM #5

Archived author: Orion • Posted: 2023-10-16T06:50:04.108000+00:00
Original source

atm it's not on Nathanos, it's on diseased young wolf, the lv1 mob from human starting zone

rektbyfaith
Administrator
0
10-16-2023, 06:50 AM
#6
Archived author: Orion • Posted: 2023-10-16T06:50:14.234000+00:00
Original source

I deal 19 damage to it, but for some reason damage * 10 turns it into ungodly nubmers
rektbyfaith
10-16-2023, 06:50 AM #6

Archived author: Orion • Posted: 2023-10-16T06:50:14.234000+00:00
Original source

I deal 19 damage to it, but for some reason damage * 10 turns it into ungodly nubmers

rektbyfaith
Administrator
0
10-16-2023, 06:51 AM
#7
Archived author: Orion • Posted: 2023-10-16T06:51:37.612000+00:00
Original source


[Image: image.png?ex=690c4579&is=690af3f9&hm=4f4...d7c420236&]
rektbyfaith
10-16-2023, 06:51 AM #7

Archived author: Orion • Posted: 2023-10-16T06:51:37.612000+00:00
Original source


[Image: image.png?ex=690c4579&is=690af3f9&hm=4f4...d7c420236&]

rektbyfaith
Administrator
0
10-16-2023, 06:51 AM
#8
Archived author: Orion • Posted: 2023-10-16T06:51:40.387000+00:00
Original source

Also it damages three whole times*
rektbyfaith
10-16-2023, 06:51 AM #8

Archived author: Orion • Posted: 2023-10-16T06:51:40.387000+00:00
Original source

Also it damages three whole times*

rektbyfaith
Administrator
0
10-16-2023, 06:52 AM
#9
Archived author: Orion • Posted: 2023-10-16T06:52:35.279000+00:00
Original source

Nvm I was including the file in another one by mistake. It's just the crazy number
rektbyfaith
10-16-2023, 06:52 AM #9

Archived author: Orion • Posted: 2023-10-16T06:52:35.279000+00:00
Original source

Nvm I was including the file in another one by mistake. It's just the crazy number

rektbyfaith
Administrator
0
10-16-2023, 06:58 AM
#10
Archived author: Orion • Posted: 2023-10-16T06:58:55.745000+00:00
Original source

Oh my god, it's calling itself over and over again 'cause of the DealDamage, is it not?
rektbyfaith
10-16-2023, 06:58 AM #10

Archived author: Orion • Posted: 2023-10-16T06:58:55.745000+00:00
Original source

Oh my god, it's calling itself over and over again 'cause of the DealDamage, is it not?

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