TrinityCore
go_scripts.cpp File Reference
#include "ScriptMgr.h"
#include "DB2Structure.h"
#include "GameEventMgr.h"
#include "GameObject.h"
#include "GameObjectAI.h"
#include "GameTime.h"
#include "Log.h"
#include "MotionMaster.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "TemporarySummon.h"
#include "WorldSession.h"
+ Include dependency graph for go_scripts.cpp:

Go to the source code of this file.

Classes

class  go_gilded_brazier
 
struct  go_gilded_brazier::go_gilded_brazierAI
 
class  go_tablet_of_the_seven
 
struct  go_tablet_of_the_seven::go_tablet_of_the_sevenAI
 
class  go_ethereum_prison
 
struct  go_ethereum_prison::go_ethereum_prisonAI
 
class  go_ethereum_stasis
 
struct  go_ethereum_stasis::go_ethereum_stasisAI
 
class  go_resonite_cask
 
struct  go_resonite_cask::go_resonite_caskAI
 
class  go_southfury_moonstone
 
struct  go_southfury_moonstone::go_southfury_moonstoneAI
 
class  go_tele_to_dalaran_crystal
 
struct  go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI
 
class  go_tele_to_violet_stand
 
struct  go_tele_to_violet_stand::go_tele_to_violet_standAI
 
class  go_blood_filled_orb
 
struct  go_blood_filled_orb::go_blood_filled_orbAI
 
class  go_soulwell
 
struct  go_soulwell::go_soulwellAI
 
class  go_amberpine_outhouse
 
struct  go_amberpine_outhouse::go_amberpine_outhouseAI
 
class  go_massive_seaforium_charge
 
struct  go_massive_seaforium_charge::go_massive_seaforium_chargeAI
 
class  go_veil_skith_cage
 
struct  go_veil_skith_cage::go_veil_skith_cageAI
 
class  go_midsummer_bonfire
 
struct  go_midsummer_bonfire::go_midsummer_bonfireAI
 
class  go_midsummer_ribbon_pole
 
struct  go_midsummer_ribbon_pole::go_midsummer_ribbon_poleAI
 
class  go_brewfest_music
 
struct  go_brewfest_music::go_brewfest_musicAI
 
class  go_midsummer_music
 
struct  go_midsummer_music::go_midsummer_musicAI
 
class  go_darkmoon_faire_music
 
struct  go_darkmoon_faire_music::go_darkmoon_faire_musicAI
 
class  go_pirate_day_music
 
struct  go_pirate_day_music::go_pirate_day_musicAI
 
class  go_bells
 
struct  go_bells::go_bellsAI
 

Macros

#define GO_TELE_TO_DALARAN_CRYSTAL_FAILED   "This teleport crystal cannot be used until the teleport crystal in Dalaran has been used at least once."
 
#define GOSSIP_USE_OUTHOUSE   "Use the outhouse."
 
#define GO_ANDERHOLS_SLIDER_CIDER_NOT_FOUND   "Quest item Anderhol's Slider Cider not found."
 

Enumerations

enum  GildedBrazier { NPC_STILLBLADE = 17716 , QUEST_THE_FIRST_TRIAL = 9678 }
 
enum  EthereumPrison {
  SPELL_REP_LC = 39456 , SPELL_REP_SHAT = 39457 , SPELL_REP_CE = 39460 , SPELL_REP_CON = 39474 ,
  SPELL_REP_KT = 39475 , SPELL_REP_SPOR = 39476
}
 
enum  ResoniteCask { NPC_GOGGEROC = 11920 }
 
enum  Southfury { NPC_RIZZLE = 23002 , SPELL_BLACKJACK = 39865 , SPELL_SUMMON_RIZZLE = 39866 }
 
enum  DalaranCrystal { QUEST_LEARN_LEAVE_RETURN = 12790 , QUEST_TELE_CRYSTAL_FLAG = 12845 }
 
enum  BloodFilledOrb { NPC_ZELEMAR = 17830 }
 
enum  AmberpineOuthouse {
  ITEM_ANDERHOLS_SLIDER_CIDER = 37247 , NPC_OUTHOUSE_BUNNY = 27326 , QUEST_DOING_YOUR_DUTY = 12227 , SPELL_INDISPOSED = 53017 ,
  SPELL_INDISPOSED_III = 48341 , SPELL_CREATE_AMBERSEEDS = 48330 , GOSSIP_OUTHOUSE_INUSE = 12775 , GOSSIP_OUTHOUSE_VACANT = 12779
}
 
enum  MissingFriends { QUEST_MISSING_FRIENDS = 10852 , NPC_CAPTIVE_CHILD = 22314 , SAY_FREE_0 = 0 }
 
enum  MidsummerBonfire { STAMP_OUT_BONFIRE_QUEST_COMPLETE = 45458 }
 
enum  MidsummerPoleRibbon {
  SPELL_TEST_RIBBON_POLE_1 = 29705 , SPELL_TEST_RIBBON_POLE_2 = 29726 , SPELL_TEST_RIBBON_POLE_3 = 29727 , NPC_POLE_RIBBON_BUNNY = 17066 ,
  ACTION_COSMETIC_FIRES = 0
}
 
enum  BrewfestMusic {
  EVENT_BREWFESTDWARF01 = 11810 , EVENT_BREWFESTDWARF02 = 11812 , EVENT_BREWFESTDWARF03 = 11813 , EVENT_BREWFESTGOBLIN01 = 11811 ,
  EVENT_BREWFESTGOBLIN02 = 11814 , EVENT_BREWFESTGOBLIN03 = 11815
}
 
enum  BrewfestMusicAreas {
  SILVERMOON = 3430 , UNDERCITY = 1497 , ORGRIMMAR_1 = 1296 , ORGRIMMAR_2 = 14 ,
  THUNDERBLUFF = 1638 , IRONFORGE_1 = 809 , IRONFORGE_2 = 1 , STORMWIND = 12 ,
  EXODAR = 3557 , DARNASSUS = 1657 , SHATTRATH = 3703
}
 
enum  BrewfestMusicEvents { EVENT_BM_SELECT_MUSIC = 1 , EVENT_BM_START_MUSIC = 2 }
 
enum  MidsummerMusic { EVENTMIDSUMMERFIREFESTIVAL_A = 12319 , EVENTMIDSUMMERFIREFESTIVAL_H = 12325 }
 
enum  MidsummerMusicEvents { EVENT_MM_START_MUSIC = 1 }
 
enum  DarkmoonFaireMusic { MUSIC_DARKMOON_FAIRE_MUSIC = 8440 }
 
enum  DarkmoonFaireMusicEvents { EVENT_DFM_START_MUSIC = 1 }
 
enum  PirateDayMusic { MUSIC_PIRATE_DAY_MUSIC = 12845 }
 
enum  PirateDayMusicEvents { EVENT_PDM_START_MUSIC = 1 }
 
enum  BellHourlySoundFX {
  BELLTOLLHORDE = 6595 , BELLTOLLTRIBAL = 6675 , BELLTOLLALLIANCE = 6594 , BELLTOLLNIGHTELF = 6674 ,
  BELLTOLLDWARFGNOME = 7234 , BELLTOLLKHARAZHAN = 9154
}
 
enum  BellHourlySoundZones {
  TIRISFAL_ZONE = 85 , UNDERCITY_ZONE = 1497 , DUN_MOROGH_ZONE = 1 , IRONFORGE_ZONE = 1537 ,
  TELDRASSIL_ZONE = 141 , DARNASSUS_ZONE = 1657 , ASHENVALE_ZONE = 331 , HILLSBRAD_FOOTHILLS_ZONE = 267 ,
  DUSKWOOD_ZONE = 10
}
 
enum  BellHourlyObjects { GO_HORDE_BELL = 175885 , GO_ALLIANCE_BELL = 176573 , GO_KHARAZHAN_BELL = 182064 }
 
enum  BellHourlyMisc { GAME_EVENT_HOURLY_BELLS = 73 , EVENT_RING_BELL = 1 }
 

Functions

void AddSC_go_scripts ()
 

Variables

const uint32 NpcPrisonEntry []
 
const uint32 NpcStasisEntry []
 
uint32 const RibbonPoleSpells [3]
 
constexpr Seconds EVENT_BREWFESTDWARF01_TIME = 95s
 
constexpr Seconds EVENT_BREWFESTDWARF02_TIME = 155s
 
constexpr Seconds EVENT_BREWFESTDWARF03_TIME = 23s
 
constexpr Seconds EVENT_BREWFESTGOBLIN01_TIME = 68s
 
constexpr Seconds EVENT_BREWFESTGOBLIN02_TIME = 93s
 
constexpr Seconds EVENT_BREWFESTGOBLIN03_TIME = 28s
 

Macro Definition Documentation

◆ GO_ANDERHOLS_SLIDER_CIDER_NOT_FOUND

#define GO_ANDERHOLS_SLIDER_CIDER_NOT_FOUND   "Quest item Anderhol's Slider Cider not found."

Definition at line 429 of file go_scripts.cpp.

◆ GO_TELE_TO_DALARAN_CRYSTAL_FAILED

#define GO_TELE_TO_DALARAN_CRYSTAL_FAILED   "This teleport crystal cannot be used until the teleport crystal in Dalaran has been used at least once."

Definition at line 305 of file go_scripts.cpp.

◆ GOSSIP_USE_OUTHOUSE

#define GOSSIP_USE_OUTHOUSE   "Use the outhouse."

Definition at line 428 of file go_scripts.cpp.

Enumeration Type Documentation

◆ AmberpineOuthouse

Enumerator
ITEM_ANDERHOLS_SLIDER_CIDER 
NPC_OUTHOUSE_BUNNY 
QUEST_DOING_YOUR_DUTY 
SPELL_INDISPOSED 
SPELL_INDISPOSED_III 
SPELL_CREATE_AMBERSEEDS 
GOSSIP_OUTHOUSE_INUSE 
GOSSIP_OUTHOUSE_VACANT 

Definition at line 431 of file go_scripts.cpp.

◆ BellHourlyMisc

Enumerator
GAME_EVENT_HOURLY_BELLS 
EVENT_RING_BELL 

Definition at line 1033 of file go_scripts.cpp.

◆ BellHourlyObjects

Enumerator
GO_HORDE_BELL 
GO_ALLIANCE_BELL 
GO_KHARAZHAN_BELL 

Definition at line 1026 of file go_scripts.cpp.

◆ BellHourlySoundFX

Enumerator
BELLTOLLHORDE 
BELLTOLLTRIBAL 
BELLTOLLALLIANCE 
BELLTOLLNIGHTELF 
BELLTOLLDWARFGNOME 
BELLTOLLKHARAZHAN 

Definition at line 1003 of file go_scripts.cpp.

◆ BellHourlySoundZones

Enumerator
TIRISFAL_ZONE 
UNDERCITY_ZONE 
DUN_MOROGH_ZONE 
IRONFORGE_ZONE 
TELDRASSIL_ZONE 
DARNASSUS_ZONE 
ASHENVALE_ZONE 
HILLSBRAD_FOOTHILLS_ZONE 
DUSKWOOD_ZONE 

Definition at line 1013 of file go_scripts.cpp.

◆ BloodFilledOrb

Enumerator
NPC_ZELEMAR 

Definition at line 364 of file go_scripts.cpp.

◆ BrewfestMusic

Enumerator
EVENT_BREWFESTDWARF01 
EVENT_BREWFESTDWARF02 
EVENT_BREWFESTDWARF03 
EVENT_BREWFESTGOBLIN01 
EVENT_BREWFESTGOBLIN02 
EVENT_BREWFESTGOBLIN03 

Definition at line 645 of file go_scripts.cpp.

◆ BrewfestMusicAreas

Enumerator
SILVERMOON 
UNDERCITY 
ORGRIMMAR_1 
ORGRIMMAR_2 
THUNDERBLUFF 
IRONFORGE_1 
IRONFORGE_2 
STORMWIND 
EXODAR 
DARNASSUS 
SHATTRATH 

Definition at line 662 of file go_scripts.cpp.

◆ BrewfestMusicEvents

Enumerator
EVENT_BM_SELECT_MUSIC 
EVENT_BM_START_MUSIC 

Definition at line 677 of file go_scripts.cpp.

◆ DalaranCrystal

Enumerator
QUEST_LEARN_LEAVE_RETURN 
QUEST_TELE_CRYSTAL_FLAG 

Definition at line 299 of file go_scripts.cpp.

◆ DarkmoonFaireMusic

Enumerator
MUSIC_DARKMOON_FAIRE_MUSIC 

Definition at line 895 of file go_scripts.cpp.

◆ DarkmoonFaireMusicEvents

Enumerator
EVENT_DFM_START_MUSIC 

Definition at line 900 of file go_scripts.cpp.

◆ EthereumPrison

Enumerator
SPELL_REP_LC 
SPELL_REP_SHAT 
SPELL_REP_CE 
SPELL_REP_CON 
SPELL_REP_KT 
SPELL_REP_SPOR 

Definition at line 121 of file go_scripts.cpp.

◆ GildedBrazier

Enumerator
NPC_STILLBLADE 
QUEST_THE_FIRST_TRIAL 

Definition at line 50 of file go_scripts.cpp.

◆ MidsummerBonfire

Enumerator
STAMP_OUT_BONFIRE_QUEST_COMPLETE 

Definition at line 571 of file go_scripts.cpp.

◆ MidsummerMusic

Enumerator
EVENTMIDSUMMERFIREFESTIVAL_A 
EVENTMIDSUMMERFIREFESTIVAL_H 

Definition at line 829 of file go_scripts.cpp.

◆ MidsummerMusicEvents

Enumerator
EVENT_MM_START_MUSIC 

Definition at line 835 of file go_scripts.cpp.

◆ MidsummerPoleRibbon

Enumerator
SPELL_TEST_RIBBON_POLE_1 
SPELL_TEST_RIBBON_POLE_2 
SPELL_TEST_RIBBON_POLE_3 
NPC_POLE_RIBBON_BUNNY 
ACTION_COSMETIC_FIRES 

Definition at line 599 of file go_scripts.cpp.

◆ MissingFriends

Enumerator
QUEST_MISSING_FRIENDS 
NPC_CAPTIVE_CHILD 
SAY_FREE_0 

Definition at line 525 of file go_scripts.cpp.

◆ PirateDayMusic

Enumerator
MUSIC_PIRATE_DAY_MUSIC 

Definition at line 949 of file go_scripts.cpp.

◆ PirateDayMusicEvents

Enumerator
EVENT_PDM_START_MUSIC 

Definition at line 954 of file go_scripts.cpp.

◆ ResoniteCask

Enumerator
NPC_GOGGEROC 

Definition at line 228 of file go_scripts.cpp.

◆ Southfury

enum Southfury
Enumerator
NPC_RIZZLE 
SPELL_BLACKJACK 
SPELL_SUMMON_RIZZLE 

Definition at line 261 of file go_scripts.cpp.

Function Documentation

◆ AddSC_go_scripts()

void AddSC_go_scripts ( )

Definition at line 1147 of file go_scripts.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ EVENT_BREWFESTDWARF01_TIME

constexpr Seconds EVENT_BREWFESTDWARF01_TIME = 95s
constexpr

Definition at line 655 of file go_scripts.cpp.

◆ EVENT_BREWFESTDWARF02_TIME

constexpr Seconds EVENT_BREWFESTDWARF02_TIME = 155s
constexpr

Definition at line 656 of file go_scripts.cpp.

◆ EVENT_BREWFESTDWARF03_TIME

constexpr Seconds EVENT_BREWFESTDWARF03_TIME = 23s
constexpr

Definition at line 657 of file go_scripts.cpp.

◆ EVENT_BREWFESTGOBLIN01_TIME

constexpr Seconds EVENT_BREWFESTGOBLIN01_TIME = 68s
constexpr

Definition at line 658 of file go_scripts.cpp.

◆ EVENT_BREWFESTGOBLIN02_TIME

constexpr Seconds EVENT_BREWFESTGOBLIN02_TIME = 93s
constexpr

Definition at line 659 of file go_scripts.cpp.

◆ EVENT_BREWFESTGOBLIN03_TIME

constexpr Seconds EVENT_BREWFESTGOBLIN03_TIME = 28s
constexpr

Definition at line 660 of file go_scripts.cpp.

◆ NpcPrisonEntry

const uint32 NpcPrisonEntry[]
Initial value:
=
{
22810, 22811, 22812, 22813, 22814, 22815,
20783, 20784, 20785, 20786, 20788, 20789, 20790
}

Definition at line 131 of file go_scripts.cpp.

◆ NpcStasisEntry

const uint32 NpcStasisEntry[]
Initial value:
=
{
22825, 20888, 22827, 22826, 22828
}

Definition at line 192 of file go_scripts.cpp.

◆ RibbonPoleSpells

uint32 const RibbonPoleSpells[3]
Initial value:

Definition at line 608 of file go_scripts.cpp.