<commit_before>/*
 * Originally written by Pussywizard - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: http://github.com/azerothcore/azerothcore-wotlk/LICENSE-AGPL
*/

#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "trial_of_the_champion.h"
#include "Vehicle.h"
#include "Player.h"
#include "Group.h"

const Position SpawnPosition = {746.67f, 684.08f, 412.5f, 4.65f};
#define CLEANUP_CHECK_INTERVAL  5000

class Group;

class instance_trial_of_the_champion : public InstanceMapScript
{
public:
    instance_trial_of_the_champion() : InstanceMapScript("instance_trial_of_the_champion", 650) { }

    InstanceScript* GetInstanceScript(InstanceMap* pMap) const
    {
        return new instance_trial_of_the_champion_InstanceMapScript(pMap);
    }

    struct instance_trial_of_the_champion_InstanceMapScript : public InstanceScript
    {
        instance_trial_of_the_champion_InstanceMapScript(Map* pMap) : InstanceScript(pMap) { Initialize(); }

        bool CLEANED;
        TeamId TeamIdInInstance;
        uint32 InstanceProgress;
        uint32 m_auiEncounter[MAX_ENCOUNTER];
        std::string str_data;

        std::list<uint64> VehicleList;
        EventMap events;
        uint8 Counter;
        uint8 temp1, temp2;
        bool shortver;
        bool bAchievIveHadWorse;

        uint64 NPC_AnnouncerGUID;
        uint64 NPC_TirionGUID;
        uint64 NPC_GrandChampionGUID[3];
        uint64 NPC_GrandChampionMinionsGUID[3][3];
        uint64 NPC_ArgentChampionGUID;
        uint64 NPC_ArgentSoldierGUID[3][3];
        uint64 NPC_MemoryEntry;
        uint64 NPC_BlackKnightVehicleGUID;
        uint64 NPC_BlackKnightGUID;
        uint64 GO_MainGateGUID;
        uint64 GO_EnterGateGUID;

        void Initialize()
        {
            TeamIdInInstance = TEAM_NEUTRAL;
            InstanceProgress = 0;
            memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));

            VehicleList.clear();
            CLEANED = false;
            events.Reset();
            events.RescheduleEvent(EVENT_CHECK_PLAYERS, 0);
            Counter = 0;
            temp1 = 0;
            temp2 = 0;
            shortver = false;
            bAchievIveHadWorse = true;

            NPC_AnnouncerGUID = 0;
            NPC_TirionGUID = 0;
            memset(&NPC_GrandChampionGUID, 0, sizeof(NPC_GrandChampionGUID));
            memset(&NPC_GrandChampionMinionsGUID, 0, sizeof(NPC_GrandChampionMinionsGUID));
            memset(&NPC_ArgentSoldierGUID, 0, sizeof(NPC_ArgentSoldierGUID));
            NPC_ArgentChampionGUID = 0;
1            NPC_MemoryEntry = 0;
            NPC_BlackKnightVehicleGUID = 0;
            NPC_BlackKnightGUID = 0;
            GO_MainGateGUID = 0;
            GO_EnterGateGUID = 0;
        }
<commit_msg>Fix typo<commit_after>/*
 * Originally written by Pussywizard - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: http://github.com/azerothcore/azerothcore-wotlk/LICENSE-AGPL
*/

#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "trial_of_the_champion.h"
#include "Vehicle.h"
#include "Player.h"
#include "Group.h"

const Position SpawnPosition = {746.67f, 684.08f, 412.5f, 4.65f};
#define CLEANUP_CHECK_INTERVAL  5000

class Group;

class instance_trial_of_the_champion : public InstanceMapScript
{
public:
    instance_trial_of_the_champion() : InstanceMapScript("instance_trial_of_the_champion", 650) { }

    InstanceScript* GetInstanceScript(InstanceMap* pMap) const
    {
        return new instance_trial_of_the_champion_InstanceMapScript(pMap);
    }

    struct instance_trial_of_the_champion_InstanceMapScript : public InstanceScript
    {
        instance_trial_of_the_champion_InstanceMapScript(Map* pMap) : InstanceScript(pMap) { Initialize(); }

        bool CLEANED;
        TeamId TeamIdInInstance;
        uint32 InstanceProgress;
        uint32 m_auiEncounter[MAX_ENCOUNTER];
        std::string str_data;

        std::list<uint64> VehicleList;
        EventMap events;
        uint8 Counter;
        uint8 temp1, temp2;
        bool shortver;
        bool bAchievIveHadWorse;

        uint64 NPC_AnnouncerGUID;
        uint64 NPC_TirionGUID;
        uint64 NPC_GrandChampionGUID[3];
        uint64 NPC_GrandChampionMinionsGUID[3][3];
        uint64 NPC_ArgentChampionGUID;
        uint64 NPC_ArgentSoldierGUID[3][3];
        uint64 NPC_MemoryEntry;
        uint64 NPC_BlackKnightVehicleGUID;
        uint64 NPC_BlackKnightGUID;
        uint64 GO_MainGateGUID;
        uint64 GO_EnterGateGUID;

        void Initialize()
        {
            TeamIdInInstance = TEAM_NEUTRAL;
            InstanceProgress = 0;
            memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));

            VehicleList.clear();
            CLEANED = false;
            events.Reset();
            events.RescheduleEvent(EVENT_CHECK_PLAYERS, 0);
            Counter = 0;
            temp1 = 0;
            temp2 = 0;
            shortver = false;
            bAchievIveHadWorse = true;

            NPC_AnnouncerGUID = 0;
            NPC_TirionGUID = 0;
            memset(&NPC_GrandChampionGUID, 0, sizeof(NPC_GrandChampionGUID));
            memset(&NPC_GrandChampionMinionsGUID, 0, sizeof(NPC_GrandChampionMinionsGUID));
            memset(&NPC_ArgentSoldierGUID, 0, sizeof(NPC_ArgentSoldierGUID));
            NPC_ArgentChampionGUID = 0;
            NPC_MemoryEntry = 0;
            NPC_BlackKnightVehicleGUID = 0;
            NPC_BlackKnightGUID = 0;
            GO_MainGateGUID = 0;
            GO_EnterGateGUID = 0;
        }

{'fraction_non_alphanumeric': 0.0792967348403301, 'fraction_numerical': 0.030678148546824543, 'mean_word_length': 2.716666666666667, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1379282', 'n_tokens_mistral': 1964, 'n_tokens_neox': 1873, 'n_words': 320}