mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-01 22:56:39 +01:00
-added ScriptMgr for loading scripts -removed bindings -moved script system to src/game -moved scripts to src/scripts -VC project files updated -cmakes updated (not 100% done yet) NOTE to Devs: -file locations changed -precompiled renamed to ScriptedPch -ecsort_ai renamed to ScriptedEscortAI -follower_ai renamed to ScriptedFollowerAI -guard_ai renamed to ScriptedGuardAI -simple_ai renamed to ScriptedSimpleAI -sc_creature renamed to ScriptedCreature -sc_gossip renamed to ScriptedGossip -sc_instance renamed to ScriptedInstance *use the new headers in scripts, thank you NOTE to ALL: cmake not fully tested, please report any errors with it could make creashes, incompability USE AT YOUR OWN RISK before further tests!! --HG-- branch : trunk
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
/* Copyright (C) 2006 - 2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
|
* This program is free software licensed under GPL version 2
|
|
* Please see the included DOCS/LICENSE.TXT for more information */
|
|
|
|
#ifndef SC_GUARDAI_H
|
|
#define SC_GUARDAI_H
|
|
|
|
#define GENERIC_CREATURE_COOLDOWN 5000
|
|
|
|
struct TRINITY_DLL_DECL guardAI : public ScriptedAI
|
|
{
|
|
public:
|
|
explicit guardAI(Creature* pCreature);
|
|
~guardAI() {}
|
|
|
|
uint32 GlobalCooldown; //This variable acts like the global cooldown that players have (1.5 seconds)
|
|
uint32 BuffTimer; //This variable keeps track of buffs
|
|
|
|
void Reset();
|
|
|
|
void EnterCombat(Unit *who);
|
|
|
|
void JustDied(Unit *Killer);
|
|
|
|
void UpdateAI(const uint32 diff);
|
|
|
|
//common used for guards in main cities
|
|
void DoReplyToTextEmote(uint32 em);
|
|
};
|
|
|
|
struct TRINITY_DLL_DECL guardAI_orgrimmar : public guardAI
|
|
{
|
|
guardAI_orgrimmar(Creature *c) : guardAI(c) {}
|
|
|
|
void ReceiveEmote(Player *player, uint32 text_emote);
|
|
};
|
|
|
|
struct TRINITY_DLL_DECL guardAI_stormwind : public guardAI
|
|
{
|
|
guardAI_stormwind(Creature *c) : guardAI(c) {}
|
|
|
|
void ReceiveEmote(Player *player, uint32 text_emote);
|
|
};
|
|
#endif
|
|
|