[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?
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?
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
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
ealDamage(creature, damage * 10)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
attacker
ealDamage(creature, damage * 10)
end
end
```
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
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
![[Image: image.png?ex=690c4579&is=690af3f9&hm=4f4...d7c420236&]](https://cdn.discordapp.com/attachments/448835144564867094/1163368637529333831/image.png?ex=690c4579&is=690af3f9&hm=4f41df24d3baa72b65e7017da9f965551187efb5539ab923c826c76d7c420236&)
Archived author: Orion • Posted: 2023-10-16T06:51:37.612000+00:00
Original source
![[Image: image.png?ex=690c4579&is=690af3f9&hm=4f4...d7c420236&]](https://cdn.discordapp.com/attachments/448835144564867094/1163368637529333831/image.png?ex=690c4579&is=690af3f9&hm=4f41df24d3baa72b65e7017da9f965551187efb5539ab923c826c76d7c420236&)
Archived author: Orion • Posted: 2023-10-16T06:51:40.387000+00:00
Original source
Also it damages three whole times*
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
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?