TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
at_ring_of_law Class Reference

Public Member Functions

 at_ring_of_law ()
 
bool OnTrigger (Player *player, const AreaTriggerEntry *, bool) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

at_ring_of_law::at_ring_of_law ( )
inline
83 : AreaTriggerScript("at_ring_of_law") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool at_ring_of_law::OnTrigger ( Player player,
const AreaTriggerEntry ,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

86  {
87  if (InstanceScript* instance = player->GetInstanceScript())
88  {
89  if (instance->GetData(TYPE_RING_OF_LAW) == IN_PROGRESS || instance->GetData(TYPE_RING_OF_LAW) == DONE)
90  return false;
91 
92  instance->SetData(TYPE_RING_OF_LAW, IN_PROGRESS);
93  player->SummonCreature(NPC_GRIMSTONE, 625.559f, -205.618f, -52.735f, 2.609f, TEMPSUMMON_DEAD_DESPAWN, 0);
94 
95  return false;
96  }
97  return false;
98  }
Definition: inflate.h:49
Definition: Object.h:60
Definition: InstanceScript.h:59
Definition: blackrock_depths.h:33
Definition: blackrock_depths.cpp:53
Definition: InstanceScript.h:141

The documentation for this class was generated from the following file: