Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] anyone know how to enable a spell on certain maps only?

[DiscordArchive] anyone know how to enable a spell on certain maps only?

[DiscordArchive] anyone know how to enable a spell on certain maps only?

rektbyfaith
Administrator
0
07-14-2019, 11:13 PM
#1
Archived author: Chaz • Posted: 2019-07-14T23:13:27.975000+00:00
Original source

anyone know how to enable a spell on certain maps only?
rektbyfaith
07-14-2019, 11:13 PM #1

Archived author: Chaz • Posted: 2019-07-14T23:13:27.975000+00:00
Original source

anyone know how to enable a spell on certain maps only?

rektbyfaith
Administrator
0
07-14-2019, 11:13 PM
#2
Archived author: Chaz • Posted: 2019-07-14T23:13:34.284000+00:00
Original source

spellInfo->mapid maybe?
rektbyfaith
07-14-2019, 11:13 PM #2

Archived author: Chaz • Posted: 2019-07-14T23:13:34.284000+00:00
Original source

spellInfo->mapid maybe?

rektbyfaith
Administrator
0
07-14-2019, 11:13 PM
#3
Archived author: Chaz • Posted: 2019-07-14T23:13:34.810000+00:00
Original source

idk
rektbyfaith
07-14-2019, 11:13 PM #3

Archived author: Chaz • Posted: 2019-07-14T23:13:34.810000+00:00
Original source

idk

rektbyfaith
Administrator
0
07-14-2019, 11:13 PM
#4
Archived author: Chaz • Posted: 2019-07-14T23:13:38.953000+00:00
Original source

in spellmgr.cpp
rektbyfaith
07-14-2019, 11:13 PM #4

Archived author: Chaz • Posted: 2019-07-14T23:13:38.953000+00:00
Original source

in spellmgr.cpp

rektbyfaith
Administrator
0
07-15-2019, 12:31 AM
#5
Archived author: Chaz • Posted: 2019-07-15T00:31:33.151000+00:00
Original source

^ fixed it nevermind
rektbyfaith
07-15-2019, 12:31 AM #5

Archived author: Chaz • Posted: 2019-07-15T00:31:33.151000+00:00
Original source

^ fixed it nevermind

rektbyfaith
Administrator
0
07-15-2019, 12:31 AM
#6
Archived author: Chaz • Posted: 2019-07-15T00:31:34.598000+00:00
Original source

`switch (m_spellInfo->Id)
{
case 31700:
if (m_caster->GetMapId() == 530 m_caster->GetMapId() == 571 m_caster->GetMapId() == 0 m_caster->GetMapId() == 1 m_caster->GetMapId() == 733)
{
break;
}
else
return SPELL_FAILED_NOT_HERE;
break;
}`
rektbyfaith
07-15-2019, 12:31 AM #6

Archived author: Chaz • Posted: 2019-07-15T00:31:34.598000+00:00
Original source

`switch (m_spellInfo->Id)
{
case 31700:
if (m_caster->GetMapId() == 530 m_caster->GetMapId() == 571 m_caster->GetMapId() == 0 m_caster->GetMapId() == 1 m_caster->GetMapId() == 733)
{
break;
}
else
return SPELL_FAILED_NOT_HERE;
break;
}`

rektbyfaith
Administrator
0
07-15-2019, 12:31 AM
#7
Archived author: Chaz • Posted: 2019-07-15T00:31:57.416000+00:00
Original source

spell.cpp
rektbyfaith
07-15-2019, 12:31 AM #7

Archived author: Chaz • Posted: 2019-07-15T00:31:57.416000+00:00
Original source

spell.cpp

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)