AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_ulduar_pure_saronite_deposit Class Reference
Inheritance diagram for go_ulduar_pure_saronite_deposit:
GameObjectScript ScriptObject UpdatableScript< GameObject >

Public Member Functions

 go_ulduar_pure_saronite_deposit ()
 
bool OnGossipHello (Player *plr, GameObject *go) override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, GameObject *)
 
virtual bool OnGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool OnQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnModifyHealth (GameObject *, Unit *, int32 &, SpellInfo const *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< GameObject >
virtual void OnUpdate (GameObject *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from GameObjectScript
 GameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_ulduar_pure_saronite_deposit()

go_ulduar_pure_saronite_deposit::go_ulduar_pure_saronite_deposit ( )
inline
635: GameObjectScript("go_ulduar_pure_saronite_deposit") { }
Definition: GameObjectScript.h:25

Member Function Documentation

◆ OnGossipHello()

bool go_ulduar_pure_saronite_deposit::OnGossipHello ( Player plr,
GameObject go 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

638 {
639 if (plr->IsGameMaster())
640 return false;
641
642 if (InstanceScript* pInstance = go->GetInstanceScript())
643 if (pInstance->GetData(TYPE_XT002) != DONE && pInstance->GetData(TYPE_MIMIRON) != DONE && pInstance->GetData(TYPE_THORIM) != DONE && pInstance->GetData(TYPE_FREYA) != DONE && pInstance->GetData(TYPE_HODIR) != DONE)
644 {
645 std::string accountName;
646 AccountMgr::GetName(plr->GetSession()->GetAccountId(), accountName);
647 sBan->BanAccount(accountName, "0s", "Tele hack", "Server");
648 return true;
649 }
650
651 return false;
652 }
@ DONE
Definition: InstanceScript.h:60
#define sBan
Definition: BanMgr.h:48
@ TYPE_XT002
Definition: ulduar.h:35
@ TYPE_HODIR
Definition: ulduar.h:40
@ TYPE_FREYA
Definition: ulduar.h:39
@ TYPE_MIMIRON
Definition: ulduar.h:41
@ TYPE_THORIM
Definition: ulduar.h:42
bool GetName(uint32 accountId, std::string &name)
Definition: AccountMgr.cpp:257
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
WorldSession * GetSession() const
Definition: Player.h:1978
bool IsGameMaster() const
Definition: Player.h:1158
Definition: InstanceScript.h:142
uint32 GetAccountId() const
Definition: WorldSession.h:361

References DONE, WorldSession::GetAccountId(), WorldObject::GetInstanceScript(), AccountMgr::GetName(), Player::GetSession(), Player::IsGameMaster(), sBan, TYPE_FREYA, TYPE_HODIR, TYPE_MIMIRON, TYPE_THORIM, and TYPE_XT002.