AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ScriptInfo Struct Reference

#include "ObjectMgr.h"

Public Member Functions

std::string GetDebugInfo () const
 

Public Attributes

ScriptsType type
 
uint32 id
 
uint32 delay
 
ScriptCommands command
 
union {
   struct {
      uint32   nData [3]
 
      float   fData [4]
 
   }   Raw
 
   struct {
      uint32   ChatType
 
      uint32   Flags
 
      int32   TextID
 
   }   Talk
 
   struct {
      uint32   EmoteID
 
      uint32   Flags
 
   }   Emote
 
   struct {
      uint32   FieldID
 
      uint32   FieldValue
 
   }   FieldSet
 
   struct {
      uint32   Unused1
 
      uint32   TravelTime
 
      int32   Unused2
 
      float   DestX
 
      float   DestY
 
      float   DestZ
 
   }   MoveTo
 
   struct {
      uint32   FieldID
 
      uint32   FieldValue
 
   }   FlagToggle
 
   struct {
      uint32   MapID
 
      uint32   Flags
 
      int32   Unused1
 
      float   DestX
 
      float   DestY
 
      float   DestZ
 
      float   Orientation
 
   }   TeleportTo
 
   struct {
      uint32   QuestID
 
      uint32   Distance
 
   }   QuestExplored
 
   struct {
      uint32   CreatureEntry
 
      uint32   Flags
 
   }   KillCredit
 
   struct {
      uint32   GOGuid
 
      uint32   DespawnDelay
 
   }   RespawnGameobject
 
   struct {
      uint32   CreatureEntry
 
      uint32   DespawnDelay
 
      uint32   CheckIfExists
 
      float   PosX
 
      float   PosY
 
      float   PosZ
 
      float   Orientation
 
   }   TempSummonCreature
 
   struct {
      uint32   GOGuid
 
      uint32   ResetDelay
 
   }   ToggleDoor
 
   struct {
      uint32   SpellID
 
      uint32   Flags
 
   }   RemoveAura
 
   struct {
      uint32   SpellID
 
      uint32   Flags
 
      int32   CreatureEntry
 
      float   SearchRadius
 
   }   CastSpell
 
   struct {
      uint32   SoundID
 
      uint32   Flags
 
   }   Playsound
 
   struct {
      uint32   ItemEntry
 
      uint32   Amount
 
   }   CreateItem
 
   struct {
      uint32   DespawnDelay
 
   }   DespawnSelf
 
   struct {
      uint32   PathID
 
      uint32   IsRepeatable
 
   }   LoadPath
 
   struct {
      uint32   CreatureEntry
 
      uint32   ScriptID
 
      uint32   ScriptType
 
   }   CallScript
 
   struct {
      uint32   Unused1
 
      uint32   Unused2
 
      int32   RemoveCorpse
 
   }   Kill
 
   struct {
      uint32   Flags
 
      uint32   Unused1
 
      int32   Unused2
 
      float   Unused3
 
      float   Unused4
 
      float   Unused5
 
      float   Orientation
 
   }   Orientation
 
   struct {
      uint32   EquipmentID
 
   }   Equip
 
   struct {
      uint32   ModelID
 
   }   Model
 
   struct {
      uint32   MovieID
 
   }   PlayMovie
 
   struct {
      uint32   MovementType
 
      uint32   MovementDistance
 
      int32   Path
 
   }   Movement
 
}; 
 

Detailed Description

Member Function Documentation

◆ GetDebugInfo()

std::string ScriptInfo::GetDebugInfo ( ) const
200{
201 char sz[256];
202 snprintf(sz, sizeof(sz), "%s ('%s' script id: %u)", GetScriptCommandName(command).c_str(), GetScriptsTableNameByType(type).c_str(), id);
203 return std::string(sz);
204}
std::string GetScriptCommandName(ScriptCommands command)
Definition: ObjectMgr.cpp:101
std::string GetScriptsTableNameByType(ScriptsType type)
Definition: ObjectMgr.cpp:61
ScriptsType type
Definition: ObjectMgr.h:193
ScriptCommands command
Definition: ObjectMgr.h:196

References command, GetScriptCommandName(), GetScriptsTableNameByType(), and type.

Referenced by Map::_GetScriptCreature(), Map::_GetScriptCreatureSourceOrTarget(), Map::_GetScriptPlayer(), Map::_GetScriptPlayerSourceOrTarget(), Map::_GetScriptUnit(), Map::_GetScriptWorldObject(), Map::_ScriptProcessDoor(), and Map::ScriptsProcess().

Member Data Documentation

◆ 

union { ... } ScriptInfo::@259

◆ Amount

uint32 ScriptInfo::Amount

◆ 

struct { ... } ScriptInfo::CallScript

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::CastSpell

◆ ChatType

uint32 ScriptInfo::ChatType

◆ CheckIfExists

uint32 ScriptInfo::CheckIfExists

Referenced by Map::ScriptsProcess().

◆ command

◆ 

struct { ... } ScriptInfo::CreateItem

◆ CreatureEntry [1/2]

uint32 ScriptInfo::CreatureEntry

◆ CreatureEntry [2/2]

int32 ScriptInfo::CreatureEntry

◆ delay

uint32 ScriptInfo::delay

Referenced by ObjectMgr::LoadScripts().

◆ DespawnDelay

uint32 ScriptInfo::DespawnDelay

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::DespawnSelf

Referenced by Map::ScriptsProcess().

◆ DestX

float ScriptInfo::DestX

◆ DestY

float ScriptInfo::DestY

◆ DestZ

float ScriptInfo::DestZ

◆ Distance

uint32 ScriptInfo::Distance

◆ 

struct { ... } ScriptInfo::Emote

◆ EmoteID

uint32 ScriptInfo::EmoteID

◆ 

struct { ... } ScriptInfo::Equip

Referenced by Map::ScriptsProcess().

◆ EquipmentID

uint32 ScriptInfo::EquipmentID

Referenced by Map::ScriptsProcess().

◆ fData

float ScriptInfo::fData[4]

Referenced by ObjectMgr::LoadScripts().

◆ FieldID

uint32 ScriptInfo::FieldID

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::FieldSet

Referenced by Map::ScriptsProcess().

◆ FieldValue

uint32 ScriptInfo::FieldValue

Referenced by Map::ScriptsProcess().

◆ Flags

uint32 ScriptInfo::Flags

◆ 

struct { ... } ScriptInfo::FlagToggle

Referenced by Map::ScriptsProcess().

◆ GOGuid

◆ id

uint32 ScriptInfo::id

Referenced by ObjectMgr::LoadScripts().

◆ IsRepeatable

uint32 ScriptInfo::IsRepeatable

Referenced by Map::ScriptsProcess().

◆ ItemEntry

uint32 ScriptInfo::ItemEntry

◆ 

struct { ... } ScriptInfo::Kill

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::KillCredit

◆ 

struct { ... } ScriptInfo::LoadPath

Referenced by Map::ScriptsProcess().

◆ MapID

uint32 ScriptInfo::MapID

◆ 

struct { ... } ScriptInfo::Model

Referenced by Map::ScriptsProcess().

◆ ModelID

uint32 ScriptInfo::ModelID

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::Movement

Referenced by Map::ScriptsProcess().

◆ MovementDistance

uint32 ScriptInfo::MovementDistance

Referenced by Map::ScriptsProcess().

◆ MovementType

uint32 ScriptInfo::MovementType

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::MoveTo

Referenced by Map::ScriptsProcess().

◆ MovieID

uint32 ScriptInfo::MovieID

Referenced by Map::ScriptsProcess().

◆ nData

uint32 ScriptInfo::nData[3]

Referenced by ObjectMgr::LoadScripts().

◆ Orientation [1/2]

float ScriptInfo::Orientation

◆  [2/2]

struct { ... } ScriptInfo::Orientation

◆ Path

int32 ScriptInfo::Path

Referenced by Map::ScriptsProcess().

◆ PathID

uint32 ScriptInfo::PathID

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::PlayMovie

Referenced by Map::ScriptsProcess().

◆ 

struct { ... } ScriptInfo::Playsound

Referenced by Map::ScriptsProcess().

◆ PosX

float ScriptInfo::PosX

◆ PosY

float ScriptInfo::PosY

◆ PosZ

float ScriptInfo::PosZ

◆ 

struct { ... } ScriptInfo::QuestExplored

◆ QuestID

uint32 ScriptInfo::QuestID

◆ 

struct { ... } ScriptInfo::Raw

Referenced by ObjectMgr::LoadScripts().

◆ 

struct { ... } ScriptInfo::RemoveAura

◆ RemoveCorpse

int32 ScriptInfo::RemoveCorpse

Referenced by Map::ScriptsProcess().

◆ ResetDelay

uint32 ScriptInfo::ResetDelay

Referenced by Map::_ScriptProcessDoor().

◆ 

struct { ... } ScriptInfo::RespawnGameobject

◆ ScriptID

uint32 ScriptInfo::ScriptID

Referenced by Map::ScriptsProcess().

◆ ScriptType

uint32 ScriptInfo::ScriptType

Referenced by Map::ScriptsProcess().

◆ SearchRadius

float ScriptInfo::SearchRadius

Referenced by Map::ScriptsProcess().

◆ SoundID

uint32 ScriptInfo::SoundID

Referenced by Map::ScriptsProcess().

◆ SpellID

uint32 ScriptInfo::SpellID

◆ 

struct { ... } ScriptInfo::Talk

◆ 

struct { ... } ScriptInfo::TeleportTo

◆ 

struct { ... } ScriptInfo::TempSummonCreature

◆ TextID

int32 ScriptInfo::TextID

◆ 

struct { ... } ScriptInfo::ToggleDoor

◆ TravelTime

uint32 ScriptInfo::TravelTime

Referenced by Map::ScriptsProcess().

◆ type

ScriptsType ScriptInfo::type

◆ Unused1 [1/2]

uint32 ScriptInfo::Unused1

◆ Unused1 [2/2]

int32 ScriptInfo::Unused1

◆ Unused2 [1/2]

int32 ScriptInfo::Unused2

◆ Unused2 [2/2]

uint32 ScriptInfo::Unused2

◆ Unused3

float ScriptInfo::Unused3

◆ Unused4

float ScriptInfo::Unused4

◆ Unused5

float ScriptInfo::Unused5