Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -620,6 +620,9 @@ public:
|
||||
|
||||
// Called when a CreatureAI object is needed for the creature.
|
||||
[[nodiscard]] virtual CreatureAI* GetCreatureAI(Creature* /*creature*/) const { return nullptr; }
|
||||
|
||||
//Called Whenever the UNIT_BYTE2_FLAG_FFA_PVP Bit is set on the creature
|
||||
virtual void OnFfaPvpStateUpdate(Creature* /*creature*/, bool /*InPvp*/) {}
|
||||
};
|
||||
|
||||
class AllItemScript : public ScriptObject
|
||||
@@ -744,6 +747,10 @@ public:
|
||||
|
||||
// Called when a CreatureAI object is needed for the creature.
|
||||
virtual CreatureAI* GetAI(Creature* /*creature*/) const { return nullptr; }
|
||||
|
||||
//Called whenever the UNIT_BYTE2_FLAG_FFA_PVP bit is Changed on the player
|
||||
virtual void OnFfaPvpStateUpdate(Creature* /*player*/, bool /*result*/) { }
|
||||
|
||||
};
|
||||
|
||||
class GameObjectScript : public ScriptObject, public UpdatableScript<GameObject>
|
||||
@@ -1023,6 +1030,9 @@ public:
|
||||
// Called when a player's money is modified (before the modification is done)
|
||||
virtual void OnMoneyChanged(Player* /*player*/, int32& /*amount*/) { }
|
||||
|
||||
// Called before looted money is added to a player
|
||||
virtual void OnBeforeLootMoney(Player* /*player*/, Loot* /*loot*/) {}
|
||||
|
||||
// Called when a player gains XP (before anything is given)
|
||||
virtual void OnGiveXP(Player* /*player*/, uint32& /*amount*/, Unit* /*victim*/) { }
|
||||
|
||||
@@ -1306,6 +1316,9 @@ public:
|
||||
|
||||
virtual void OnIsFFAPvP(Player* /*player*/, bool& /*result*/) { }
|
||||
|
||||
//Fires whenever the UNIT_BYTE2_FLAG_FFA_PVP bit is Changed on the player
|
||||
virtual void OnFfaPvpStateUpdate(Player* /*player*/, bool /*result*/) { }
|
||||
|
||||
virtual void OnIsPvP(Player* /*player*/, bool& /*result*/) { }
|
||||
|
||||
virtual void OnGetMaxSkillValueForLevel(Player* /*player*/, uint16& /*result*/) { }
|
||||
@@ -1463,7 +1476,7 @@ public:
|
||||
virtual void OnFailedPasswordChange(uint32 /*accountId*/) { }
|
||||
|
||||
// Called when creating a character on the Account
|
||||
[[nodiscard]] virtual bool CanAccountCreateCharacter(std::shared_ptr<CharacterCreateInfo> /*createInfo*/, uint32 /*accountId*/) { return true;}
|
||||
[[nodiscard]] virtual bool CanAccountCreateCharacter(uint32 /*accountId*/, uint8 /*charRace*/, uint8 /*charClass*/) { return true;}
|
||||
};
|
||||
|
||||
class GuildScript : public ScriptObject
|
||||
@@ -2164,6 +2177,7 @@ public: /* CreatureScript */
|
||||
void OnCreatureUpdate(Creature* creature, uint32 diff);
|
||||
void OnCreatureAddWorld(Creature* creature);
|
||||
void OnCreatureRemoveWorld(Creature* creature);
|
||||
void OnFfaPvpStateUpdate(Creature* creature, bool InPvp);
|
||||
|
||||
public: /* GameObjectScript */
|
||||
bool OnGossipHello(Player* player, GameObject* go);
|
||||
@@ -2249,6 +2263,7 @@ public: /* PlayerScript */
|
||||
void OnPlayerFreeTalentPointsChanged(Player* player, uint32 newPoints);
|
||||
void OnPlayerTalentsReset(Player* player, bool noCost);
|
||||
void OnPlayerMoneyChanged(Player* player, int32& amount);
|
||||
void OnBeforeLootMoney(Player* player, Loot* loot);
|
||||
void OnGivePlayerXP(Player* player, uint32& amount, Unit* victim);
|
||||
bool OnPlayerReputationChange(Player* player, uint32 factionID, int32& standing, bool incremental);
|
||||
void OnPlayerReputationRankChange(Player* player, uint32 factionID, ReputationRank newRank, ReputationRank oldRank, bool increased);
|
||||
@@ -2361,6 +2376,7 @@ public: /* PlayerScript */
|
||||
bool NotAvoidSatisfy(Player* player, DungeonProgressionRequirements const* ar, uint32 target_map, bool report);
|
||||
bool NotVisibleGloballyFor(Player* player, Player const* u);
|
||||
void OnGetArenaPersonalRating(Player* player, uint8 slot, uint32& result);
|
||||
void OnFfaPvpStateUpdate(Player* player, bool result);
|
||||
void OnGetArenaTeamId(Player* player, uint8 slot, uint32& result);
|
||||
void OnIsFFAPvP(Player* player, bool& result);
|
||||
void OnIsPvP(Player* player, bool& result);
|
||||
@@ -2401,7 +2417,7 @@ public: /* AccountScript */
|
||||
void OnFailedEmailChange(uint32 accountId);
|
||||
void OnPasswordChange(uint32 accountId);
|
||||
void OnFailedPasswordChange(uint32 accountId);
|
||||
bool CanAccountCreateCharacter(std::shared_ptr<CharacterCreateInfo> createInfo, uint32 accountId);
|
||||
bool CanAccountCreateCharacter(uint32 accountId, uint8 charRace, uint8 charClass);
|
||||
|
||||
public: /* GuildScript */
|
||||
void OnGuildAddMember(Guild* guild, Player* player, uint8& plRank);
|
||||
|
||||
Reference in New Issue
Block a user