Forums WoW Modding Support Archives WoWModding Threads [DiscordArchive] Does someone know what is exactly "Misc Value" ...

[DiscordArchive] Does someone know what is exactly "Misc Value" ...

[DiscordArchive] Does someone know what is exactly "Misc Value" ...

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
07-06-2025, 04:33 PM
#11
Archived author: Algardo • Posted: 2025-07-06T16:33:56.585000+00:00
Original source

ok nevermind i found it
rektbyfaith
07-06-2025, 04:33 PM #11

Archived author: Algardo • Posted: 2025-07-06T16:33:56.585000+00:00
Original source

ok nevermind i found it

rektbyfaith
Administrator
0
07-06-2025, 04:34 PM
#12
Archived author: Algardo • Posted: 2025-07-06T16:34:04.069000+00:00
Original source


[Image: image.png?ex=690c253c&is=690ad3bc&hm=e86...bfb2ebc97&]
rektbyfaith
07-06-2025, 04:34 PM #12

Archived author: Algardo • Posted: 2025-07-06T16:34:04.069000+00:00
Original source


[Image: image.png?ex=690c253c&is=690ad3bc&hm=e86...bfb2ebc97&]

rektbyfaith
Administrator
0
07-06-2025, 04:35 PM
#13
Archived author: Crane • Posted: 2025-07-06T16:35:34.283000+00:00
Original source

spell 48777 its a dummy spell and needs a spellscript to work
rektbyfaith
07-06-2025, 04:35 PM #13

Archived author: Crane • Posted: 2025-07-06T16:35:34.283000+00:00
Original source

spell 48777 its a dummy spell and needs a spellscript to work

rektbyfaith
Administrator
0
07-06-2025, 04:35 PM
#14
Archived author: Algardo • Posted: 2025-07-06T16:35:36.039000+00:00
Original source

so ye, looks like it must be done with a script
rektbyfaith
07-06-2025, 04:35 PM #14

Archived author: Algardo • Posted: 2025-07-06T16:35:36.039000+00:00
Original source

so ye, looks like it must be done with a script

rektbyfaith
Administrator
0
07-06-2025, 04:36 PM
#15
Archived author: Algardo • Posted: 2025-07-06T16:36:40.510000+00:00
Original source

thanks for the replies guys
rektbyfaith
07-06-2025, 04:36 PM #15

Archived author: Algardo • Posted: 2025-07-06T16:36:40.510000+00:00
Original source

thanks for the replies guys

rektbyfaith
Administrator
0
07-06-2025, 04:37 PM
#16
Archived author: Crane • Posted: 2025-07-06T16:37:14.441000+00:00
Original source

this item have not a script
rektbyfaith
07-06-2025, 04:37 PM #16

Archived author: Crane • Posted: 2025-07-06T16:37:14.441000+00:00
Original source

this item have not a script

rektbyfaith
Administrator
0
07-06-2025, 04:38 PM
#17
Archived author: Algardo • Posted: 2025-07-06T16:38:22.082000+00:00
Original source

but in the core spell_item.cpp there is this:
rektbyfaith
07-06-2025, 04:38 PM #17

Archived author: Algardo • Posted: 2025-07-06T16:38:22.082000+00:00
Original source

but in the core spell_item.cpp there is this:

rektbyfaith
Administrator
0
07-06-2025, 04:38 PM
#18
Archived author: Algardo • Posted: 2025-07-06T16:38:23.678000+00:00
Original source

```enum MountModSpells
{
SPELL_CARROT_ON_A_STICK_EFFECT = 48402,
SPELL_RIDING_CROP_EFFECT = 48383,
SPELL_MITHRIL_SPURS_EFFECT = 59916,
SPELL_MITHRIL_SPURS = 7215,
SPELL_MOUNT_SPEED_CARROT = 48777,
SPELL_MOUNT_SPEED_RIDING = 48776
};

class spell_item_with_mount_speed : public AuraScript
{
PrepareAuraScript(spell_item_with_mount_speed);

bool Validate(SpellInfo const* /*spellInfo*/) override
{
if (!sSpellMgr->GetSpellInfo(SPELL_MOUNT_SPEED_CARROT)
|| !sSpellMgr->GetSpellInfo(SPELL_MITHRIL_SPURS)
|| !sSpellMgr->GetSpellInfo(SPELL_MOUNT_SPEED_RIDING))
{
return false;
}
return true;
}
uint32 getMountSpellId()
{
switch (m_scriptSpellId)
{
case SPELL_MOUNT_SPEED_CARROT:
return SPELL_CARROT_ON_A_STICK_EFFECT;
case SPELL_MITHRIL_SPURS:
return SPELL_MITHRIL_SPURS_EFFECT;
case SPELL_MOUNT_SPEED_RIDING:
return SPELL_RIDING_CROP_EFFECT;
default:
return 0;
}
}
void OnApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
if (target->GetLevel() <= 70)
{
if (auto spellId = getMountSpellId())
{
target->CastSpell(target, spellId, aurEff);
}
}
}
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
if (auto spellId = getMountSpellId())
{
target->RemoveAurasDueToSpell(spellId);
}
}
void Register() override
{
OnEffectApply += AuraEffectApplyFn(spell_item_with_mount_speed::OnApply, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
OnEffectRemove += AuraEffectRemoveFn(spell_item_with_mount_speed::OnRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
}
};```
rektbyfaith
07-06-2025, 04:38 PM #18

Archived author: Algardo • Posted: 2025-07-06T16:38:23.678000+00:00
Original source

```enum MountModSpells
{
SPELL_CARROT_ON_A_STICK_EFFECT = 48402,
SPELL_RIDING_CROP_EFFECT = 48383,
SPELL_MITHRIL_SPURS_EFFECT = 59916,
SPELL_MITHRIL_SPURS = 7215,
SPELL_MOUNT_SPEED_CARROT = 48777,
SPELL_MOUNT_SPEED_RIDING = 48776
};

class spell_item_with_mount_speed : public AuraScript
{
PrepareAuraScript(spell_item_with_mount_speed);

bool Validate(SpellInfo const* /*spellInfo*/) override
{
if (!sSpellMgr->GetSpellInfo(SPELL_MOUNT_SPEED_CARROT)
|| !sSpellMgr->GetSpellInfo(SPELL_MITHRIL_SPURS)
|| !sSpellMgr->GetSpellInfo(SPELL_MOUNT_SPEED_RIDING))
{
return false;
}
return true;
}
uint32 getMountSpellId()
{
switch (m_scriptSpellId)
{
case SPELL_MOUNT_SPEED_CARROT:
return SPELL_CARROT_ON_A_STICK_EFFECT;
case SPELL_MITHRIL_SPURS:
return SPELL_MITHRIL_SPURS_EFFECT;
case SPELL_MOUNT_SPEED_RIDING:
return SPELL_RIDING_CROP_EFFECT;
default:
return 0;
}
}
void OnApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
if (target->GetLevel() <= 70)
{
if (auto spellId = getMountSpellId())
{
target->CastSpell(target, spellId, aurEff);
}
}
}
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
if (auto spellId = getMountSpellId())
{
target->RemoveAurasDueToSpell(spellId);
}
}
void Register() override
{
OnEffectApply += AuraEffectApplyFn(spell_item_with_mount_speed::OnApply, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
OnEffectRemove += AuraEffectRemoveFn(spell_item_with_mount_speed::OnRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
}
};```

rektbyfaith
Administrator
0
07-06-2025, 04:40 PM
#19
Archived author: Crane • Posted: 2025-07-06T16:40:03.656000+00:00
Original source

ahh ok Aurascript not spellscript ^^
rektbyfaith
07-06-2025, 04:40 PM #19

Archived author: Crane • Posted: 2025-07-06T16:40:03.656000+00:00
Original source

ahh ok Aurascript not spellscript ^^

rektbyfaith
Administrator
0
07-06-2025, 04:41 PM
#20
Archived author: Crane • Posted: 2025-07-06T16:41:43.632000+00:00
Original source

on my Trinitycore have this not scripted . you are using Azerothcore?
rektbyfaith
07-06-2025, 04:41 PM #20

Archived author: Crane • Posted: 2025-07-06T16:41:43.632000+00:00
Original source

on my Trinitycore have this not scripted . you are using Azerothcore?

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