Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] <@401001107742130187> Now u need one that trapped and caused periodic damage?

[DiscordArchive] <@401001107742130187> Now u need one that trapped and caused periodic damage?

[DiscordArchive] <@401001107742130187> Now u need one that trapped and caused periodic damage?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
07-20-2024, 11:45 PM
#1
Archived author: M'Dic • Posted: 2024-07-20T23:45:24.640000+00:00
Original source

<@401001107742130187> Now u need one that trapped and caused periodic damage?
rektbyfaith
07-20-2024, 11:45 PM #1

Archived author: M'Dic • Posted: 2024-07-20T23:45:24.640000+00:00
Original source

<@401001107742130187> Now u need one that trapped and caused periodic damage?

rektbyfaith
Administrator
0
07-20-2024, 11:48 PM
#2
Archived author: Krutok • Posted: 2024-07-20T23:48:04.498000+00:00
Original source

if the player is woven into the cocon it does regular damage until the player is taken out
rektbyfaith
07-20-2024, 11:48 PM #2

Archived author: Krutok • Posted: 2024-07-20T23:48:04.498000+00:00
Original source

if the player is woven into the cocon it does regular damage until the player is taken out

rektbyfaith
Administrator
0
07-20-2024, 11:48 PM
#3
Archived author: M'Dic • Posted: 2024-07-20T23:48:37.800000+00:00
Original source

Alrighty. Lemme see what i got
rektbyfaith
07-20-2024, 11:48 PM #3

Archived author: M'Dic • Posted: 2024-07-20T23:48:37.800000+00:00
Original source

Alrighty. Lemme see what i got

rektbyfaith
Administrator
0
07-20-2024, 11:50 PM
#4
Archived author: Krutok • Posted: 2024-07-20T23:50:27.965000+00:00
Original source

The spell for it is there, there just needs to be a script on it.
I just don't know which two spells are being traded, I picked out two more. Always difficult to define.
rektbyfaith
07-20-2024, 11:50 PM #4

Archived author: Krutok • Posted: 2024-07-20T23:50:27.965000+00:00
Original source

The spell for it is there, there just needs to be a script on it.
I just don't know which two spells are being traded, I picked out two more. Always difficult to define.

rektbyfaith
Administrator
0
07-20-2024, 11:57 PM
#5
Archived author: Npc • Posted: 2024-07-20T23:57:39.621000+00:00
Original source

Brother, look, when I complete this task, that guy with the skull will disappear. And in the database I can’t find a link between this dude and the quest
[Image: qq2.PNG?ex=690c8d33&is=690b3bb3&hm=698f7...03b3f51ec&]
rektbyfaith
07-20-2024, 11:57 PM #5

Archived author: Npc • Posted: 2024-07-20T23:57:39.621000+00:00
Original source

Brother, look, when I complete this task, that guy with the skull will disappear. And in the database I can’t find a link between this dude and the quest
[Image: qq2.PNG?ex=690c8d33&is=690b3bb3&hm=698f7...03b3f51ec&]

rektbyfaith
Administrator
0
07-21-2024, 12:01 AM
#6
Archived author: Npc • Posted: 2024-07-21T00:01:30.760000+00:00
Original source

my .gps
https://pastebin.com/qtyx1Dwt
[Embed: gps - Pastebin.com]
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
https://pastebin.com/qtyx1Dwt
rektbyfaith
07-21-2024, 12:01 AM #6

Archived author: Npc • Posted: 2024-07-21T00:01:30.760000+00:00
Original source

my .gps
https://pastebin.com/qtyx1Dwt
[Embed: gps - Pastebin.com]
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
https://pastebin.com/qtyx1Dwt

rektbyfaith
Administrator
0
07-21-2024, 12:03 AM
#7
Archived author: M'Dic • Posted: 2024-07-21T00:03:04.198000+00:00
Original source

Im trying to see what i have that is close to it being a aura and periodic damage
rektbyfaith
07-21-2024, 12:03 AM #7

Archived author: M'Dic • Posted: 2024-07-21T00:03:04.198000+00:00
Original source

Im trying to see what i have that is close to it being a aura and periodic damage

rektbyfaith
Administrator
0
07-21-2024, 12:03 AM
#8
Archived author: M'Dic • Posted: 2024-07-21T00:03:22.289000+00:00
Original source

I see this script specifically:
```
class spell_marrowgar_coldflame_damage : public SpellScriptLoader
{
public:
spell_marrowgar_coldflame_damage() : SpellScriptLoader("spell_marrowgar_coldflame_damage") { }

class spell_marrowgar_coldflame_damage_AuraScript : public AuraScript
{
PrepareAuraScript(spell_marrowgar_coldflame_damage_AuraScript);

bool CanBeAppliedOn(Unit* target)
{
if (target->HasAura(SPELL_IMPALED))
return false;

if (target->GetExactDist2d(GetOwner()) > GetSpellInfo()->Effects[EFFECT_0].CalcRadius())
return false;

if (auto aura = target->GetAura(GetId()))
if (aura->GetOwner() != GetOwner())
return false;

return true;
}

void OnPeriodic(AuraEffect const* /*aurEff*/)
{
if (DynamicObject* owner = GetDynobjOwner())
if (GetTarget()->GetExactDist2d(owner) >= owner->GetRadius() || GetTarget()->HasAura(SPELL_IMPALED))
PreventDefaultAction();
}

void Register()
{
OnEffectPeriodic += AuraEffectPeriodicFn(spell_marrowgar_coldflame_damage_AuraScript::OnPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE);
DoCheckAreaTarget += AuraCheckAreaTargetFn(spell_marrowgar_coldflame_damage_AuraScript::CanBeAppliedOn);
}
};

AuraScript* GetAuraScript() const
{
return new spell_marrowgar_coldflame_damage_AuraScript();
}
};
```
rektbyfaith
07-21-2024, 12:03 AM #8

Archived author: M'Dic • Posted: 2024-07-21T00:03:22.289000+00:00
Original source

I see this script specifically:
```
class spell_marrowgar_coldflame_damage : public SpellScriptLoader
{
public:
spell_marrowgar_coldflame_damage() : SpellScriptLoader("spell_marrowgar_coldflame_damage") { }

class spell_marrowgar_coldflame_damage_AuraScript : public AuraScript
{
PrepareAuraScript(spell_marrowgar_coldflame_damage_AuraScript);

bool CanBeAppliedOn(Unit* target)
{
if (target->HasAura(SPELL_IMPALED))
return false;

if (target->GetExactDist2d(GetOwner()) > GetSpellInfo()->Effects[EFFECT_0].CalcRadius())
return false;

if (auto aura = target->GetAura(GetId()))
if (aura->GetOwner() != GetOwner())
return false;

return true;
}

void OnPeriodic(AuraEffect const* /*aurEff*/)
{
if (DynamicObject* owner = GetDynobjOwner())
if (GetTarget()->GetExactDist2d(owner) >= owner->GetRadius() || GetTarget()->HasAura(SPELL_IMPALED))
PreventDefaultAction();
}

void Register()
{
OnEffectPeriodic += AuraEffectPeriodicFn(spell_marrowgar_coldflame_damage_AuraScript::OnPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE);
DoCheckAreaTarget += AuraCheckAreaTargetFn(spell_marrowgar_coldflame_damage_AuraScript::CanBeAppliedOn);
}
};

AuraScript* GetAuraScript() const
{
return new spell_marrowgar_coldflame_damage_AuraScript();
}
};
```

rektbyfaith
Administrator
0
07-21-2024, 12:04 AM
#9
Archived author: M'Dic • Posted: 2024-07-21T00:04:11.081000+00:00
Original source

Now the spider web thing at that stronghold. I just got that scripted as a npc script which does a random chance to turn into another npc or trash mob.
rektbyfaith
07-21-2024, 12:04 AM #9

Archived author: M'Dic • Posted: 2024-07-21T00:04:11.081000+00:00
Original source

Now the spider web thing at that stronghold. I just got that scripted as a npc script which does a random chance to turn into another npc or trash mob.

rektbyfaith
Administrator
0
07-21-2024, 12:05 AM
#10
Archived author: M'Dic • Posted: 2024-07-21T00:05:00.700000+00:00
Original source

So the periodi. Is the OnEffectPeriodic. But let me check if thats still current on tc
rektbyfaith
07-21-2024, 12:05 AM #10

Archived author: M'Dic • Posted: 2024-07-21T00:05:00.700000+00:00
Original source

So the periodi. Is the OnEffectPeriodic. But let me check if thats still current on tc

Pages (2): 1 2 Next
Recently Browsing
 
Recently Browsing