[DiscordArchive] Does someone know what is exactly "Misc Value" ...
[DiscordArchive] Does someone know what is exactly "Misc Value" ...
Archived author: Algardo • Posted: 2025-07-06T16:33:56.585000+00:00
Original source
ok nevermind i found it
![[Image: image.png?ex=690c253c&is=690ad3bc&hm=e86...bfb2ebc97&]](https://cdn.discordapp.com/attachments/1391426345179025429/1391457181190193373/image.png?ex=690c253c&is=690ad3bc&hm=e8677ae8326fdd389ef6c5d35e44ed71f9a3649965b8a4ad69d4872bfb2ebc97&)
Archived author: Algardo • Posted: 2025-07-06T16:34:04.069000+00:00
Original source
![[Image: image.png?ex=690c253c&is=690ad3bc&hm=e86...bfb2ebc97&]](https://cdn.discordapp.com/attachments/1391426345179025429/1391457181190193373/image.png?ex=690c253c&is=690ad3bc&hm=e8677ae8326fdd389ef6c5d35e44ed71f9a3649965b8a4ad69d4872bfb2ebc97&)
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
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
Archived author: Algardo • Posted: 2025-07-06T16:36:40.510000+00:00
Original source
thanks for the replies guys
Archived author: Crane • Posted: 2025-07-06T16:37:14.441000+00:00
Original source
this item have not a script
Archived author: Algardo • Posted: 2025-07-06T16:38:22.082000+00:00
Original source
but in the core spell_item.cpp there is this:
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);
}
};```
Archived author: Crane • Posted: 2025-07-06T16:40:03.656000+00:00
Original source
ahh ok Aurascript not spellscript ^^
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?