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

#include "SmartScriptMgr.h"

Public Types

enum class  LOSHostilityMode : uint32 {
  Hostile = 0 ,
  NotHostile = 1 ,
  Any = 2 ,
  End
}
 

Public Attributes

SMART_EVENT type
 
uint32 event_phase_mask
 
uint32 event_chance
 
uint32 event_flags
 
union {
   struct {
      uint32   min
 
      uint32   max
 
      uint32   repeatMin
 
      uint32   repeatMax
 
   }   minMaxRepeat
 
   struct {
      uint32   minRange
 
      uint32   maxRange
 
      uint32   repeatMin
 
      uint32   repeatMax
 
      uint32   onlyFireOnRepeat
 
   }   rangeRepeat
 
   struct {
      uint32   cooldownMin
 
      uint32   cooldownMax
 
      SAIBool   playerOnly
 
      uint32   creature
 
   }   kill
 
   struct {
      uint32   spell
 
      uint32   school
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   spellHit
 
   struct {
      uint32   hostilityMode
 Hostility mode of the event. 0: hostile, 1: not hostile, 2: any. More...
 
      uint32   maxDist
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
      SAIBool   playerOnly
 
   }   los
 
   struct {
      uint32   type
 
      uint32   map
 
      uint32   area
 
   }   respawn
 
   struct {
      uint32   repeatMin
 
      uint32   repeatMax
 
   }   minMax
 
   struct {
      uint32   repeatMin
 
      uint32   repeatMax
 
      uint32   spellId
 
   }   targetCasting
 
   struct {
      uint32   hpDeficit
 
      uint32   radius
 
      uint32   repeatMin
 
      uint32   repeatMax
 
   }   friendlyHealth
 
   struct {
      uint32   radius
 
      uint32   repeatMin
 
      uint32   repeatMax
 
   }   friendlyCC
 
   struct {
      uint32   spell
 
      uint32   radius
 
      uint32   repeatMin
 
      uint32   repeatMax
 
      uint32   onlyInCombat
 
   }   missingBuff
 
   struct {
      uint32   creature
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   summoned
 
   struct {
      uint32   quest
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   quest
 
   struct {
      uint32   emote
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   emote
 
   struct {
      uint32   spell
 
      uint32   count
 
      uint32   repeatMin
 
      uint32   repeatMax
 
   }   aura
 
   struct {
      uint32   onRemove
 
   }   charm
 
   struct {
      uint32   spell
 
      uint32   count
 
      uint32   repeatMin
 
      uint32   repeatMax
 
   }   targetAura
 
   struct {
      uint32   type
 
      uint32   id
 
   }   movementInform
 
   struct {
      uint32   id
 
      uint32   value
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   dataSet
 
   struct {
      uint32   pointID
 
      uint32   pathID
 
   }   waypoint
 
   struct {
      uint32   creature
 
   }   transportAddCreature
 
   struct {
      uint32   pointID
 
   }   transportRelocate
 
   struct {
      uint32   team
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   instancePlayerEnter
 
   struct {
      uint32   id
 
   }   areatrigger
 
   struct {
      uint32   textGroupID
 
      uint32   creatureEntry
 
   }   textOver
 
   struct {
      uint32   id
 
   }   timedEvent
 
   struct {
      uint32   filter
 
   }   gossipHello
 
   struct {
      uint32   sender
 
      uint32   action
 
   }   gossip
 
   struct {
      uint32   spell
 
      uint32   effIndex
 
   }   dummy
 
   struct {
      uint32   phasemask
 
   }   eventPhaseChange
 
   struct {
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   behindTarget
 
   struct {
      uint32   gameEventId
 
   }   gameEvent
 
   struct {
      uint32   state
 
   }   goStateChanged
 
   struct {
      uint32   eventId
 
   }   eventInform
 
   struct {
      uint32   eventId
 
   }   doAction
 
   struct {
      uint32   minHpPct
 
      uint32   maxHpPct
 
      uint32   repeatMin
 
      uint32   repeatMax
 
      uint32   radius
 
   }   friendlyHealthPct
 
   struct {
      uint32   guid
 
      uint32   entry
 
      uint32   dist
 
      uint32   repeat
 
   }   distance
 
   struct {
      uint32   id
 
      uint32   value
 
      uint32   cooldownMin
 
      uint32   cooldownMax
 
   }   counter
 
   struct {
      uint32   minCount
 
      uint32   radius
 
      uint32   firstTimer
 
      uint32   checkTimer
 
   }   nearPlayer
 
   struct {
      uint32   minCount
 
      uint32   radius
 
      uint32   firstTimer
 
      uint32   checkTimer
 
   }   nearPlayerNegation
 
   struct {
      uint32   param1
 
      uint32   param2
 
      uint32   param3
 
      uint32   param4
 
      uint32   param5
 
   }   raw
 
}; 
 

Detailed Description

Member Enumeration Documentation

◆ LOSHostilityMode

enum class SmartEvent::LOSHostilityMode : uint32
strong
Enumerator
Hostile 
NotHostile 
Any 
End 

Member Data Documentation

◆ 

union { ... } SmartEvent::@31

◆ action

uint32 SmartEvent::action

◆ area

uint32 SmartEvent::area

◆ 

struct { ... } SmartEvent::areatrigger

◆ 

◆ 

struct { ... } SmartEvent::behindTarget

◆ 

struct { ... } SmartEvent::charm

◆ checkTimer

uint32 SmartEvent::checkTimer

◆ cooldownMax

uint32 SmartEvent::cooldownMax

◆ cooldownMin

uint32 SmartEvent::cooldownMin

◆ count

uint32 SmartEvent::count

◆ 

struct { ... } SmartEvent::counter

◆ creature

uint32 SmartEvent::creature

◆ creatureEntry

uint32 SmartEvent::creatureEntry

◆ 

struct { ... } SmartEvent::dataSet

◆ dist

uint32 SmartEvent::dist

◆ 

◆ 

struct { ... } SmartEvent::doAction

◆ 

struct { ... } SmartEvent::dummy

◆ effIndex

uint32 SmartEvent::effIndex

◆ emote [1/2]

◆  [2/2]

struct { ... } SmartEvent::emote

◆ entry

uint32 SmartEvent::entry

◆ event_chance

◆ event_flags

◆ event_phase_mask

◆ eventId

uint32 SmartEvent::eventId

◆ 

struct { ... } SmartEvent::eventInform

◆ 

struct { ... } SmartEvent::eventPhaseChange

◆ filter

uint32 SmartEvent::filter

◆ firstTimer

uint32 SmartEvent::firstTimer

Referenced by SmartScript::InitTimer().

◆ 

◆ 

struct { ... } SmartEvent::friendlyHealth

◆ 

struct { ... } SmartEvent::friendlyHealthPct

◆ 

struct { ... } SmartEvent::gameEvent

◆ gameEventId

uint32 SmartEvent::gameEventId

◆ 

struct { ... } SmartEvent::gossip

◆ 

struct { ... } SmartEvent::gossipHello

◆ 

struct { ... } SmartEvent::goStateChanged

◆ guid

uint32 SmartEvent::guid

◆ hostilityMode

uint32 SmartEvent::hostilityMode

Hostility mode of the event. 0: hostile, 1: not hostile, 2: any.

Referenced by SmartAIMgr::IsEventValid(), and SmartScript::ProcessEvent().

◆ hpDeficit

uint32 SmartEvent::hpDeficit

◆ id

◆ 

struct { ... } SmartEvent::instancePlayerEnter

◆ 

◆ 

◆ map

uint32 SmartEvent::map

◆ max

◆ maxDist

uint32 SmartEvent::maxDist

◆ maxHpPct

uint32 SmartEvent::maxHpPct

◆ maxRange

uint32 SmartEvent::maxRange

◆ min

◆ minCount

uint32 SmartEvent::minCount

◆ minHpPct

uint32 SmartEvent::minHpPct

◆ 

◆ 

◆ minRange

uint32 SmartEvent::minRange

◆ 

struct { ... } SmartEvent::missingBuff

◆ 

struct { ... } SmartEvent::movementInform

◆ 

struct { ... } SmartEvent::nearPlayer

◆ 

struct { ... } SmartEvent::nearPlayerNegation

◆ onlyFireOnRepeat

◆ onlyInCombat

uint32 SmartEvent::onlyInCombat

◆ onRemove

uint32 SmartEvent::onRemove

◆ param1

◆ param2

◆ param3

◆ param4

◆ param5

◆ pathID

uint32 SmartEvent::pathID

◆ phasemask

uint32 SmartEvent::phasemask

◆ playerOnly

SAIBool SmartEvent::playerOnly

◆ pointID

uint32 SmartEvent::pointID

◆ quest [1/2]

◆  [2/2]

struct { ... } SmartEvent::quest

◆ radius

uint32 SmartEvent::radius

◆ 

◆ 

◆ repeat

uint32 SmartEvent::repeat

◆ repeatMax

◆ repeatMin

◆ 

struct { ... } SmartEvent::respawn

◆ school

uint32 SmartEvent::school

◆ sender

uint32 SmartEvent::sender

◆ spell

uint32 SmartEvent::spell

◆ 

struct { ... } SmartEvent::spellHit

◆ spellId

uint32 SmartEvent::spellId

◆ state

uint32 SmartEvent::state

◆ 

struct { ... } SmartEvent::summoned

◆ 

struct { ... } SmartEvent::targetAura

◆ 

struct { ... } SmartEvent::targetCasting

◆ team

uint32 SmartEvent::team

◆ textGroupID

uint32 SmartEvent::textGroupID

◆ 

struct { ... } SmartEvent::textOver

◆ 

struct { ... } SmartEvent::timedEvent

◆ 

struct { ... } SmartEvent::transportAddCreature

◆ 

struct { ... } SmartEvent::transportRelocate

◆ type [1/2]

◆ type [2/2]

uint32 SmartEvent::type

◆ value

uint32 SmartEvent::value

◆ 

struct { ... } SmartEvent::waypoint