[DiscordArchive] curious if im barking up the wrong tree here, I'm digging around the database looking for what data
[DiscordArchive] curious if im barking up the wrong tree here, I'm digging around the database looking for what data
Archived author: M'Dic • Posted: 2022-05-09T16:07:00.170000+00:00
Original source
but do let me know the results
Archived author: SmilyContainer • Posted: 2022-05-09T16:08:16.127000+00:00
Original source
i appreciate the spittballing, i can run with this and make the patch and see what happens
Archived author: SmilyContainer • Posted: 2022-05-09T18:49:31.733000+00:00
Original source
```diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index ebedfbb0d..d6d5c9c9e 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -23,6 +23,7 @@
#include "CellImpl.h"
#include "Common.h"
#include "ConditionMgr.h"
+#include "Configuration/Config.h"
#include "DisableMgr.h"
#include "DynamicObject.h"
#include "GameObjectAI.h"
@@ -6475,8 +6476,10 @@ SpellCastResult Spell::CheckCast(bool strict)
{
Battlefield* Bf = sBattlefieldMgr->GetBattlefieldToZoneId(m_originalCaster->GetZoneId());
if (AreaTableEntry const* pArea = sAreaTableStore.LookupEntry(m_originalCaster->GetAreaId()))
- if ((pArea->flags & AREA_FLAG_NO_FLY_ZONE) || (Bf && !Bf->CanFlyIn()))
+ if (((pArea->flags & AREA_FLAG_NO_FLY_ZONE) && !sConfigMgr->GetOption<bool>("FlyingMountsAzeroth.Enabled", false)) || (Bf && !Bf->CanFlyIn())) {
+ std::cout << sConfigMgr->GetOption<bool>("FlyingMountsAzeroth.Enabled", false) << std::endl;
return SPELL_FAILED_NOT_HERE;
+ }
}
break;
}
```
Archived author: SmilyContainer • Posted: 2022-05-09T18:50:08.519000+00:00
Original source
I wasn't able to get this working, the spell is grayed out client side still and i don't see the print statement getting tripped
Archived author: M'Dic • Posted: 2022-05-09T19:02:27.108000+00:00
Original source
I would check the individual fly mount spells to see if they are restricted to a map id in the dbc would be the next route
Archived author: Ruderalis • Posted: 2022-05-09T19:37:52.064000+00:00
Original source
It's a spell attribute on the mounts spells (Only usable in flying areas) in Spell.DBC
Archived author: SmilyContainer • Posted: 2022-05-09T19:42:40.488000+00:00
Original source
hmm, im missing something associating mount items to spells, i looked up the item and it `spellid_1` 55884 but `select * from spell_dbc where ID = 55884;` give me back nothin
Archived author: SmilyContainer • Posted: 2022-05-09T19:43:01.670000+00:00
Original source
item is `select * from item_template where entry = 32862;`
Archived author: Ruderalis • Posted: 2022-05-09T19:43:09.795000+00:00
Original source
It may be an entry in Spell.DBC instead, not db side. I guess it's the learning spell, the mount spell should be the spellid_2
Archived author: SmilyContainer • Posted: 2022-05-09T19:44:54.255000+00:00
Original source
ah there is a spellid_2 but it also returns nothin `select * from spell_dbc where ID = 41518;`