Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] curious if im barking up the wrong tree here, I'm digging around the database looking for what data

Pages (6): Previous 1 2 3 4 5 6 Next
rektbyfaith
Administrator
0
05-09-2022, 04:07 PM
#21
Archived author: M'Dic • Posted: 2022-05-09T16:07:00.170000+00:00
Original source

but do let me know the results
rektbyfaith
05-09-2022, 04:07 PM #21

Archived author: M'Dic • Posted: 2022-05-09T16:07:00.170000+00:00
Original source

but do let me know the results

rektbyfaith
Administrator
0
05-09-2022, 04:08 PM
#22
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
rektbyfaith
05-09-2022, 04:08 PM #22

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

rektbyfaith
Administrator
0
05-09-2022, 06:49 PM
#23
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;
}

```
rektbyfaith
05-09-2022, 06:49 PM #23

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;
}

```

rektbyfaith
Administrator
0
05-09-2022, 06:50 PM
#24
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
rektbyfaith
05-09-2022, 06:50 PM #24

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

rektbyfaith
Administrator
0
05-09-2022, 07:02 PM
#25
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
rektbyfaith
05-09-2022, 07:02 PM #25

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

rektbyfaith
Administrator
0
05-09-2022, 07:37 PM
#26
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
rektbyfaith
05-09-2022, 07:37 PM #26

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

rektbyfaith
Administrator
0
05-09-2022, 07:42 PM
#27
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
rektbyfaith
05-09-2022, 07:42 PM #27

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

rektbyfaith
Administrator
0
05-09-2022, 07:43 PM
#28
Archived author: SmilyContainer • Posted: 2022-05-09T19:43:01.670000+00:00
Original source

item is `select * from item_template where entry = 32862;`
rektbyfaith
05-09-2022, 07:43 PM #28

Archived author: SmilyContainer • Posted: 2022-05-09T19:43:01.670000+00:00
Original source

item is `select * from item_template where entry = 32862;`

rektbyfaith
Administrator
0
05-09-2022, 07:43 PM
#29
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
rektbyfaith
05-09-2022, 07:43 PM #29

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

rektbyfaith
Administrator
0
05-09-2022, 07:44 PM
#30
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;`
rektbyfaith
05-09-2022, 07:44 PM #30

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;`

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