Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] hello everyone, why are having this spam?

[DiscordArchive] hello everyone, why are having this spam?

[DiscordArchive] hello everyone, why are having this spam?

rektbyfaith
Administrator
0
04-05-2022, 06:14 PM
#1
Archived author: Prouttz • Posted: 2022-04-05T18:14:19.266000+00:00
Original source

hello everyone, why are having this spam?
[Image: 17890.jpg?ex=690c3cbb&is=690aeb3b&hm=612...f84a7e3bd&]
rektbyfaith
04-05-2022, 06:14 PM #1

Archived author: Prouttz • Posted: 2022-04-05T18:14:19.266000+00:00
Original source

hello everyone, why are having this spam?
[Image: 17890.jpg?ex=690c3cbb&is=690aeb3b&hm=612...f84a7e3bd&]

rektbyfaith
Administrator
0
04-05-2022, 06:21 PM
#2
Archived author: Bogir • Posted: 2022-04-05T18:21:58.640000+00:00
Original source

If I understand correctly, the script can be corrected like this:

```cpp
SPELL_BEAST_MARK_NORMAL = 48876,
SPELL_BEAST_MARK_HEROIC = 59237, // added
SPELL_BEAST_MARK_DAMAGE_N = 48877,
SPELL_BEAST_MARK_DAMAGE_H = 59233

...

void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)
{
PreventDefaultAction();
Unit* target = GetTarget();
//uint32 spellId = (m_scriptSpellId == SPELL_BEAST_MARK_NORMAL) ? SPELL_BEAST_MARK_DAMAGE_N : SPELL_BEAST_MARK_DAMAGE_H;

uint32 spellId = SPELL_BEAST_MARK_DAMAGE_N; //normal by default
switch (m_scriptSpellId)
{
case SPELL_BEAST_MARK_NORMAL:
spellId = SPELL_BEAST_MARK_DAMAGE_N;
break;
case SPELL_BEAST_MARK_HEROIC:
spellId = SPELL_BEAST_MARK_DAMAGE_H;
break;
default:
break;
}
target->CastSpell(target, spellId, aurEff);
}
```
rektbyfaith
04-05-2022, 06:21 PM #2

Archived author: Bogir • Posted: 2022-04-05T18:21:58.640000+00:00
Original source

If I understand correctly, the script can be corrected like this:

```cpp
SPELL_BEAST_MARK_NORMAL = 48876,
SPELL_BEAST_MARK_HEROIC = 59237, // added
SPELL_BEAST_MARK_DAMAGE_N = 48877,
SPELL_BEAST_MARK_DAMAGE_H = 59233

...

void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)
{
PreventDefaultAction();
Unit* target = GetTarget();
//uint32 spellId = (m_scriptSpellId == SPELL_BEAST_MARK_NORMAL) ? SPELL_BEAST_MARK_DAMAGE_N : SPELL_BEAST_MARK_DAMAGE_H;

uint32 spellId = SPELL_BEAST_MARK_DAMAGE_N; //normal by default
switch (m_scriptSpellId)
{
case SPELL_BEAST_MARK_NORMAL:
spellId = SPELL_BEAST_MARK_DAMAGE_N;
break;
case SPELL_BEAST_MARK_HEROIC:
spellId = SPELL_BEAST_MARK_DAMAGE_H;
break;
default:
break;
}
target->CastSpell(target, spellId, aurEff);
}
```

rektbyfaith
Administrator
0
04-05-2022, 06:36 PM
#3
Archived author: Foe • Posted: 2022-04-05T18:36:40.027000+00:00
Original source

That would work, yes
rektbyfaith
04-05-2022, 06:36 PM #3

Archived author: Foe • Posted: 2022-04-05T18:36:40.027000+00:00
Original source

That would work, yes

rektbyfaith
Administrator
0
04-05-2022, 07:15 PM
#4
Archived author: Bogir • Posted: 2022-04-05T19:15:42.317000+00:00
Original source

me too
[Image: unknown.png?ex=690c4b1e&is=690af99e&hm=7...fac2b00e1&]
rektbyfaith
04-05-2022, 07:15 PM #4

Archived author: Bogir • Posted: 2022-04-05T19:15:42.317000+00:00
Original source

me too
[Image: unknown.png?ex=690c4b1e&is=690af99e&hm=7...fac2b00e1&]

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)