From f8019b777d20b388e179fc843b96e2f26ca0e984 Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Sun, 12 May 2024 22:47:53 -0500 Subject: [PATCH 01/13] Updating CppScripts Rewrote file to use a lambda map rather than the massive if else chain. Kept the original comments alongside each of the different scripts they were by before. --- dScripts/CppScripts.cpp | 1030 ++++++++++++++------------------------- 1 file changed, 372 insertions(+), 658 deletions(-) diff --git a/dScripts/CppScripts.cpp b/dScripts/CppScripts.cpp index 12c730fa..c0ad2490 100644 --- a/dScripts/CppScripts.cpp +++ b/dScripts/CppScripts.cpp @@ -327,668 +327,382 @@ #include "LupGenericInteract.h" #include "WblRobotCitizen.h" +#include +#include +#include + namespace { - // This is in the translation unit instead of the header to prevent wierd linker errors - InvalidScript* const InvalidToReturn = new InvalidScript(); - std::map m_Scripts; + // This is in the translation unit instead of the header to prevent weird linker errors + InvalidScript InvalidToReturn; + std::map m_Scripts; + std::map> test = { + //VE / AG + { "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua", []() { return new AgShipPlayerDeathTrigger(); } }, + {"scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua", []() { return new NpcNpSpacemanBob(); } }, + {"scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua", [](){ return new AgSpaceStuff();} }, + {"scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua", [](){ return new AgShipPlayerShockServer();} }, + {"scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua", [](){ return new AgImagSmashable();} }, + {"scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua", [](){ return new StoryBoxInteractServer();} }, + {"scripts\\02_server\\Map\\General\\L_BINOCULARS.lua", [](){ return new Binoculars();} }, + {"scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua", [](){ return new AllCrateChicken();} }, + // Broken? (below) + {"scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua", [](){ return new RockHydrantSmashable();} }, + {"scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua", [](){ return new SsModularBuildServer();} }, + {"scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua", [](){ return new ZoneAgProperty();} }, + // this is done in Entity.cpp, not needed for our implementation (below) + {"scripts\\02_server\\Map\\General\\L_POI_MISSION.lua", [](){ return new InvalidScript();} }, + {"scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua", [](){ return new TouchMissionUpdateServer();} }, + {"scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua", [](){ return new ActSharkPlayerDeathTrigger();} }, + {"scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua", [](){ return new BaseEnemyMech();} }, + {"scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua", [](){ return new ZoneAgSurvival();} }, + {"scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua", [](){ return new AgSurvivalBuffStation();} }, + {"scripts\\ai\\AG\\L_AG_BUS_DOOR.lua", [](){ return new AgBusDoor();} }, + {"scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua", [](){ return new MaestromExtracticatorServer();} }, + {"scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua", [](){ return new AgCagedBricksServer();} }, + {"scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua", [](){ return new NpcWispServer();} }, + {"scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua", [](){ return new NpcEpsilonServer();} }, + {"scripts\\ai\\AG\\L_AG_TURRET.lua", [](){return new AgTurret();}}, + {"scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua", [](){ return new AgTurret();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua", [](){return new AgLaserSensorServer();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua", [](){return new AgMonumentLaserServer();}}, + {"scripts\\ai\\AG\\L_AG_FANS.lua", [](){return new AgFans();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua", [](){return new AgMonumentBirds();}}, + {"scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua", [](){return new RemoveRentalGear();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua", [](){return new NpcNjAssistantServer();}}, + {"scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua", [](){return new AgSalutingNpcs();}}, + {"scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua", [](){return new AgJetEffectServer();}}, + {"scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua", [](){return new BossSpiderQueenEnemyServer();}}, + {"scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua", [](){return new EnemySpiderSpawner();}}, + {"scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua", [](){return new EnemySpiderSpawner();}}, + {"scripts\\ai\\AG\\L_AG_QB_Elevator.lua", [](){return new AgQbElevator();}}, + {"scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua", [](){return new AgPropGuard();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua", [](){return new AgBugsprayer();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua", [](){return new NpcAgCourseStarter();}}, + {"scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua", [](){return new AgMonumentRaceGoal();}}, + {"scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua", [](){return new AgMonumentRaceCancel();}}, + {"scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua", [](){return new ZoneAgSpiderQueen();}}, + {"scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua", [](){return new SpiderBossTreasureChestServer();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua", [](){return new NpcCowboyServer();}}, + {"scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua", [](){return new ZoneAgMedProperty();}}, + {"scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua", [](){return new AgStromlingProperty();}}, + {"scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua", [](){return new BaseEnemyMech();}}, + {"scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua", [](){return new AgDarkSpiderling();}}, + {"scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua", [](){return new AgPropguards();}}, + {"scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua", [](){return new PropertyFXDamage();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua", [](){return new NpcPirateServer();}}, + {"scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua", [](){return new AgPicnicBlanket();}}, + {"scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua", [](){return new PropertyBankInteract();}}, + {"scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua", [](){return new VeMech();}}, + {"scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua", [](){return new VeMissionConsole();}}, + {"scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua", [](){return new VeEpsilonServer();}}, + + //NS + {"scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua", [](){return new NsModularBuild();}}, + {"scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua", [](){return new NsGetFactionMissionServer();}}, + {"scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua", [](){return new NsQbImaginationStatue();}}, + {"scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua", [](){return new NsConcertChoiceBuildManager();}}, + {"scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua", [](){return new NsConcertChoiceBuild();}}, + {"scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua", [](){return new NsConcertQuickBuild();}}, + {"scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua", [](){return new AgStagePlatforms();}}, + {"scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua", [](){return new NsConcertInstrument();}}, + {"scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua", [](){return new NsJohnnyMissionServer();}}, + {"scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua", [](){return new StinkyFishTarget();}}, + {"scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua", [](){return new ZoneNsProperty();}}, + {"scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua", [](){return new ZoneNsMedProperty();}}, + {"scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua", [](){return new NsTokenConsoleServer();}}, + {"scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua", [](){return new NsLupTeleport();}}, + {"scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua", [](){return new ZoneNsWaves();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua", [](){return new WaveBossHammerling();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua", [](){return new WaveBossApe();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua", [](){return new WaveBossSpiderling();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua", [](){return new WaveBossHorsemen();}}, + {"scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua", [](){return new MinigameTreasureChestServer();}}, + {"scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua", [](){return new NsLegoClubDoor();}}, + {"scripts/ai/NS/L_CL_RING.lua", [](){return new ClRing();}}, + {"scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua", [](){return new WildAmbients();}}, + {"scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua", [](){return new PropertyDeathPlane();}}, + {"scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua", [](){return new QbSpawner();}}, + {"scripts\\ai\\AG\\L_AG_QB_Wall.lua", [](){return new AgQbWall();}}, + + //GF + {"scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua", [](){return new GfTikiTorch();}}, + {"scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua", [](){return new GfCampfire();}}, + {"scripts\\ai\\GF\\L_GF_ORGAN.lua", [](){return new GfOrgan();}}, + {"scripts\\ai\\GF\\L_GF_BANANA.lua", [](){return new GfBanana();}}, + {"scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua", [](){return new GfBananaCluster();}}, + {"scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua", [](){return new GfJailkeepMission();}}, + {"scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua", [](){return new TriggerAmbush();}}, + {"scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua", [](){return new GfCaptainsCannon();}}, + {"scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua", [](){return new MastTeleport();}}, + {"scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua", [](){return new GfJailWalls();}}, + {"scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua", [](){return new QbEnemyStunner();}}, + //Technically also used once in AG (below) + {"scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua", [](){return new PetDigBuild();}}, + {"scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua", [](){return new SpawnLionServer();}}, + {"scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua", [](){return new BaseEnemyApe();}}, + {"scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua", [](){return new GfApeSmashingQB();}}, + {"scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua", [](){return new ZoneGfProperty();}}, + {"scripts\\ai\\GF\\L_GF_ARCHWAY.lua", [](){return new GfArchway();}}, + {"scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua", [](){return new GfMaelstromGeyser();}}, + {"scripts\\ai\\GF\\L_PIRATE_REP.lua", [](){return new PirateRep();}}, + {"scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua", [](){return new GfParrotCrash();}}, + + //SG + {"scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua", [](){return new SGCannon();}}, + {"scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua", [](){return new ZoneSGServer();}}, + + //PR + {"scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua", [](){return new PrWhistle();}}, + {"scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua", [](){return new PrSeagullFly();}}, + {"scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua", [](){return new HydrantSmashable();}}, + {"scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua", [](){return new HydrantBroken();}}, + {"scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua", [](){return new PetDigServer();}}, + {"scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua", [](){return new PetDigServer();}}, + //{"scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua", [](){return new PetDigServer();}}, + {"scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua", [](){return new CrabServer();}}, + {"scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua", [](){return new PetFromDigServer();}}, + {"scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua", [](){return new PetFromObjectServer();}}, + {"scripts\\02_server\\Pets\\L_DAMAGING_PET.lua", [](){return new DamagingPets();}}, + {"scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua", [](){return new SpawnGryphonServer();}}, + + //FV + {"scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua", [](){return new FvCandle();}}, + {"scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua", [](){return new EnemyRoninSpawner();}}, + {"scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua", [](){return new FvMaelstromCavalry();}}, + {"scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua", [](){return new ActNinjaTurret();}}, + {"scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua", [](){return new FvHorsemenTrigger();}}, + {"scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua", [](){return new FvFlyingCreviceDragon();}}, + {"scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua", [](){return new FvMaelstromDragon();}}, + {"scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua", [](){return new FvDragonSmashingGolemQb();}}, + {"scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua", [](){return new TreasureChestDragonServer();}}, + {"scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua", [](){return new InstanceExitTransferPlayerToLastNonInstance();}}, + {"scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua", [](){return new FvFreeGfNinjas();}}, + {"scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua", [](){return new FvPandaSpawnerServer();}}, + {"scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua", [](){return new FvPandaServer();}}, + {"scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua", [](){return new ZoneFvProperty();}}, + {"scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua", [](){return new FvBrickPuzzleServer();}}, + {"scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua", [](){return new FvConsoleLeftQuickbuild();}}, + {"scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua", [](){return new FvConsoleRightQuickbuild();}}, + {"scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua", [](){return new FvFacilityBrick();}}, + {"scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua", [](){return new FvFacilityPipes();}}, + {"scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua", [](){return new ImgBrickConsoleQB();}}, + {"scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua", [](){return new ActParadoxPipeFix();}}, + {"scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua", [](){return new FvNinjaGuard();}}, + {"scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua", [](){return new FvPassThroughWall();}}, + {"scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua", [](){return new FvBounceOverWall();}}, + {"scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua", [](){return new FvFong();}}, + {"scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua", [](){return new FvMaelstromGeyser();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua", [](){return new RaceShipLapColumnsServer();}}, + + //yes we know the lap numbers dont match the file name or anim. Thats what they desgined it as. + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua", [](){return new FvRaceDragon("lap_01", 2);}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua", [](){return new FvRaceDragon("lap_02", 0);}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua", [](){return new FvRaceDragon("lap_03", 1);}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua", [](){return new FvRacePillarABCServer();}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua", [](){return new FvRacePillarDServer();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua", [](){return new RaceFireballs();}}, + + //Misc. + {"scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua", [](){return new ExplodingAsset();}}, + {"scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua", [](){return new WishingWellServer();}}, + {"scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua", [](){return new ActPlayerDeathTrigger();}}, + {"scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua", [](){return new GrowingFlower();}}, + {"scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua", [](){return new TokenConsoleServer();}}, + {"scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua", [](){return new BaseFootRaceManager();}}, + {"scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua", [](){return new PropertyPlatform();}}, + {"scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua", [](){return new VeBricksampleServer();}}, + {"scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua", [](){return new MailBoxServer();}}, + {"scripts\\ai\\ACT\\L_ACT_MINE.lua", [](){return new ActMine();}}, + {"scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua", [](){return new WanderingVendor();}}, + + //Racing + {"scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua", [](){return new RaceImagineCrateServer();}}, + {"scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua", [](){return new ActVehicleDeathTrigger();}}, + {"scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua", [](){return new RaceImaginePowerup();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua", [](){return new RaceMaelstromGeiser();}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua", [](){return new FvRaceSmashEggImagineServer();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua", [](){return new FvRacingColumns();}}, + {"scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua", [](){return new RaceSmashServer();}}, + + //NT + {"scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua", [](){return new NtSentinelWalkwayServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua", [](){return new NtParadoxTeleServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua", [](){return new NtDarkitectRevealServer();}}, + {"scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua", [](){return new BankInteractServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua", [](){return new NtVentureSpeedPadServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua", [](){return new NtVentureCannonServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua", [](){return new NtCombatChallengeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua", [](){return new NtCombatChallengeDummy();}}, + {"scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua", [](){return new NtCombatChallengeExplodingDummy();}}, + {"scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua", [](){return new BaseInteractDropLootServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua", [](){return new NtAssemblyTubeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua", [](){return new NtParadoxPanelServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua", [](){return new NtImagBeamBuffer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua", [](){return new NtBeamImaginationCollectors();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua", [](){return new NtDirtCloudServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua", [](){return new NtConsoleTeleportServer();}}, + {"scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua", [](){return new SpawnStegoServer();}}, + {"scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua", [](){return new SpawnSaberCatServer();}}, + {"scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua", [](){return new SpawnShrakeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua", [](){return new NtDukeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua", [](){return new NtHaelServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua", [](){return new NtFactionSpyServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua", [](){return new NtOverbuildServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua", [](){return new NtVandaServer();}}, + {"scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua", [](){return new ForceVolumeServer();}}, + {"scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua", [](){return new FrictionVolumeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua", [](){return new NtXRayServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua", [](){return new NtSleepingGuard();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua", [](){return new NTImagimeterVisibility();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua", [](){return new NTPipeVisibilityServer();}}, + {"scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua", [](){return new MinigameBlueMark();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua", [](){return new NtNaomiBreadcrumbServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua", [](){return new NTNaomiDirtServer();}}, + + //AM Crux + {"scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua", [](){return new AmConsoleTeleportServer();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua", [](){return new RandomSpawnerFin();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua", [](){return new RandomSpawnerPit();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua", [](){return new RandomSpawnerStr();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua", [](){return new RandomSpawnerZip();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua", [](){return new AmDarklingMech();}}, + {"scripts\\02_server\\Map\\AM\\L_BRIDGE.lua", [](){return new AmBridge();}}, + {"scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua", [](){return new AmDrawBridge();}}, + {"scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua", [](){return new AmShieldGenerator();}}, + {"scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua", [](){return new AmShieldGeneratorQuickbuild();}}, + {"scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua", [](){return new AmDropshipComputer();}}, + {"scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua", [](){return new AmScrollReaderServer();}}, + {"scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua", [](){return new AmTemplateSkillVolume();}}, + {"scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua", [](){return new EnemyNjBuff();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua", [](){return new AmSkeletonEngineer();}}, + {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua", [](){return new AmSkullkinDrill();}}, + {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua", [](){return new AmSkullkinDrillStand();}}, + {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua", [](){return new AmSkullkinTower();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua", [](){return new AmDarklingDragon();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua", [](){return new BaseEnemyApe();}}, + {"scripts\\02_server\\Map\\AM\\L_BLUE_X.lua", [](){return new AmBlueX();}}, + {"scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua", [](){return new AmTeapotServer();}}, + + //Ninjago + {"scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua", [](){return new NjGarmadonCelebration();}}, + {"scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua", [](){return new NjWuNPC();}}, + {"scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua", [](){return new NjScrollChestServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua", [](){return new NjColeNPC();}}, + {"scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua", [](){return new NjJayMissionItems();}}, + {"scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua", [](){return new NjNPCMissionSpinjitzuServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua", [](){return new EnemySkeletonSpawner();}}, + {"scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua", [](){return new NjRailSwitch();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua", [](){return new NjRailActivatorsServer();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua", [](){return new NjRailPostServer();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua", [](){return new NjIceRailActivator();}}, + {"scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua", [](){return new FallingTile();}}, + {"scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua", [](){return new EnemyNjBuff();}}, + {"scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua", [](){return new ImaginationShrineServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua", [](){return new Lieutenant();}}, + {"scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua", [](){return new RainOfArrows();}}, + {"scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua", [](){return new CavePrisonCage();}}, + {"scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua", [](){return new NjMonastryBossInstance();}}, + {"scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua", [](){return new CatapultBouncerServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua", [](){return new CatapultBaseServer();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua", [](){return new NjhubLavaPlayerDeathTrigger();}}, + {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua", [](){return new MonCoreNookDoors();}}, + {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", [](){return new MonCoreSmashableDoors();}}, + {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", [](){return new MonCoreSmashableDoors();}}, + {"scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua", [](){return new FlameJetServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua", [](){return new BurningTile();}}, + {"scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua", [](){return new NjEarthDragonPetServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua", [](){return new NjEarthPetServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua", [](){return new NjDragonEmblemChestServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua", [](){return new NjNyaMissionitems();}}, + + //DLU + {"scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua", [](){return new DLUVanityTeleportingObject();}}, + + //Survival Minigame + {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua", [](){return new AgSurvivalStromling();}}, + {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua", [](){return new AgSurvivalMech();}}, + {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua", [](){return new AgSurvivalSpiderling();}}, + + //Scripted Equipment + {"scripts\\EquipmentScripts\\Sunflower.lua", [](){return new Sunflower();}}, + {"scripts/EquipmentScripts/AnvilOfArmor.lua", [](){return new AnvilOfArmor();}}, + {"scripts/EquipmentScripts/FountainOfImagination.lua", [](){return new FountainOfImagination();}}, + {"scripts/EquipmentScripts/CauldronOfLife.lua", [](){return new CauldronOfLife();}}, + {"scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua", [](){return new BootyDigServer();}}, + {"scripts\\EquipmentScripts\\PersonalFortress.lua", [](){return new PersonalFortress();}}, + {"scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua", [](){return new PropertyDevice();}}, + {"scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua", [](){return new ImaginationBackpackHealServer();}}, + {"scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua", [](){return new LegoDieRoll();}}, + {"scripts\\EquipmentScripts\\BuccaneerValiantShip.lua", [](){return new BuccaneerValiantShip();}}, + {"scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua", [](){return new FireFirstSkillonStartup();}}, + {"scripts\\equipmenttriggers\\gempack.lua", [](){return new GemPack();}}, + {"scripts\\equipmenttriggers\\shardarmor.lua", [](){return new ShardArmor();}}, + {"scripts\\equipmenttriggers\\coilbackpack.lua", [](){return new TeslaPack();}}, + {"scripts\\EquipmentScripts\\stunImmunity.lua", [](){return new StunImmunity();}}, + + //FB + {"scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua", [](){return new RockHydrantBroken();}}, + {"scripts\\ai\\NS\\L_NS_WH_FANS.lua", [](){return new WhFans();}}, + + //WBL + {"scripts\\zone\\LUPs\\WBL_generic_zone.lua", [](){return new WblGenericZone();}}, + + //Alpha + {"scripts\\ai\\FV\\L_TRIGGER_GAS.lua", [](){return new TriggerGas();}}, + {"scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua", [](){return new ActNinjaSensei();}}, + + //Pickups + {"scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(1);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(100);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(10);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(100000);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(1000);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(25);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(250000);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(2500);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua", [](){return new SpecialPowerupSpawner(13);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua", [](){return new SpecialPowerupSpawner(129);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua", [](){return new SpecialPowerupSpawner(5);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua", [](){return new SpecialPowerupSpawner(747);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua", [](){return new SpecialSpeedBuffSpawner();}}, + + //Wild + {"scripts\\ai\\WILD\\L_WILD_GF_RAT.lua", [](){return new WildAndScared();}}, + {"scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua", [](){return new WildAndScared();}}, + {"scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua", [](){return new WildGfGlowbug();}}, + {"scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua", [](){return new WildAmbientCrab();}}, + {"scripts\\ai\\WILD\\L_WILD_PANTS.lua", [](){return new WildPants();}}, + {"scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua", [](){return new WildNinjaBricks();}}, + {"scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua", [](){return new WildNinjaStudent();}}, + {"scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua", [](){return new WildNinjaSensei();}}, + {"scripts\\ai\\WILD\\L_LUP_generic_interact.lua", [](){return new LupGenericInteract();}}, + + //And on, and on, and on, and on + }; }; CppScripts::Script* const CppScripts::GetScript(Entity* parent, const std::string& scriptName) { - auto itr = m_Scripts.find(scriptName); - if (itr != m_Scripts.end()) { - return itr->second; - } - - Script* script = InvalidToReturn; - - //VE / AG: - if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua") - script = new AgShipPlayerDeathTrigger(); - else if (scriptName == "scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua") - script = new NpcNpSpacemanBob(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua") // Broken, will (sometimes) display all animations at once on initial login - script = new AgSpaceStuff(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua") - script = new AgShipPlayerShockServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua") - script = new AgImagSmashable(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua") - script = new StoryBoxInteractServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_BINOCULARS.lua") - script = new Binoculars(); - else if (scriptName == "scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua") - script = new AllCrateChicken(); - else if (scriptName == "scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua") - script = new RockHydrantSmashable(); // Broken? - else if (scriptName == "scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua") - script = new SsModularBuildServer(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua") - script = new ZoneAgProperty(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_POI_MISSION.lua") - script = new InvalidScript(); // this is done in Entity.cpp, not needed for our implementation - else if (scriptName == "scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua") - script = new TouchMissionUpdateServer(); - else if (scriptName == "scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua") - script = new ActSharkPlayerDeathTrigger(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua") - script = new BaseEnemyMech(); - else if (scriptName == "scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua") - script = new ZoneAgSurvival(); - else if (scriptName == "scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua") - script = new AgSurvivalBuffStation(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_BUS_DOOR.lua") - script = new AgBusDoor(); - else if (scriptName == "scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua") - script = new MaestromExtracticatorServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua") - script = new AgCagedBricksServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua") - script = new NpcWispServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua") - script = new NpcEpsilonServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_TURRET.lua" || scriptName == "scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua") - script = new AgTurret(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua") - script = new AgLaserSensorServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua") - script = new AgMonumentLaserServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_FANS.lua") - script = new AgFans(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua") - script = new AgMonumentBirds(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua") - script = new RemoveRentalGear(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua") - script = new NpcNjAssistantServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua") - script = new AgSalutingNpcs(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua") - script = new AgJetEffectServer(); - else if (scriptName == "scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua") - script = new BossSpiderQueenEnemyServer(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua") - script = new EnemySpiderSpawner(); - else if (scriptName == "scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua") - script = new EnemySpiderSpawner(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_QB_Elevator.lua") - script = new AgQbElevator(); - else if (scriptName == "scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua") - script = new AgPropGuard(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua") - script = new AgBugsprayer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua") - script = new NpcAgCourseStarter(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua") - script = new AgMonumentRaceGoal(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua") - script = new AgMonumentRaceCancel(); - else if (scriptName == "scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua") - script = new ZoneAgSpiderQueen(); - else if (scriptName == "scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua") - script = new SpiderBossTreasureChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua") - script = new NpcCowboyServer(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua") - script = new ZoneAgMedProperty(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua") - script = new AgStromlingProperty(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua") - script = new BaseEnemyMech(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua") - script = new AgDarkSpiderling(); - else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua") - script = new AgPropguards(); - else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua") - script = new PropertyFXDamage(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua") - script = new NpcPirateServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua") - script = new AgPicnicBlanket(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua") - script = new PropertyBankInteract(); - else if (scriptName == "scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua") - script = new VeMech(); - else if (scriptName == "scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua") - script = new VeMissionConsole(); - else if (scriptName == "scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua") - script = new VeEpsilonServer(); - // Win32 thinks this if chain is too long, let's cut it up and serve it as a three course meal - //NS: - if (scriptName == "scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua") - script = new NsModularBuild(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua") - script = new NsGetFactionMissionServer(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua") - script = new NsQbImaginationStatue(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua") - script = new NsConcertChoiceBuildManager(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua") - script = new NsConcertChoiceBuild(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua") - script = new NsConcertQuickBuild(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua") - script = new AgStagePlatforms(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua") - script = new NsConcertInstrument(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua") - script = new NsJohnnyMissionServer(); - else if (scriptName == "scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua") - script = new StinkyFishTarget(); - else if (scriptName == "scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua") - script = new ZoneNsProperty(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua") - script = new ZoneNsMedProperty(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua") - script = new NsTokenConsoleServer(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua") - script = new NsLupTeleport(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua") - script = new ZoneNsWaves(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua") - script = new WaveBossHammerling(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua") - script = new WaveBossApe(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua") - script = new WaveBossSpiderling(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua") - script = new WaveBossHorsemen(); - else if (scriptName == "scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua") - script = new MinigameTreasureChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua") - script = new NsLegoClubDoor(); - else if (scriptName == "scripts/ai/NS/L_CL_RING.lua") - script = new ClRing(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua") - script = new WildAmbients(); - else if (scriptName == "scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua") - script = new PropertyDeathPlane(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua") - script = new QbSpawner(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_QB_Wall.lua") - script = new AgQbWall(); - - //GF: - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua") - script = new GfTikiTorch(); - else if (scriptName == "scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua") - script = new GfCampfire(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_ORGAN.lua") - script = new GfOrgan(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_BANANA.lua") - script = new GfBanana(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua") - script = new GfBananaCluster(); - else if (scriptName == "scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua") - script = new GfJailkeepMission(); - else if (scriptName == "scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua") - script = new TriggerAmbush(); - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua") - script = new GfCaptainsCannon(); - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua") - script = new MastTeleport(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua") - script = new GfJailWalls(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua") - script = new QbEnemyStunner(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua") - script = new PetDigBuild(); // Technically also used once in AG - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua") - script = new SpawnLionServer(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua") - script = new BaseEnemyApe(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua") - script = new GfApeSmashingQB(); - else if (scriptName == "scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua") - script = new ZoneGfProperty(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_ARCHWAY.lua") - script = new GfArchway(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua") - script = new GfMaelstromGeyser(); - else if (scriptName == "scripts\\ai\\GF\\L_PIRATE_REP.lua") - script = new PirateRep(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua") - script = new GfParrotCrash(); - - // SG - else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua") - script = new SGCannon(); - else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua") - script = new ZoneSGServer(); - - //PR: - else if (scriptName == "scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua") - script = new PrWhistle(); - if (scriptName == "scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua") - script = new PrSeagullFly(); - else if (scriptName == "scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua") - script = new HydrantSmashable(); - else if (scriptName == "scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua") - script = new HydrantBroken(); - else if (scriptName == "scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua" || scriptName == "scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua") - script = new PetDigServer(); - else if (scriptName == "scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua") - script = new CrabServer(); - else if (scriptName == "scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua") - script = new PetFromDigServer(); - else if (scriptName == "scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua") - script = new PetFromObjectServer(); - else if (scriptName == "scripts\\02_server\\Pets\\L_DAMAGING_PET.lua") - script = new DamagingPets(); - else if (scriptName == "scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua") - script = new SpawnGryphonServer(); - - //FV Scripts: - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua") - script = new FvCandle(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua") - script = new EnemyRoninSpawner(); - else if (scriptName == "scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua") - script = new FvMaelstromCavalry(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua") - script = new ActNinjaTurret(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua") - script = new FvHorsemenTrigger(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua") - script = new FvFlyingCreviceDragon(); - else if (scriptName == "scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua") - script = new FvMaelstromDragon(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua") - script = new FvDragonSmashingGolemQb(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua") - script = new TreasureChestDragonServer(); - else if (scriptName == "scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua") - script = new InstanceExitTransferPlayerToLastNonInstance(); - else if (scriptName == "scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua") - script = new FvFreeGfNinjas(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua") - script = new FvPandaSpawnerServer(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua") - script = new FvPandaServer(); - else if (scriptName == "scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua") - script = new ZoneFvProperty(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua") - script = new FvBrickPuzzleServer(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua") - script = new FvConsoleLeftQuickbuild(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua") - script = new FvConsoleRightQuickbuild(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua") - script = new FvFacilityBrick(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua") - script = new FvFacilityPipes(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua") - script = new ImgBrickConsoleQB(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua") - script = new ActParadoxPipeFix(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua") - script = new FvNinjaGuard(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua") - script = new FvPassThroughWall(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua") - script = new FvBounceOverWall(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua") - script = new FvFong(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua") - script = new FvMaelstromGeyser(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua") - script = new RaceShipLapColumnsServer(); - - // yes we know the lap numbers dont match the file name or anim. thats what they desgined it as. - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua") - script = new FvRaceDragon("lap_01", 2); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua") - script = new FvRaceDragon("lap_02", 0); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua") - script = new FvRaceDragon("lap_03", 1); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua") - script = new FvRacePillarABCServer(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua") - script = new FvRacePillarDServer(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua") - script = new RaceFireballs(); - - - //Misc: - if (scriptName == "scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua") - script = new ExplodingAsset(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua") - script = new WishingWellServer(); - else if (scriptName == "scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua") - script = new ActPlayerDeathTrigger(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua") - script = new GrowingFlower(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua") - script = new TokenConsoleServer(); - else if (scriptName == "scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua") - script = new BaseFootRaceManager(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua") - script = new PropertyPlatform(); - else if (scriptName == "scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua") - script = new VeBricksampleServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua") - script = new MailBoxServer(); - else if (scriptName == "scripts\\ai\\ACT\\L_ACT_MINE.lua") - script = new ActMine(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua") - script = new WanderingVendor(); - - //Racing: - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua") - script = new RaceImagineCrateServer(); - else if (scriptName == "scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua") - script = new ActVehicleDeathTrigger(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua") - script = new RaceImaginePowerup(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua") - script = new RaceMaelstromGeiser(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua") - script = new FvRaceSmashEggImagineServer(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua") - script = new FvRacingColumns(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua") - script = new RaceSmashServer(); - - //NT: - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua") - script = new NtSentinelWalkwayServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua") - script = new NtParadoxTeleServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua") - script = new NtDarkitectRevealServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua") - script = new BankInteractServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua") - script = new NtVentureSpeedPadServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua") - script = new NtVentureCannonServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua") - script = new NtCombatChallengeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua") - script = new NtCombatChallengeDummy(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua") - script = new NtCombatChallengeExplodingDummy(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua") - script = new BaseInteractDropLootServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua") - script = new NtAssemblyTubeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua") - script = new NtParadoxPanelServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua") - script = new NtImagBeamBuffer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua") - script = new NtBeamImaginationCollectors(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua") - script = new NtDirtCloudServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua") - script = new NtConsoleTeleportServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua") - script = new SpawnStegoServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua") - script = new SpawnSaberCatServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua") - script = new SpawnShrakeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua") - script = new NtDukeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua") - script = new NtHaelServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua") - script = new NtFactionSpyServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua") - script = new NtOverbuildServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua") - script = new NtVandaServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua") - script = new ForceVolumeServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua") - script = new FrictionVolumeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua") - script = new NtXRayServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua") - script = new NtSleepingGuard(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua") - script = new NTImagimeterVisibility(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua") - script = new NTPipeVisibilityServer(); - else if (scriptName == "scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua") - script = new MinigameBlueMark(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua") - script = new NtNaomiBreadcrumbServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua") - script = new NTNaomiDirtServer(); - - //AM: - if (scriptName == "scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua") - script = new AmConsoleTeleportServer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua") - script = new RandomSpawnerFin(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua") - script = new RandomSpawnerPit(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua") - script = new RandomSpawnerStr(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua") - script = new RandomSpawnerZip(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua") - script = new AmDarklingMech(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_BRIDGE.lua") - script = new AmBridge(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua") - script = new AmDrawBridge(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua") - script = new AmShieldGenerator(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua") - script = new AmShieldGeneratorQuickbuild(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua") - script = new AmDropshipComputer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua") - script = new AmScrollReaderServer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua") - script = new AmTemplateSkillVolume(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua") - script = new EnemyNjBuff(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua") - script = new AmSkeletonEngineer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua") - script = new AmSkullkinDrill(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua") - script = new AmSkullkinDrillStand(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua") - script = new AmSkullkinTower(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua") - script = new AmDarklingDragon(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_DRAGON.lua") - script = new AmDarklingDragon(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua") - script = new BaseEnemyApe(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_BLUE_X.lua") - script = new AmBlueX(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua") - script = new AmTeapotServer(); - - // Ninjago - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua") - script = new NjGarmadonCelebration(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua") - script = new NjWuNPC(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua") - script = new NjScrollChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua") - script = new NjColeNPC(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua") - script = new NjJayMissionItems(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua") - script = new NjNPCMissionSpinjitzuServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua") - script = new EnemySkeletonSpawner(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua") - script = new NjRailSwitch(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua") - script = new NjRailActivatorsServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua") - script = new NjRailPostServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua") - script = new NjIceRailActivator(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua") - script = new FallingTile(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua") - script = new EnemyNjBuff(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua") - script = new ImaginationShrineServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua") - script = new Lieutenant(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua") - script = new RainOfArrows(); - if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua") - script = new CavePrisonCage(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua") - script = new NjMonastryBossInstance(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua") - script = new CatapultBouncerServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua") - script = new CatapultBaseServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua") - script = new NjhubLavaPlayerDeathTrigger(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua") - script = new MonCoreNookDoors(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua") - script = new MonCoreSmashableDoors(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua") - script = new FlameJetServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua") - script = new BurningTile(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua") - script = new NjEarthDragonPetServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua") - script = new NjEarthPetServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua") - script = new NjDragonEmblemChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua") - script = new NjNyaMissionitems(); - - //DLU: - else if (scriptName == "scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua") - script = new DLUVanityTeleportingObject(); - - // Survival minigame - else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua") - script = new AgSurvivalStromling(); - else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua") - script = new AgSurvivalMech(); - else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua") - script = new AgSurvivalSpiderling(); - - // Scripted equipment - else if (scriptName == "scripts\\EquipmentScripts\\Sunflower.lua") - script = new Sunflower(); - else if (scriptName == "scripts/EquipmentScripts/AnvilOfArmor.lua") - script = new AnvilOfArmor(); - else if (scriptName == "scripts/EquipmentScripts/FountainOfImagination.lua") - script = new FountainOfImagination(); - else if (scriptName == "scripts/EquipmentScripts/CauldronOfLife.lua") - script = new CauldronOfLife(); - else if (scriptName == "scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua") - script = new BootyDigServer(); - else if (scriptName == "scripts\\EquipmentScripts\\PersonalFortress.lua") - script = new PersonalFortress(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua") - script = new PropertyDevice(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua") - script = new ImaginationBackpackHealServer(); - else if (scriptName == "scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua") - script = new LegoDieRoll(); - else if (scriptName == "scripts\\EquipmentScripts\\BuccaneerValiantShip.lua") - script = new BuccaneerValiantShip(); - else if (scriptName == "scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua") - script = new FireFirstSkillonStartup(); - else if (scriptName == "scripts\\equipmenttriggers\\gempack.lua") - script = new GemPack(); - else if (scriptName == "scripts\\equipmenttriggers\\shardarmor.lua") - script = new ShardArmor(); - else if (scriptName == "scripts\\equipmenttriggers\\coilbackpack.lua") - script = new TeslaPack(); - else if (scriptName == "scripts\\EquipmentScripts\\stunImmunity.lua") - script = new StunImmunity(); - - // FB - else if (scriptName == "scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua") - script = new RockHydrantBroken(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_WH_FANS.lua") - script = new WhFans(); - - // WBL - else if (scriptName == "scripts\\zone\\LUPs\\WBL_generic_zone.lua") - script = new WblGenericZone(); - - // Alpha - if (scriptName == "scripts\\ai\\FV\\L_TRIGGER_GAS.lua") - script = new TriggerGas(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua") - script = new ActNinjaSensei(); - - // pickups - if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(1); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_GOLD-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(10000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(100); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(10); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(100000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(1000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(25); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(250000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(2500); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua") - script = new SpecialPowerupSpawner(13); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua") - script = new SpecialPowerupSpawner(129); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua") - script = new SpecialPowerupSpawner(5); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua") - script = new SpecialPowerupSpawner(747); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua") - script = new SpecialSpeedBuffSpawner(); - - // Wild - if (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_RAT.lua" || scriptName == "scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua") - script = new WildAndScared(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua") - script = new WildGfGlowbug(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua") - script = new WildAmbientCrab(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_PANTS.lua") - script = new WildPants(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua") - script = new WildNinjaBricks(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua") - script = new WildNinjaStudent(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua") - script = new WildNinjaSensei(); - else if (scriptName == "scripts\\ai\\WILD\\L_LUP_generic_interact.lua") - script = new LupGenericInteract(); - else if (scriptName.rfind("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizen", 0) == 0) - script = new WblRobotCitizen(); - - // handle invalid script reporting if the path is greater than zero and it's not an ignored script - // information not really needed for sys admins but is for developers - else if (script == InvalidToReturn) { - if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || - (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua") || - (scriptName =="scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || - (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") || - (scriptName == "scripts\\empty.lua") - )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); - } - - m_Scripts[scriptName] = script; - return script; + auto itr = m_Scripts.find(scriptName); + if (itr != m_Scripts.end()) { + return itr->second; + } + + const auto itrSN = test.find(scriptName); + Script* script = itrSN != test.cend() ? itrSN->second() : &InvalidToReturn; + + if (script == &InvalidToReturn) { + if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || + (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua") || + (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || + (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") || + (scriptName == "scripts\\empty.lua") + )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); + } + + m_Scripts[scriptName] = script; + return script; } -CppScripts::Script* const CppScripts::GetInvalidScript() { - return InvalidToReturn; +CppScripts::Script* const CppScripts::GetInvalidScript(){ + return &InvalidToReturn; } From 6218266a4a5f07b54e7c12f9042853c1f3143b14 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sun, 12 May 2024 22:48:13 -0700 Subject: [PATCH 02/13] add script tests --- CMakeLists.txt | 1 + tests/dGameTests/CMakeLists.txt | 23 +- tests/dGameTests/dScriptsTests/CMakeLists.txt | 11 + .../dScriptsTests/CppScriptsOld.cpp | 991 ++++++++++++++++++ .../dGameTests/dScriptsTests/CppScriptsOld.h | 16 + .../dScriptsTests/dScriptsTests.cpp | 941 +++++++++++++++++ 6 files changed, 1979 insertions(+), 4 deletions(-) create mode 100644 tests/dGameTests/dScriptsTests/CMakeLists.txt create mode 100644 tests/dGameTests/dScriptsTests/CppScriptsOld.cpp create mode 100644 tests/dGameTests/dScriptsTests/CppScriptsOld.h create mode 100644 tests/dGameTests/dScriptsTests/dScriptsTests.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index aa517182..0cca1fff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,6 +229,7 @@ include_directories( "tests/dCommonTests" "tests/dGameTests" "tests/dGameTests/dComponentsTests" + "tests/dGameTests/dScriptsTests" SYSTEM "thirdparty/magic_enum/include/magic_enum" SYSTEM "thirdparty/raknet/Source" diff --git a/tests/dGameTests/CMakeLists.txt b/tests/dGameTests/CMakeLists.txt index 58f213e0..3069e722 100644 --- a/tests/dGameTests/CMakeLists.txt +++ b/tests/dGameTests/CMakeLists.txt @@ -8,18 +8,33 @@ list(APPEND DGAMETEST_SOURCES ${DCOMPONENTS_TESTS}) add_subdirectory(dGameMessagesTests) list(APPEND DGAMETEST_SOURCES ${DGAMEMESSAGES_TESTS}) +add_subdirectory(dScriptsTests) +list(APPEND DGAMETEST_SOURCES ${DSCRIPTS_TESTS}) + +include_directories(${CMAKE_SOURCE_DIR}/dScripts) + file(COPY ${GAMEMESSAGE_TESTBITSTREAMS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) # Add the executable. Remember to add all tests above this! add_executable(dGameTests ${DGAMETEST_SOURCES}) add_dependencies(dGameTests conncpp_tests) +target_include_directories(dGameTests PRIVATE + $ + $ + $ + $ + $ + $ + $ +) + # Apple needs some special linkage for the mariadb connector for tests. if(APPLE) -add_custom_command(TARGET dGameTests POST_BUILD - COMMAND install_name_tool ARGS -change libmariadbcpp.dylib @rpath/libmariadbcpp.dylib dGameTests - COMMAND otool ARGS -L dGameTests - WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) + add_custom_command(TARGET dGameTests POST_BUILD + COMMAND install_name_tool ARGS -change libmariadbcpp.dylib @rpath/libmariadbcpp.dylib dGameTests + COMMAND otool ARGS -L dGameTests + WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) endif() target_link_libraries(dGameTests ${COMMON_LIBRARIES} GTest::gtest_main diff --git a/tests/dGameTests/dScriptsTests/CMakeLists.txt b/tests/dGameTests/dScriptsTests/CMakeLists.txt new file mode 100644 index 00000000..d0e14056 --- /dev/null +++ b/tests/dGameTests/dScriptsTests/CMakeLists.txt @@ -0,0 +1,11 @@ +set(DSCRIPTS_TESTS + "dScriptsTests.cpp" + "CppScriptsOld.cpp" +) + +# Get the folder name and prepend it to the files above +get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME) +list(TRANSFORM DSCRIPTS_TESTS PREPEND "${thisFolderName}/") + +# Export to parent scope +set(DSCRIPTS_TESTS ${DSCRIPTS_TESTS} PARENT_SCOPE) diff --git a/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp b/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp new file mode 100644 index 00000000..f13d766d --- /dev/null +++ b/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp @@ -0,0 +1,991 @@ +#include "CppScriptsOld.h" +//I can feel my soul being torn apart with every script added to this monstrosity. +// skate fast eat trash +// do you think god stays in heaven because he too lives in fear of what he's created? + +#include "GameMessages.h" +#include "Entity.h" +#include "ScriptComponent.h" +#include "Game.h" +#include "Logger.h" +#include "InvalidScript.h" + +//VE / AG scripts: +#include "AgShipPlayerDeathTrigger.h" +#include "AgShipPlayerShockServer.h" +#include "AgSpaceStuff.h" +#include "AgImagSmashable.h" +#include "NpcNpSpacemanBob.h" +#include "StoryBoxInteractServer.h" +#include "Binoculars.h" +#include "AllCrateChicken.h" +#include "SsModularBuildServer.h" +#include "ZoneAgProperty.h" +#include "TouchMissionUpdateServer.h" +#include "ActSharkPlayerDeathTrigger.h" +#include "BaseEnemyMech.h" +#include "ZoneAgSurvival.h" +#include "AgBusDoor.h" +#include "MaestromExtracticatorServer.h" +#include "NpcWispServer.h" +#include "AgCagedBricksServer.h" +#include "NpcEpsilonServer.h" +#include "AgTurret.h" +#include "AgMonumentBirds.h" +#include "AgLaserSensorServer.h" +#include "AgMonumentLaserServer.h" +#include "AgFans.h" +#include "RemoveRentalGear.h" +#include "NpcNjAssistantServer.h" +#include "EnemySpiderSpawner.h" +#include "AgQbElevator.h" +#include "AgPropGuard.h" +#include "AgBugsprayer.h" +#include "WishingWellServer.h" +#include "NpcAgCourseStarter.h" +#include "AgMonumentRaceGoal.h" +#include "ZoneAgSpiderQueen.h" +#include "SpiderBossTreasureChestServer.h" +#include "NpcCowboyServer.h" +#include "ZoneAgMedProperty.h" +#include "AgStromlingProperty.h" +#include "AgDarkSpiderling.h" +#include "PropertyFXDamage.h" +#include "AgPropguards.h" +#include "NpcPirateServer.h" +#include "AgPicnicBlanket.h" +#include "AgMonumentRaceCancel.h" +#include "VeBricksampleServer.h" +#include "PropertyBankInteract.h" +#include "VeMech.h" +#include "VeMissionConsole.h" +#include "VeEpsilonServer.h" +#include "AgSurvivalBuffStation.h" +#include "QbSpawner.h" +#include "AgQbWall.h" + +// NS Scripts +#include "NsModularBuild.h" +#include "NsGetFactionMissionServer.h" +#include "NsQbImaginationStatue.h" +#include "NsConcertChoiceBuildManager.h" +#include "NsConcertChoiceBuild.h" +#include "NsConcertQuickBuild.h" +#include "AgStagePlatforms.h" +#include "NsConcertInstrument.h" +#include "NsJohnnyMissionServer.h" +#include "StinkyFishTarget.h" +#include "ZoneNsProperty.h" +#include "ZoneNsMedProperty.h" +#include "NsTokenConsoleServer.h" +#include "NsLupTeleport.h" +#include "ZoneNsWaves.h" +#include "WaveBossHammerling.h" +#include "WaveBossApe.h" +#include "WaveBossSpiderling.h" +#include "WaveBossHorsemen.h" +#include "MinigameTreasureChestServer.h" +#include "NsLegoClubDoor.h" +#include "ClRing.h" +#include "WildAmbients.h" +#include "PropertyDeathPlane.h" + +// PR Scripts +#include "PrWhistle.h" +#include "PrSeagullFly.h" +#include "HydrantBroken.h" +#include "HydrantSmashable.h" +#include "PetDigServer.h" +#include "PetFromDigServer.h" +#include "PetFromObjectServer.h" +#include "DamagingPets.h" +#include "SpawnGryphonServer.h" + +// GF Scripts +#include "GfTikiTorch.h" +#include "GfCampfire.h" +#include "GfOrgan.h" +#include "GfBanana.h" +#include "GfBananaCluster.h" +#include "GfJailkeepMission.h" +#include "TriggerAmbush.h" +#include "GfCaptainsCannon.h" +#include "MastTeleport.h" +#include "GfJailWalls.h" +#include "QbEnemyStunner.h" +#include "PetDigBuild.h" +#include "SpawnLionServer.h" +#include "BaseEnemyApe.h" +#include "GfApeSmashingQB.h" +#include "ZoneGfProperty.h" +#include "GfArchway.h" +#include "GfMaelstromGeyser.h" +#include "PirateRep.h" +#include "GfParrotCrash.h" + +// SG Scripts +#include "SGCannon.h" +#include "ZoneSGServer.h" + +// FV Scripts +#include "FvCandle.h" +#include "EnemyRoninSpawner.h" +#include "ActNinjaTurret.h" +#include "FvMaelstromCavalry.h" +#include "FvHorsemenTrigger.h" +#include "FvFlyingCreviceDragon.h" +#include "FvMaelstromDragon.h" +#include "FvDragonSmashingGolemQb.h" +#include "TreasureChestDragonServer.h" +#include "InstanceExitTransferPlayerToLastNonInstance.h" +#include "FvFreeGfNinjas.h" +#include "FvPandaServer.h" +#include "FvPandaSpawnerServer.h" +#include "ZoneFvProperty.h" +#include "FvBrickPuzzleServer.h" +#include "FvConsoleLeftQuickbuild.h" +#include "FvConsoleRightQuickbuild.h" +#include "FvFacilityBrick.h" +#include "FvFacilityPipes.h" +#include "ImgBrickConsoleQB.h" +#include "ActParadoxPipeFix.h" +#include "FvNinjaGuard.h" +#include "FvPassThroughWall.h" +#include "FvBounceOverWall.h" +#include "FvFong.h" +#include "FvMaelstromGeyser.h" +#include "FvRaceDragon.h" +#include "FvRacePillarABCServer.h" +#include "FvRacePillarDServer.h" +#include "RaceFireballs.h" +#include "RaceShipLapColumnsServer.h" + +// FB Scripts +#include "AgJetEffectServer.h" +#include "AgSalutingNpcs.h" +#include "BossSpiderQueenEnemyServer.h" +#include "RockHydrantSmashable.h" + +// Misc Scripts +#include "ExplodingAsset.h" +#include "ActPlayerDeathTrigger.h" +#include "CrabServer.h" +#include "GrowingFlower.h" +#include "BaseFootRaceManager.h" +#include "PropertyPlatform.h" +#include "MailBoxServer.h" +#include "ActMine.h" +#include "FireFirstSkillonStartup.h" + +// Racing Scripts +#include "RaceImagineCrateServer.h" +#include "ActVehicleDeathTrigger.h" +#include "RaceImaginePowerup.h" +#include "RaceMaelstromGeiser.h" +#include "FvRaceSmashEggImagineServer.h" +#include "RaceSmashServer.h" +#include "FvRacingColumns.h" + +// NT Scripts +#include "NtSentinelWalkwayServer.h" +#include "NtParadoxTeleServer.h" +#include "NtDarkitectRevealServer.h" +#include "BankInteractServer.h" +#include "NtVentureSpeedPadServer.h" +#include "NtVentureCannonServer.h" +#include "NtCombatChallengeServer.h" +#include "NtCombatChallengeDummy.h" +#include "NtCombatChallengeExplodingDummy.h" +#include "BaseInteractDropLootServer.h" +#include "NtAssemblyTubeServer.h" +#include "NtParadoxPanelServer.h" +#include "TokenConsoleServer.h" +#include "NtImagBeamBuffer.h" +#include "NtBeamImaginationCollectors.h" +#include "NtDirtCloudServer.h" +#include "NtConsoleTeleportServer.h" +#include "SpawnShrakeServer.h" +#include "SpawnSaberCatServer.h" +#include "SpawnStegoServer.h" +#include "NtDukeServer.h" +#include "NtHaelServer.h" +#include "NtOverbuildServer.h" +#include "NtVandaServer.h" +#include "ForceVolumeServer.h" +#include "NtXRayServer.h" +#include "NtSleepingGuard.h" +#include "NtImagimeterVisibility.h" +#include "FrictionVolumeServer.h" +#include "NTPipeVisibilityServer.h" +#include "NTNaomiDirtServer.h" +#include "MinigameBlueMark.h" +#include "NtNaomiBreadcrumbServer.h" + +// DLU Scripts +#include "DLUVanityTeleportingObject.h" + +// AM Scripts +#include "AmConsoleTeleportServer.h" +#include "RandomSpawnerFin.h" +#include "RandomSpawnerPit.h" +#include "RandomSpawnerStr.h" +#include "RandomSpawnerZip.h" +#include "AmDarklingMech.h" +#include "AmBridge.h" +#include "AmDrawBridge.h" +#include "AmShieldGenerator.h" +#include "AmShieldGeneratorQuickbuild.h" +#include "AmDropshipComputer.h" +#include "AmScrollReaderServer.h" +#include "AmTemplateSkillVolume.h" +#include "EnemyNjBuff.h" +#include "AmSkeletonEngineer.h" +#include "AmSkullkinDrill.h" +#include "AmSkullkinDrillStand.h" +#include "AmSkullkinTower.h" +#include "AmDarklingDragon.h" +#include "AmBlueX.h" +#include "AmTeapotServer.h" +#include "WanderingVendor.h" + +// NJ Scripts +#include "NjGarmadonCelebration.h" +#include "NjWuNPC.h" +#include "NjScrollChestServer.h" +#include "EnemySkeletonSpawner.h" +#include "NjRailSwitch.h" +#include "NjRailPostServer.h" +#include "NjRailActivatorsServer.h" +#include "NjColeNPC.h" +#include "NjNPCMissionSpinjitzuServer.h" +#include "NjJayMissionItems.h" +#include "FallingTile.h" +#include "ImaginationShrineServer.h" +#include "Lieutenant.h" +#include "RainOfArrows.h" +#include "NjIceRailActivator.h" +#include "CavePrisonCage.h" +#include "NjMonastryBossInstance.h" +#include "CatapultBouncerServer.h" +#include "CatapultBaseServer.h" +#include "NjhubLavaPlayerDeathTrigger.h" +#include "MonCoreNookDoors.h" +#include "MonCoreSmashableDoors.h" +#include "FlameJetServer.h" +#include "BurningTile.h" +#include "NjEarthDragonPetServer.h" +#include "NjEarthPetServer.h" +#include "NjDragonEmblemChestServer.h" +#include "NjNyaMissionitems.h" + +// Scripted equipment +#include "AnvilOfArmor.h" +#include "CauldronOfLife.h" +#include "FountainOfImagination.h" +#include "Sunflower.h" +#include "BootyDigServer.h" +#include "PersonalFortress.h" +#include "PropertyDevice.h" +#include "ImaginationBackpackHealServer.h" +#include "LegoDieRoll.h" +#include "BuccaneerValiantShip.h" +#include "GemPack.h" +#include "ShardArmor.h" +#include "TeslaPack.h" +#include "StunImmunity.h" + +// Survival scripts +#include "AgSurvivalStromling.h" +#include "AgSurvivalMech.h" +#include "AgSurvivalSpiderling.h" + +// Frostburgh Scripts +#include "RockHydrantBroken.h" +#include "WhFans.h" + +// WBL scripts +#include "WblGenericZone.h" + +// Alpha Scripts +#include "TriggerGas.h" +#include "ActNinjaSensei.h" + +// pickups +#include "SpecialCoinSpawner.h" +#include "SpecialPowerupSpawner.h" +#include "SpecialSpeedBuffSpawner.h" + +// Wild Scripts +#include "WildAndScared.h" +#include "WildGfGlowbug.h" +#include "WildAmbientCrab.h" +#include "WildPants.h" +#include "WildNinjaStudent.h" +#include "WildNinjaSensei.h" +#include "WildNinjaBricks.h" +#include "VisToggleNotifierServer.h" +#include "LupGenericInteract.h" +#include "WblRobotCitizen.h" +#include "CppScripts.h" + +namespace { + // This is in the translation unit instead of the header to prevent wierd linker errors + InvalidScript* const InvalidToReturnOld = new InvalidScript(); + std::map m_ScriptsOld; +}; + +CppScripts::Script* const CppScriptsOld::GetScript(Entity* parent, const std::string& scriptName) { + auto itr = m_ScriptsOld.find(scriptName); + if (itr != m_ScriptsOld.end()) { + return itr->second; + } + + CppScripts::Script* script = InvalidToReturnOld; + + //VE / AG: + if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua") + script = new AgShipPlayerDeathTrigger(); + else if (scriptName == "scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua") + script = new NpcNpSpacemanBob(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua") // Broken, will (sometimes) display all animations at once on initial login + script = new AgSpaceStuff(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua") + script = new AgShipPlayerShockServer(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua") + script = new AgImagSmashable(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua") + script = new StoryBoxInteractServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_BINOCULARS.lua") + script = new Binoculars(); + else if (scriptName == "scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua") + script = new AllCrateChicken(); + else if (scriptName == "scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua") + script = new RockHydrantSmashable(); // Broken? + else if (scriptName == "scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua") + script = new SsModularBuildServer(); + else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua") + script = new ZoneAgProperty(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_POI_MISSION.lua") + script = new InvalidScript(); // this is done in Entity.cpp, not needed for our implementation + else if (scriptName == "scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua") + script = new TouchMissionUpdateServer(); + else if (scriptName == "scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua") + script = new ActSharkPlayerDeathTrigger(); + else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua") + script = new BaseEnemyMech(); + else if (scriptName == "scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua") + script = new ZoneAgSurvival(); + else if (scriptName == "scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua") + script = new AgSurvivalBuffStation(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_BUS_DOOR.lua") + script = new AgBusDoor(); + else if (scriptName == "scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua") + script = new MaestromExtracticatorServer(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua") + script = new AgCagedBricksServer(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua") + script = new NpcWispServer(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua") + script = new NpcEpsilonServer(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_TURRET.lua" || scriptName == "scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua") + script = new AgTurret(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua") + script = new AgLaserSensorServer(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua") + script = new AgMonumentLaserServer(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_FANS.lua") + script = new AgFans(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua") + script = new AgMonumentBirds(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua") + script = new RemoveRentalGear(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua") + script = new NpcNjAssistantServer(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua") + script = new AgSalutingNpcs(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua") + script = new AgJetEffectServer(); + else if (scriptName == "scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua") + script = new BossSpiderQueenEnemyServer(); + else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua") + script = new EnemySpiderSpawner(); + else if (scriptName == "scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua") + script = new EnemySpiderSpawner(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_QB_Elevator.lua") + script = new AgQbElevator(); + else if (scriptName == "scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua") + script = new AgPropGuard(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua") + script = new AgBugsprayer(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua") + script = new NpcAgCourseStarter(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua") + script = new AgMonumentRaceGoal(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua") + script = new AgMonumentRaceCancel(); + else if (scriptName == "scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua") + script = new ZoneAgSpiderQueen(); + else if (scriptName == "scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua") + script = new SpiderBossTreasureChestServer(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua") + script = new NpcCowboyServer(); + else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua") + script = new ZoneAgMedProperty(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua") + script = new AgStromlingProperty(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua") + script = new BaseEnemyMech(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua") + script = new AgDarkSpiderling(); + else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua") + script = new AgPropguards(); + else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua") + script = new PropertyFXDamage(); + else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua") + script = new NpcPirateServer(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua") + script = new AgPicnicBlanket(); + else if (scriptName == "scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua") + script = new PropertyBankInteract(); + else if (scriptName == "scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua") + script = new VeMech(); + else if (scriptName == "scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua") + script = new VeMissionConsole(); + else if (scriptName == "scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua") + script = new VeEpsilonServer(); + // Win32 thinks this if chain is too long, let's cut it up and serve it as a three course meal + //NS: + if (scriptName == "scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua") + script = new NsModularBuild(); + else if (scriptName == "scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua") + script = new NsGetFactionMissionServer(); + else if (scriptName == "scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua") + script = new NsQbImaginationStatue(); + else if (scriptName == "scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua") + script = new NsConcertChoiceBuildManager(); + else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua") + script = new NsConcertChoiceBuild(); + else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua") + script = new NsConcertQuickBuild(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua") + script = new AgStagePlatforms(); + else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua") + script = new NsConcertInstrument(); + else if (scriptName == "scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua") + script = new NsJohnnyMissionServer(); + else if (scriptName == "scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua") + script = new StinkyFishTarget(); + else if (scriptName == "scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua") + script = new ZoneNsProperty(); + else if (scriptName == "scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua") + script = new ZoneNsMedProperty(); + else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua") + script = new NsTokenConsoleServer(); + else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua") + script = new NsLupTeleport(); + else if (scriptName == "scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua") + script = new ZoneNsWaves(); + else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua") + script = new WaveBossHammerling(); + else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua") + script = new WaveBossApe(); + else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua") + script = new WaveBossSpiderling(); + else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua") + script = new WaveBossHorsemen(); + else if (scriptName == "scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua") + script = new MinigameTreasureChestServer(); + else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua") + script = new NsLegoClubDoor(); + else if (scriptName == "scripts/ai/NS/L_CL_RING.lua") + script = new ClRing(); + else if (scriptName == "scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua") + script = new WildAmbients(); + else if (scriptName == "scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua") + script = new PropertyDeathPlane(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua") + script = new QbSpawner(); + else if (scriptName == "scripts\\ai\\AG\\L_AG_QB_Wall.lua") + script = new AgQbWall(); + + //GF: + else if (scriptName == "scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua") + script = new GfTikiTorch(); + else if (scriptName == "scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua") + script = new GfCampfire(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_ORGAN.lua") + script = new GfOrgan(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_BANANA.lua") + script = new GfBanana(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua") + script = new GfBananaCluster(); + else if (scriptName == "scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua") + script = new GfJailkeepMission(); + else if (scriptName == "scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua") + script = new TriggerAmbush(); + else if (scriptName == "scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua") + script = new GfCaptainsCannon(); + else if (scriptName == "scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua") + script = new MastTeleport(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua") + script = new GfJailWalls(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua") + script = new QbEnemyStunner(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua") + script = new PetDigBuild(); // Technically also used once in AG + else if (scriptName == "scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua") + script = new SpawnLionServer(); + else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua") + script = new BaseEnemyApe(); + else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua") + script = new GfApeSmashingQB(); + else if (scriptName == "scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua") + script = new ZoneGfProperty(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_ARCHWAY.lua") + script = new GfArchway(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua") + script = new GfMaelstromGeyser(); + else if (scriptName == "scripts\\ai\\GF\\L_PIRATE_REP.lua") + script = new PirateRep(); + else if (scriptName == "scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua") + script = new GfParrotCrash(); + + // SG + else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua") + script = new SGCannon(); + else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua") + script = new ZoneSGServer(); + + //PR: + else if (scriptName == "scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua") + script = new PrWhistle(); + if (scriptName == "scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua") + script = new PrSeagullFly(); + else if (scriptName == "scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua") + script = new HydrantSmashable(); + else if (scriptName == "scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua") + script = new HydrantBroken(); + else if (scriptName == "scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua" || scriptName == "scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua") + script = new PetDigServer(); + else if (scriptName == "scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua") + script = new CrabServer(); + else if (scriptName == "scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua") + script = new PetFromDigServer(); + else if (scriptName == "scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua") + script = new PetFromObjectServer(); + else if (scriptName == "scripts\\02_server\\Pets\\L_DAMAGING_PET.lua") + script = new DamagingPets(); + else if (scriptName == "scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua") + script = new SpawnGryphonServer(); + + //FV Scripts: + else if (scriptName == "scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua") + script = new FvCandle(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua") + script = new EnemyRoninSpawner(); + else if (scriptName == "scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua") + script = new FvMaelstromCavalry(); + else if (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua") + script = new ActNinjaTurret(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua") + script = new FvHorsemenTrigger(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua") + script = new FvFlyingCreviceDragon(); + else if (scriptName == "scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua") + script = new FvMaelstromDragon(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua") + script = new FvDragonSmashingGolemQb(); + else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua") + script = new TreasureChestDragonServer(); + else if (scriptName == "scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua") + script = new InstanceExitTransferPlayerToLastNonInstance(); + else if (scriptName == "scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua") + script = new FvFreeGfNinjas(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua") + script = new FvPandaSpawnerServer(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua") + script = new FvPandaServer(); + else if (scriptName == "scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua") + script = new ZoneFvProperty(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua") + script = new FvBrickPuzzleServer(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua") + script = new FvConsoleLeftQuickbuild(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua") + script = new FvConsoleRightQuickbuild(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua") + script = new FvFacilityBrick(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua") + script = new FvFacilityPipes(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua") + script = new ImgBrickConsoleQB(); + else if (scriptName == "scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua") + script = new ActParadoxPipeFix(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua") + script = new FvNinjaGuard(); + else if (scriptName == "scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua") + script = new FvPassThroughWall(); + else if (scriptName == "scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua") + script = new FvBounceOverWall(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua") + script = new FvFong(); + else if (scriptName == "scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua") + script = new FvMaelstromGeyser(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua") + script = new RaceShipLapColumnsServer(); + + // yes we know the lap numbers dont match the file name or anim. thats what they desgined it as. + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua") + script = new FvRaceDragon("lap_01", 2); + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua") + script = new FvRaceDragon("lap_02", 0); + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua") + script = new FvRaceDragon("lap_03", 1); + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua") + script = new FvRacePillarABCServer(); + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua") + script = new FvRacePillarDServer(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua") + script = new RaceFireballs(); + + + //Misc: + if (scriptName == "scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua") + script = new ExplodingAsset(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua") + script = new WishingWellServer(); + else if (scriptName == "scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua") + script = new ActPlayerDeathTrigger(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua") + script = new GrowingFlower(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua") + script = new TokenConsoleServer(); + else if (scriptName == "scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua") + script = new BaseFootRaceManager(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua") + script = new PropertyPlatform(); + else if (scriptName == "scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua") + script = new VeBricksampleServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua") + script = new MailBoxServer(); + else if (scriptName == "scripts\\ai\\ACT\\L_ACT_MINE.lua") + script = new ActMine(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua") + script = new WanderingVendor(); + + //Racing: + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua") + script = new RaceImagineCrateServer(); + else if (scriptName == "scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua") + script = new ActVehicleDeathTrigger(); + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua") + script = new RaceImaginePowerup(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua") + script = new RaceMaelstromGeiser(); + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua") + script = new FvRaceSmashEggImagineServer(); + else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua") + script = new FvRacingColumns(); + else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua") + script = new RaceSmashServer(); + + //NT: + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua") + script = new NtSentinelWalkwayServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua") + script = new NtParadoxTeleServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua") + script = new NtDarkitectRevealServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua") + script = new BankInteractServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua") + script = new NtVentureSpeedPadServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua") + script = new NtVentureCannonServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua") + script = new NtCombatChallengeServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua") + script = new NtCombatChallengeDummy(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua") + script = new NtCombatChallengeExplodingDummy(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua") + script = new BaseInteractDropLootServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua") + script = new NtAssemblyTubeServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua") + script = new NtParadoxPanelServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua") + script = new NtImagBeamBuffer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua") + script = new NtBeamImaginationCollectors(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua") + script = new NtDirtCloudServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua") + script = new NtConsoleTeleportServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua") + script = new SpawnStegoServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua") + script = new SpawnSaberCatServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua") + script = new SpawnShrakeServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua") + script = new NtDukeServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua") + script = new NtHaelServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua") + script = new NtFactionSpyServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua") + script = new NtOverbuildServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua") + script = new NtVandaServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua") + script = new ForceVolumeServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua") + script = new FrictionVolumeServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua") + script = new NtXRayServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua") + script = new NtSleepingGuard(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua") + script = new NTImagimeterVisibility(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua") + script = new NTPipeVisibilityServer(); + else if (scriptName == "scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua") + script = new MinigameBlueMark(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua") + script = new NtNaomiBreadcrumbServer(); + else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua") + script = new NTNaomiDirtServer(); + + //AM: + if (scriptName == "scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua") + script = new AmConsoleTeleportServer(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua") + script = new RandomSpawnerFin(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua") + script = new RandomSpawnerPit(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua") + script = new RandomSpawnerStr(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua") + script = new RandomSpawnerZip(); + else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua") + script = new AmDarklingMech(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_BRIDGE.lua") + script = new AmBridge(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua") + script = new AmDrawBridge(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua") + script = new AmShieldGenerator(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua") + script = new AmShieldGeneratorQuickbuild(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua") + script = new AmDropshipComputer(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua") + script = new AmScrollReaderServer(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua") + script = new AmTemplateSkillVolume(); + else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua") + script = new EnemyNjBuff(); + else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua") + script = new AmSkeletonEngineer(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua") + script = new AmSkullkinDrill(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua") + script = new AmSkullkinDrillStand(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua") + script = new AmSkullkinTower(); + else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua") + script = new AmDarklingDragon(); + else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_DRAGON.lua") + script = new AmDarklingDragon(); + else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua") + script = new BaseEnemyApe(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_BLUE_X.lua") + script = new AmBlueX(); + else if (scriptName == "scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua") + script = new AmTeapotServer(); + + // Ninjago + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua") + script = new NjGarmadonCelebration(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua") + script = new NjWuNPC(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua") + script = new NjScrollChestServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua") + script = new NjColeNPC(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua") + script = new NjJayMissionItems(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua") + script = new NjNPCMissionSpinjitzuServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua") + script = new EnemySkeletonSpawner(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua") + script = new NjRailSwitch(); + else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua") + script = new NjRailActivatorsServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua") + script = new NjRailPostServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua") + script = new NjIceRailActivator(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua") + script = new FallingTile(); + else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua") + script = new EnemyNjBuff(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua") + script = new ImaginationShrineServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua") + script = new Lieutenant(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua") + script = new RainOfArrows(); + if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua") + script = new CavePrisonCage(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua") + script = new NjMonastryBossInstance(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua") + script = new CatapultBouncerServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua") + script = new CatapultBaseServer(); + else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua") + script = new NjhubLavaPlayerDeathTrigger(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua") + script = new MonCoreNookDoors(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua") + script = new MonCoreSmashableDoors(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua") + script = new FlameJetServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua") + script = new BurningTile(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua") + script = new NjEarthDragonPetServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua") + script = new NjEarthPetServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua") + script = new NjDragonEmblemChestServer(); + else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua") + script = new NjNyaMissionitems(); + + //DLU: + else if (scriptName == "scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua") + script = new DLUVanityTeleportingObject(); + + // Survival minigame + else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua") + script = new AgSurvivalStromling(); + else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua") + script = new AgSurvivalMech(); + else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua") + script = new AgSurvivalSpiderling(); + + // Scripted equipment + else if (scriptName == "scripts\\EquipmentScripts\\Sunflower.lua") + script = new Sunflower(); + else if (scriptName == "scripts/EquipmentScripts/AnvilOfArmor.lua") + script = new AnvilOfArmor(); + else if (scriptName == "scripts/EquipmentScripts/FountainOfImagination.lua") + script = new FountainOfImagination(); + else if (scriptName == "scripts/EquipmentScripts/CauldronOfLife.lua") + script = new CauldronOfLife(); + else if (scriptName == "scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua") + script = new BootyDigServer(); + else if (scriptName == "scripts\\EquipmentScripts\\PersonalFortress.lua") + script = new PersonalFortress(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua") + script = new PropertyDevice(); + else if (scriptName == "scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua") + script = new ImaginationBackpackHealServer(); + else if (scriptName == "scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua") + script = new LegoDieRoll(); + else if (scriptName == "scripts\\EquipmentScripts\\BuccaneerValiantShip.lua") + script = new BuccaneerValiantShip(); + else if (scriptName == "scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua") + script = new FireFirstSkillonStartup(); + else if (scriptName == "scripts\\equipmenttriggers\\gempack.lua") + script = new GemPack(); + else if (scriptName == "scripts\\equipmenttriggers\\shardarmor.lua") + script = new ShardArmor(); + else if (scriptName == "scripts\\equipmenttriggers\\coilbackpack.lua") + script = new TeslaPack(); + else if (scriptName == "scripts\\EquipmentScripts\\stunImmunity.lua") + script = new StunImmunity(); + + // FB + else if (scriptName == "scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua") + script = new RockHydrantBroken(); + else if (scriptName == "scripts\\ai\\NS\\L_NS_WH_FANS.lua") + script = new WhFans(); + + // WBL + else if (scriptName == "scripts\\zone\\LUPs\\WBL_generic_zone.lua") + script = new WblGenericZone(); + + // Alpha + if (scriptName == "scripts\\ai\\FV\\L_TRIGGER_GAS.lua") + script = new TriggerGas(); + else if (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua") + script = new ActNinjaSensei(); + + // pickups + if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(1); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_GOLD-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(10000); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(100); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(10); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(100000); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(1000); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(25); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(250000); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua") + script = new SpecialCoinSpawner(2500); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua") + script = new SpecialPowerupSpawner(13); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua") + script = new SpecialPowerupSpawner(129); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua") + script = new SpecialPowerupSpawner(5); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua") + script = new SpecialPowerupSpawner(747); + else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua") + script = new SpecialSpeedBuffSpawner(); + + // Wild + if (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_RAT.lua" || scriptName == "scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua") + script = new WildAndScared(); + else if (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua") + script = new WildGfGlowbug(); + else if (scriptName == "scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua") + script = new WildAmbientCrab(); + else if (scriptName == "scripts\\ai\\WILD\\L_WILD_PANTS.lua") + script = new WildPants(); + else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua") + script = new WildNinjaBricks(); + else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua") + script = new WildNinjaStudent(); + else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua") + script = new WildNinjaSensei(); + else if (scriptName == "scripts\\ai\\WILD\\L_LUP_generic_interact.lua") + script = new LupGenericInteract(); + else if (scriptName.rfind("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizen", 0) == 0) + script = new WblRobotCitizen(); + + // handle invalid script reporting if the path is greater than zero and it's not an ignored script + // information not really needed for sys admins but is for developers + else if (script == InvalidToReturnOld) { + if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || + (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua") || + (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || + (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") || + (scriptName == "scripts\\empty.lua") + )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); + } + + m_ScriptsOld[scriptName] = script; + return script; +} diff --git a/tests/dGameTests/dScriptsTests/CppScriptsOld.h b/tests/dGameTests/dScriptsTests/CppScriptsOld.h new file mode 100644 index 00000000..1e189e44 --- /dev/null +++ b/tests/dGameTests/dScriptsTests/CppScriptsOld.h @@ -0,0 +1,16 @@ +#ifndef CPPSCRIPTSOLD_H +#define CPPSCRIPTSOLD_H + +#include + +class Entity; + +namespace CppScripts { + class Script; +}; + +namespace CppScriptsOld { + CppScripts::Script* const GetScript(Entity* entity, const std::string& scriptName); +}; + +#endif //!CPPSCRIPTSOLD_H diff --git a/tests/dGameTests/dScriptsTests/dScriptsTests.cpp b/tests/dGameTests/dScriptsTests/dScriptsTests.cpp new file mode 100644 index 00000000..a07252e7 --- /dev/null +++ b/tests/dGameTests/dScriptsTests/dScriptsTests.cpp @@ -0,0 +1,941 @@ +#include +#include "dCommonVars.h" +#include "eCinematicEvent.h" +#include "CppScripts.h" +#include "CppScriptsOld.h" +#include "Entity.h" +#include "EntityInfo.h" +#include "LupGenericInteract.h" +#include "InvalidScript.h" + +//VE / AG scripts: +#include "AgShipPlayerDeathTrigger.h" +#include "AgShipPlayerShockServer.h" +#include "AgSpaceStuff.h" +#include "AgImagSmashable.h" +#include "NpcNpSpacemanBob.h" +#include "StoryBoxInteractServer.h" +#include "Binoculars.h" +#include "AllCrateChicken.h" +#include "SsModularBuildServer.h" +#include "ZoneAgProperty.h" +#include "TouchMissionUpdateServer.h" +#include "ActSharkPlayerDeathTrigger.h" +#include "BaseEnemyMech.h" +#include "ZoneAgSurvival.h" +#include "AgBusDoor.h" +#include "MaestromExtracticatorServer.h" +#include "NpcWispServer.h" +#include "AgCagedBricksServer.h" +#include "NpcEpsilonServer.h" +#include "AgTurret.h" +#include "AgMonumentBirds.h" +#include "AgLaserSensorServer.h" +#include "AgMonumentLaserServer.h" +#include "AgFans.h" +#include "RemoveRentalGear.h" +#include "NpcNjAssistantServer.h" +#include "EnemySpiderSpawner.h" +#include "AgQbElevator.h" +#include "AgPropGuard.h" +#include "AgBugsprayer.h" +#include "WishingWellServer.h" +#include "NpcAgCourseStarter.h" +#include "AgMonumentRaceGoal.h" +#include "ZoneAgSpiderQueen.h" +#include "SpiderBossTreasureChestServer.h" +#include "NpcCowboyServer.h" +#include "ZoneAgMedProperty.h" +#include "AgStromlingProperty.h" +#include "AgDarkSpiderling.h" +#include "PropertyFXDamage.h" +#include "AgPropguards.h" +#include "NpcPirateServer.h" +#include "AgPicnicBlanket.h" +#include "AgMonumentRaceCancel.h" +#include "VeBricksampleServer.h" +#include "PropertyBankInteract.h" +#include "VeMech.h" +#include "VeMissionConsole.h" +#include "VeEpsilonServer.h" +#include "AgSurvivalBuffStation.h" +#include "QbSpawner.h" +#include "AgQbWall.h" + +// NS Scripts +#include "NsModularBuild.h" +#include "NsGetFactionMissionServer.h" +#include "NsQbImaginationStatue.h" +#include "NsConcertChoiceBuildManager.h" +#include "NsConcertChoiceBuild.h" +#include "NsConcertQuickBuild.h" +#include "AgStagePlatforms.h" +#include "NsConcertInstrument.h" +#include "NsJohnnyMissionServer.h" +#include "StinkyFishTarget.h" +#include "ZoneNsProperty.h" +#include "ZoneNsMedProperty.h" +#include "NsTokenConsoleServer.h" +#include "NsLupTeleport.h" +#include "ZoneNsWaves.h" +#include "WaveBossHammerling.h" +#include "WaveBossApe.h" +#include "WaveBossSpiderling.h" +#include "WaveBossHorsemen.h" +#include "MinigameTreasureChestServer.h" +#include "NsLegoClubDoor.h" +#include "ClRing.h" +#include "WildAmbients.h" +#include "PropertyDeathPlane.h" + +// PR Scripts +#include "PrWhistle.h" +#include "PrSeagullFly.h" +#include "HydrantBroken.h" +#include "HydrantSmashable.h" +#include "PetDigServer.h" +#include "PetFromDigServer.h" +#include "PetFromObjectServer.h" +#include "DamagingPets.h" +#include "SpawnGryphonServer.h" + +// GF Scripts +#include "GfTikiTorch.h" +#include "GfCampfire.h" +#include "GfOrgan.h" +#include "GfBanana.h" +#include "GfBananaCluster.h" +#include "GfJailkeepMission.h" +#include "TriggerAmbush.h" +#include "GfCaptainsCannon.h" +#include "MastTeleport.h" +#include "GfJailWalls.h" +#include "QbEnemyStunner.h" +#include "PetDigBuild.h" +#include "SpawnLionServer.h" +#include "BaseEnemyApe.h" +#include "GfApeSmashingQB.h" +#include "ZoneGfProperty.h" +#include "GfArchway.h" +#include "GfMaelstromGeyser.h" +#include "PirateRep.h" +#include "GfParrotCrash.h" + +// SG Scripts +#include "SGCannon.h" +#include "ZoneSGServer.h" + +// FV Scripts +#include "FvCandle.h" +#include "EnemyRoninSpawner.h" +#include "ActNinjaTurret.h" +#include "FvMaelstromCavalry.h" +#include "FvHorsemenTrigger.h" +#include "FvFlyingCreviceDragon.h" +#include "FvMaelstromDragon.h" +#include "FvDragonSmashingGolemQb.h" +#include "TreasureChestDragonServer.h" +#include "InstanceExitTransferPlayerToLastNonInstance.h" +#include "FvFreeGfNinjas.h" +#include "FvPandaServer.h" +#include "FvPandaSpawnerServer.h" +#include "ZoneFvProperty.h" +#include "FvBrickPuzzleServer.h" +#include "FvConsoleLeftQuickbuild.h" +#include "FvConsoleRightQuickbuild.h" +#include "FvFacilityBrick.h" +#include "FvFacilityPipes.h" +#include "ImgBrickConsoleQB.h" +#include "ActParadoxPipeFix.h" +#include "FvNinjaGuard.h" +#include "FvPassThroughWall.h" +#include "FvBounceOverWall.h" +#include "FvFong.h" +#include "FvMaelstromGeyser.h" +#include "FvRaceDragon.h" +#include "FvRacePillarABCServer.h" +#include "FvRacePillarDServer.h" +#include "RaceFireballs.h" +#include "RaceShipLapColumnsServer.h" + +// FB Scripts +#include "AgJetEffectServer.h" +#include "AgSalutingNpcs.h" +#include "BossSpiderQueenEnemyServer.h" +#include "RockHydrantSmashable.h" + +// Misc Scripts +#include "ExplodingAsset.h" +#include "ActPlayerDeathTrigger.h" +#include "CrabServer.h" +#include "GrowingFlower.h" +#include "BaseFootRaceManager.h" +#include "PropertyPlatform.h" +#include "MailBoxServer.h" +#include "ActMine.h" +#include "FireFirstSkillonStartup.h" + +// Racing Scripts +#include "RaceImagineCrateServer.h" +#include "ActVehicleDeathTrigger.h" +#include "RaceImaginePowerup.h" +#include "RaceMaelstromGeiser.h" +#include "FvRaceSmashEggImagineServer.h" +#include "RaceSmashServer.h" +#include "FvRacingColumns.h" + +// NT Scripts +#include "NtSentinelWalkwayServer.h" +#include "NtParadoxTeleServer.h" +#include "NtDarkitectRevealServer.h" +#include "BankInteractServer.h" +#include "NtVentureSpeedPadServer.h" +#include "NtVentureCannonServer.h" +#include "NtCombatChallengeServer.h" +#include "NtCombatChallengeDummy.h" +#include "NtCombatChallengeExplodingDummy.h" +#include "BaseInteractDropLootServer.h" +#include "NtAssemblyTubeServer.h" +#include "NtParadoxPanelServer.h" +#include "TokenConsoleServer.h" +#include "NtImagBeamBuffer.h" +#include "NtBeamImaginationCollectors.h" +#include "NtDirtCloudServer.h" +#include "NtConsoleTeleportServer.h" +#include "SpawnShrakeServer.h" +#include "SpawnSaberCatServer.h" +#include "SpawnStegoServer.h" +#include "NtDukeServer.h" +#include "NtHaelServer.h" +#include "NtOverbuildServer.h" +#include "NtVandaServer.h" +#include "ForceVolumeServer.h" +#include "NtXRayServer.h" +#include "NtSleepingGuard.h" +#include "NtImagimeterVisibility.h" +#include "FrictionVolumeServer.h" +#include "NTPipeVisibilityServer.h" +#include "NTNaomiDirtServer.h" +#include "MinigameBlueMark.h" +#include "NtNaomiBreadcrumbServer.h" + +// DLU Scripts +#include "DLUVanityTeleportingObject.h" + +// AM Scripts +#include "AmConsoleTeleportServer.h" +#include "RandomSpawnerFin.h" +#include "RandomSpawnerPit.h" +#include "RandomSpawnerStr.h" +#include "RandomSpawnerZip.h" +#include "AmDarklingMech.h" +#include "AmBridge.h" +#include "AmDrawBridge.h" +#include "AmShieldGenerator.h" +#include "AmShieldGeneratorQuickbuild.h" +#include "AmDropshipComputer.h" +#include "AmScrollReaderServer.h" +#include "AmTemplateSkillVolume.h" +#include "EnemyNjBuff.h" +#include "AmSkeletonEngineer.h" +#include "AmSkullkinDrill.h" +#include "AmSkullkinDrillStand.h" +#include "AmSkullkinTower.h" +#include "AmDarklingDragon.h" +#include "AmBlueX.h" +#include "AmTeapotServer.h" +#include "WanderingVendor.h" + +// NJ Scripts +#include "NjGarmadonCelebration.h" +#include "NjWuNPC.h" +#include "NjScrollChestServer.h" +#include "EnemySkeletonSpawner.h" +#include "NjRailSwitch.h" +#include "NjRailPostServer.h" +#include "NjRailActivatorsServer.h" +#include "NjColeNPC.h" +#include "NjNPCMissionSpinjitzuServer.h" +#include "NjJayMissionItems.h" +#include "FallingTile.h" +#include "ImaginationShrineServer.h" +#include "Lieutenant.h" +#include "RainOfArrows.h" +#include "NjIceRailActivator.h" +#include "CavePrisonCage.h" +#include "NjMonastryBossInstance.h" +#include "CatapultBouncerServer.h" +#include "CatapultBaseServer.h" +#include "NjhubLavaPlayerDeathTrigger.h" +#include "MonCoreNookDoors.h" +#include "MonCoreSmashableDoors.h" +#include "FlameJetServer.h" +#include "BurningTile.h" +#include "NjEarthDragonPetServer.h" +#include "NjEarthPetServer.h" +#include "NjDragonEmblemChestServer.h" +#include "NjNyaMissionitems.h" + +// Scripted equipment +#include "AnvilOfArmor.h" +#include "CauldronOfLife.h" +#include "FountainOfImagination.h" +#include "Sunflower.h" +#include "BootyDigServer.h" +#include "PersonalFortress.h" +#include "PropertyDevice.h" +#include "ImaginationBackpackHealServer.h" +#include "LegoDieRoll.h" +#include "BuccaneerValiantShip.h" +#include "GemPack.h" +#include "ShardArmor.h" +#include "TeslaPack.h" +#include "StunImmunity.h" + +// Survival scripts +#include "AgSurvivalStromling.h" +#include "AgSurvivalMech.h" +#include "AgSurvivalSpiderling.h" + +// Frostburgh Scripts +#include "RockHydrantBroken.h" +#include "WhFans.h" + +// WBL scripts +#include "WblGenericZone.h" + +// Alpha Scripts +#include "TriggerGas.h" +#include "ActNinjaSensei.h" + +// pickups +#include "SpecialCoinSpawner.h" +#include "SpecialPowerupSpawner.h" +#include "SpecialSpeedBuffSpawner.h" + +// Wild Scripts +#include "WildAndScared.h" +#include "WildGfGlowbug.h" +#include "WildAmbientCrab.h" +#include "WildPants.h" +#include "WildNinjaStudent.h" +#include "WildNinjaSensei.h" +#include "WildNinjaBricks.h" +#include "VisToggleNotifierServer.h" +#include "LupGenericInteract.h" +#include "WblRobotCitizen.h" + +#define CHECK_SCRIPT(scriptName, scriptType) do { \ + auto* script = dynamic_cast(CppScripts::GetScript(&entity, scriptName)); \ + auto* oldScript = dynamic_cast(CppScriptsOld::GetScript(&entity, scriptName)); \ + ASSERT_NE(script, nullptr); \ + ASSERT_NE(oldScript, nullptr); \ +} while (0) + +#define CHECK_CACHE(scriptName) do { \ + ASSERT_EQ(CppScripts::GetScript(&entity, scriptName), CppScripts::GetScript(&entity, scriptName)); \ +} while (0) + +TEST(dScriptsTests, OldCppScriptsCheck) { + Entity entity(LWOOBJID_EMPTY, EntityInfo{}); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_LUP_generic_interact.lua", LupGenericInteract); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua", AgShipPlayerDeathTrigger); + CHECK_SCRIPT("scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua", NpcNpSpacemanBob); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua", AgSpaceStuff); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua", AgShipPlayerShockServer); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua", AgImagSmashable); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua", StoryBoxInteractServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_BINOCULARS.lua", Binoculars); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua", AllCrateChicken); + CHECK_SCRIPT("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua", RockHydrantSmashable); + CHECK_SCRIPT("scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua", SsModularBuildServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua", ZoneAgProperty); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_POI_MISSION.lua", InvalidScript); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua", TouchMissionUpdateServer); + CHECK_SCRIPT("scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua", ActSharkPlayerDeathTrigger); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua", BaseEnemyMech); + CHECK_SCRIPT("scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua", ZoneAgSurvival); + CHECK_SCRIPT("scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua", AgSurvivalBuffStation); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_BUS_DOOR.lua", AgBusDoor); + CHECK_SCRIPT("scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua", MaestromExtracticatorServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua", AgCagedBricksServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua", NpcWispServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua", NpcEpsilonServer); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_TURRET.lua", AgTurret); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua", AgTurret); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua", AgLaserSensorServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua", AgMonumentLaserServer); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_FANS.lua", AgFans); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua", AgMonumentBirds); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua", RemoveRentalGear); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua", NpcNjAssistantServer); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua", AgSalutingNpcs); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua", AgJetEffectServer); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua", BossSpiderQueenEnemyServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua", EnemySpiderSpawner); + CHECK_SCRIPT("scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua", EnemySpiderSpawner); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_QB_Elevator.lua", AgQbElevator); + CHECK_SCRIPT("scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua", AgPropGuard); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua", AgBugsprayer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua", NpcAgCourseStarter); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua", AgMonumentRaceGoal); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua", AgMonumentRaceCancel); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua", ZoneAgSpiderQueen); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua", SpiderBossTreasureChestServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua", NpcCowboyServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua", ZoneAgMedProperty); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua", AgStromlingProperty); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua", BaseEnemyMech); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua", AgDarkSpiderling); + CHECK_SCRIPT("scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua", AgPropguards); + CHECK_SCRIPT("scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua", PropertyFXDamage); + CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua", NpcPirateServer); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua", AgPicnicBlanket); + CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua", PropertyBankInteract); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua", VeMech); + CHECK_SCRIPT("scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua", VeMissionConsole); + CHECK_SCRIPT("scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua", VeEpsilonServer); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua", NsModularBuild); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua", NsGetFactionMissionServer); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua", NsQbImaginationStatue); + CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua", NsConcertChoiceBuildManager); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua", NsConcertChoiceBuild); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua", NsConcertQuickBuild); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua", AgStagePlatforms); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua", NsConcertInstrument); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua", NsJohnnyMissionServer); + CHECK_SCRIPT("scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua", StinkyFishTarget); + CHECK_SCRIPT("scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua", ZoneNsProperty); + CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua", ZoneNsMedProperty); + CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua", NsTokenConsoleServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua", NsLupTeleport); + CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua", ZoneNsWaves); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua", WaveBossHammerling); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua", WaveBossApe); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua", WaveBossSpiderling); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua", WaveBossHorsemen); + CHECK_SCRIPT("scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua", MinigameTreasureChestServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua", NsLegoClubDoor); + CHECK_SCRIPT("scripts/ai/NS/L_CL_RING.lua", ClRing); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua", WildAmbients); + CHECK_SCRIPT("scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua", PropertyDeathPlane); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua", QbSpawner); + CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_QB_Wall.lua", AgQbWall); + CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua", GfTikiTorch); + CHECK_SCRIPT("scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua", GfCampfire); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_ORGAN.lua", GfOrgan); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_BANANA.lua", GfBanana); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua", GfBananaCluster); + CHECK_SCRIPT("scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua", GfJailkeepMission); + CHECK_SCRIPT("scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua", TriggerAmbush); + CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua", GfCaptainsCannon); + CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua", MastTeleport); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua", GfJailWalls); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua", QbEnemyStunner); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua", PetDigBuild); + CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua", SpawnLionServer); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua", BaseEnemyApe); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua", GfApeSmashingQB); + CHECK_SCRIPT("scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua", ZoneGfProperty); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_ARCHWAY.lua", GfArchway); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua", GfMaelstromGeyser); + CHECK_SCRIPT("scripts\\ai\\GF\\L_PIRATE_REP.lua", PirateRep); + CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua", GfParrotCrash); + CHECK_SCRIPT("scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua", SGCannon); + CHECK_SCRIPT("scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua", ZoneSGServer); + CHECK_SCRIPT("scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua", PrWhistle); + CHECK_SCRIPT("scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua", PrSeagullFly); + CHECK_SCRIPT("scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua", HydrantSmashable); + CHECK_SCRIPT("scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua", HydrantBroken); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua", PetDigServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua", PetDigServer); + CHECK_SCRIPT("scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua", CrabServer); + CHECK_SCRIPT("scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua", PetFromDigServer); + CHECK_SCRIPT("scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua", PetFromObjectServer); + CHECK_SCRIPT("scripts\\02_server\\Pets\\L_DAMAGING_PET.lua", DamagingPets); + CHECK_SCRIPT("scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua", SpawnGryphonServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua", FvCandle); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua", EnemyRoninSpawner); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua", FvMaelstromCavalry); + CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua", ActNinjaTurret); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua", FvHorsemenTrigger); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua", FvFlyingCreviceDragon); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua", FvMaelstromDragon); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua", FvDragonSmashingGolemQb); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua", TreasureChestDragonServer); + CHECK_SCRIPT("scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua", InstanceExitTransferPlayerToLastNonInstance); + CHECK_SCRIPT("scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua", FvFreeGfNinjas); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua", FvPandaSpawnerServer); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua", FvPandaServer); + CHECK_SCRIPT("scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua", ZoneFvProperty); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua", FvBrickPuzzleServer); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua", FvConsoleLeftQuickbuild); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua", FvConsoleRightQuickbuild); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua", FvFacilityBrick); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua", FvFacilityPipes); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua", ImgBrickConsoleQB); + CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua", ActParadoxPipeFix); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua", FvNinjaGuard); + CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua", FvPassThroughWall); + CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua", FvBounceOverWall); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua", FvFong); + CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua", FvMaelstromGeyser); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua", RaceShipLapColumnsServer); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua", FvRaceDragon); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua", FvRaceDragon); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua", FvRaceDragon); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua", FvRacePillarABCServer); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua", FvRacePillarDServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua", RaceFireballs); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua", ExplodingAsset); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua", WishingWellServer); + CHECK_SCRIPT("scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua", ActPlayerDeathTrigger); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua", GrowingFlower); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua", TokenConsoleServer); + CHECK_SCRIPT("scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua", BaseFootRaceManager); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua", PropertyPlatform); + CHECK_SCRIPT("scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua", VeBricksampleServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua", MailBoxServer); + CHECK_SCRIPT("scripts\\ai\\ACT\\L_ACT_MINE.lua", ActMine); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua", WanderingVendor); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua", RaceImagineCrateServer); + CHECK_SCRIPT("scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua", ActVehicleDeathTrigger); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua", RaceImaginePowerup); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua", RaceMaelstromGeiser); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua", FvRaceSmashEggImagineServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua", FvRacingColumns); + CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua", RaceSmashServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua", NtSentinelWalkwayServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua", NtParadoxTeleServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua", NtDarkitectRevealServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua", BankInteractServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua", NtVentureSpeedPadServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua", NtVentureCannonServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua", NtCombatChallengeServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua", NtCombatChallengeDummy); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua", NtCombatChallengeExplodingDummy); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua", BaseInteractDropLootServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua", NtAssemblyTubeServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua", NtParadoxPanelServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua", NtImagBeamBuffer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua", NtBeamImaginationCollectors); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua", NtDirtCloudServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua", NtConsoleTeleportServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua", SpawnStegoServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua", SpawnSaberCatServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua", SpawnShrakeServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua", NtDukeServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua", NtHaelServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua", NtFactionSpyServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua", NtOverbuildServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua", NtVandaServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua", ForceVolumeServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua", FrictionVolumeServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua", NtXRayServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua", NtSleepingGuard); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua", NTImagimeterVisibility); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua", NTPipeVisibilityServer); + CHECK_SCRIPT("scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua", MinigameBlueMark); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua", NtNaomiBreadcrumbServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua", NTNaomiDirtServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua", AmConsoleTeleportServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua", RandomSpawnerFin); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua", RandomSpawnerPit); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua", RandomSpawnerStr); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua", RandomSpawnerZip); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua", AmDarklingMech); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_BRIDGE.lua", AmBridge); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua", AmDrawBridge); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua", AmShieldGenerator); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua", AmShieldGeneratorQuickbuild); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua", AmDropshipComputer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua", AmScrollReaderServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua", AmTemplateSkillVolume); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua", EnemyNjBuff); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua", AmSkeletonEngineer); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua", AmSkullkinDrill); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua", AmSkullkinDrillStand); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua", AmSkullkinTower); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua", AmDarklingDragon); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua", BaseEnemyApe); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_BLUE_X.lua", AmBlueX); + CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua", AmTeapotServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua", NjGarmadonCelebration); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua", NjWuNPC); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua", NjScrollChestServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua", NjColeNPC); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua", NjJayMissionItems); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua", NjNPCMissionSpinjitzuServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua", EnemySkeletonSpawner); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua", NjRailSwitch); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua", NjRailActivatorsServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua", NjRailPostServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua", NjIceRailActivator); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua", FallingTile); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua", EnemyNjBuff); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua", ImaginationShrineServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua", Lieutenant); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua", RainOfArrows); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua", CavePrisonCage); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua", NjMonastryBossInstance); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua", CatapultBouncerServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua", CatapultBaseServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua", NjhubLavaPlayerDeathTrigger); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua", MonCoreNookDoors); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", MonCoreSmashableDoors); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", MonCoreSmashableDoors); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua", FlameJetServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua", BurningTile); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua", NjEarthDragonPetServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua", NjEarthPetServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua", NjDragonEmblemChestServer); + CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua", NjNyaMissionitems); + CHECK_SCRIPT("scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua", DLUVanityTeleportingObject); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua", AgSurvivalStromling); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua", AgSurvivalMech); + CHECK_SCRIPT("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua", AgSurvivalSpiderling); + CHECK_SCRIPT("scripts\\EquipmentScripts\\Sunflower.lua", Sunflower); + CHECK_SCRIPT("scripts/EquipmentScripts/AnvilOfArmor.lua", AnvilOfArmor); + CHECK_SCRIPT("scripts/EquipmentScripts/FountainOfImagination.lua", FountainOfImagination); + CHECK_SCRIPT("scripts/EquipmentScripts/CauldronOfLife.lua", CauldronOfLife); + CHECK_SCRIPT("scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua", BootyDigServer); + CHECK_SCRIPT("scripts\\EquipmentScripts\\PersonalFortress.lua", PersonalFortress); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua", PropertyDevice); + CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua", ImaginationBackpackHealServer); + CHECK_SCRIPT("scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua", LegoDieRoll); + CHECK_SCRIPT("scripts\\EquipmentScripts\\BuccaneerValiantShip.lua", BuccaneerValiantShip); + CHECK_SCRIPT("scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua", FireFirstSkillonStartup); + CHECK_SCRIPT("scripts\\equipmenttriggers\\gempack.lua", GemPack); + CHECK_SCRIPT("scripts\\equipmenttriggers\\shardarmor.lua", ShardArmor); + CHECK_SCRIPT("scripts\\equipmenttriggers\\coilbackpack.lua", TeslaPack); + CHECK_SCRIPT("scripts\\EquipmentScripts\\stunImmunity.lua", StunImmunity); + CHECK_SCRIPT("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua", RockHydrantBroken); + CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_WH_FANS.lua", WhFans); + CHECK_SCRIPT("scripts\\zone\\LUPs\\WBL_generic_zone.lua", WblGenericZone); + CHECK_SCRIPT("scripts\\ai\\FV\\L_TRIGGER_GAS.lua", TriggerGas); + CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua", ActNinjaSensei); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua", SpecialCoinSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua", SpecialPowerupSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua", SpecialPowerupSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua", SpecialPowerupSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua", SpecialPowerupSpawner); + CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua", SpecialSpeedBuffSpawner); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_GF_RAT.lua", WildAndScared); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua", WildAndScared); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua", WildGfGlowbug); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua", WildAmbientCrab); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_PANTS.lua", WildPants); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua", WildNinjaBricks); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua", WildNinjaStudent); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua", WildNinjaSensei); + CHECK_SCRIPT("scripts\\ai\\WILD\\L_LUP_generic_interact.lua", LupGenericInteract); +} + +TEST(dScriptsTests, CacheCheck) { + Entity entity(LWOOBJID_EMPTY, EntityInfo{}); + CHECK_CACHE("scripts\\ai\\WILD\\L_LUP_generic_interact.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua"); + CHECK_CACHE("scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_BINOCULARS.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua"); + CHECK_CACHE("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_POI_MISSION.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua"); + CHECK_CACHE("scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua"); + CHECK_CACHE("scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_BUS_DOOR.lua"); + CHECK_CACHE("scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_TURRET.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_FANS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua"); + CHECK_CACHE("scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_QB_Elevator.lua"); + CHECK_CACHE("scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua"); + CHECK_CACHE("scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua"); + CHECK_CACHE("scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua"); + CHECK_CACHE("scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua"); + CHECK_CACHE("scripts/ai/NS/L_CL_RING.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua"); + CHECK_CACHE("scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\AG\\L_AG_QB_Wall.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_ORGAN.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_BANANA.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua"); + CHECK_CACHE("scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua"); + CHECK_CACHE("scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_ARCHWAY.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_PIRATE_REP.lua"); + CHECK_CACHE("scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua"); + CHECK_CACHE("scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua"); + CHECK_CACHE("scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua"); + CHECK_CACHE("scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua"); + CHECK_CACHE("scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua"); + CHECK_CACHE("scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua"); + CHECK_CACHE("scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Pets\\L_DAMAGING_PET.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua"); + CHECK_CACHE("scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\ACT\\L_ACT_MINE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua"); + CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_BRIDGE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_BLUE_X.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua"); + CHECK_CACHE("scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua"); + CHECK_CACHE("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua"); + CHECK_CACHE("scripts\\EquipmentScripts\\Sunflower.lua"); + CHECK_CACHE("scripts/EquipmentScripts/AnvilOfArmor.lua"); + CHECK_CACHE("scripts/EquipmentScripts/FountainOfImagination.lua"); + CHECK_CACHE("scripts/EquipmentScripts/CauldronOfLife.lua"); + CHECK_CACHE("scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua"); + CHECK_CACHE("scripts\\EquipmentScripts\\PersonalFortress.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua"); + CHECK_CACHE("scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua"); + CHECK_CACHE("scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua"); + CHECK_CACHE("scripts\\EquipmentScripts\\BuccaneerValiantShip.lua"); + CHECK_CACHE("scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua"); + CHECK_CACHE("scripts\\equipmenttriggers\\gempack.lua"); + CHECK_CACHE("scripts\\equipmenttriggers\\shardarmor.lua"); + CHECK_CACHE("scripts\\equipmenttriggers\\coilbackpack.lua"); + CHECK_CACHE("scripts\\EquipmentScripts\\stunImmunity.lua"); + CHECK_CACHE("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua"); + CHECK_CACHE("scripts\\ai\\NS\\L_NS_WH_FANS.lua"); + CHECK_CACHE("scripts\\zone\\LUPs\\WBL_generic_zone.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_TRIGGER_GAS.lua"); + CHECK_CACHE("scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_GF_RAT.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_PANTS.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua"); + CHECK_CACHE("scripts\\ai\\WILD\\L_LUP_generic_interact.lua"); +} From 0e4e1def81e2cfd4f06ebd82e30a8e5058de3ae0 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sun, 12 May 2024 22:53:03 -0700 Subject: [PATCH 03/13] Update names --- tests/dGameTests/dScriptsTests/CppScriptsOld.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp b/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp index f13d766d..45e6e39a 100644 --- a/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp +++ b/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp @@ -330,17 +330,17 @@ namespace { // This is in the translation unit instead of the header to prevent wierd linker errors - InvalidScript* const InvalidToReturnOld = new InvalidScript(); - std::map m_ScriptsOld; + InvalidScript* const InvalidToReturn = new InvalidScript(); + std::map m_Scripts; }; CppScripts::Script* const CppScriptsOld::GetScript(Entity* parent, const std::string& scriptName) { - auto itr = m_ScriptsOld.find(scriptName); - if (itr != m_ScriptsOld.end()) { + auto itr = m_Scripts.find(scriptName); + if (itr != m_Scripts.end()) { return itr->second; } - CppScripts::Script* script = InvalidToReturnOld; + CppScripts::Script* script = InvalidToReturn; //VE / AG: if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua") @@ -977,15 +977,15 @@ CppScripts::Script* const CppScriptsOld::GetScript(Entity* parent, const std::st // handle invalid script reporting if the path is greater than zero and it's not an ignored script // information not really needed for sys admins but is for developers - else if (script == InvalidToReturnOld) { + else if (script == InvalidToReturn) { if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua") || - (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || + (scriptName =="scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") || (scriptName == "scripts\\empty.lua") )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); } - m_ScriptsOld[scriptName] = script; + m_Scripts[scriptName] = script; return script; } From 21f58348fd6259c4e91ff439ba13b95e8c6ba810 Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Mon, 13 May 2024 02:16:05 -0500 Subject: [PATCH 04/13] More Changes to Scripts --- dScripts/CppScripts.cpp | 13 +++++++++---- tests/dGameTests/dScriptsTests/dScriptsTests.cpp | 11 ++++++++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/dScripts/CppScripts.cpp b/dScripts/CppScripts.cpp index c0ad2490..729b4e62 100644 --- a/dScripts/CppScripts.cpp +++ b/dScripts/CppScripts.cpp @@ -335,7 +335,8 @@ namespace { // This is in the translation unit instead of the header to prevent weird linker errors InvalidScript InvalidToReturn; std::map m_Scripts; - std::map> test = { + std::map> scriptLoader = { + //VE / AG { "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua", []() { return new AgShipPlayerDeathTrigger(); } }, {"scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua", []() { return new NpcNpSpacemanBob(); } }, @@ -676,8 +677,12 @@ namespace { {"scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua", [](){return new WildNinjaStudent();}}, {"scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua", [](){return new WildNinjaSensei();}}, {"scripts\\ai\\WILD\\L_LUP_generic_interact.lua", [](){return new LupGenericInteract();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenBlue.lua", [](){return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenGreen.lua", [](){return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenOrange.lua", [](){return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenRed.lua", [](){return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenYellow.lua", [](){return new WblRobotCitizen();}}, - //And on, and on, and on, and on }; }; @@ -687,8 +692,8 @@ CppScripts::Script* const CppScripts::GetScript(Entity* parent, const std::strin return itr->second; } - const auto itrSN = test.find(scriptName); - Script* script = itrSN != test.cend() ? itrSN->second() : &InvalidToReturn; + const auto itrTernary = scriptLoader.find(scriptName); + Script* script = itrTernary != scriptLoader.cend() ? itrTernary->second() : &InvalidToReturn; if (script == &InvalidToReturn) { if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || diff --git a/tests/dGameTests/dScriptsTests/dScriptsTests.cpp b/tests/dGameTests/dScriptsTests/dScriptsTests.cpp index a07252e7..218aea4d 100644 --- a/tests/dGameTests/dScriptsTests/dScriptsTests.cpp +++ b/tests/dGameTests/dScriptsTests/dScriptsTests.cpp @@ -636,6 +636,11 @@ TEST(dScriptsTests, OldCppScriptsCheck) { CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua", WildNinjaStudent); CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua", WildNinjaSensei); CHECK_SCRIPT("scripts\\ai\\WILD\\L_LUP_generic_interact.lua", LupGenericInteract); + CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenBlue.lua", WblRobotCitizen); + CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenGreen.lua", WblRobotCitizen); + CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenOrange.lua", WblRobotCitizen); + CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenRed.lua", WblRobotCitizen); + CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenYellow.lua", WblRobotCitizen); } TEST(dScriptsTests, CacheCheck) { @@ -937,5 +942,9 @@ TEST(dScriptsTests, CacheCheck) { CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua"); CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua"); CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_LUP_generic_interact.lua"); + CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenBlue.lua"); + CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenGreen.lua"); + CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenOrange.lua"); + CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenRed.lua"); + CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenYellow.lua"); } From d770e3b6be9da2db68f3b1fecc28bbb2793047ca Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Tue, 14 May 2024 10:25:43 -0500 Subject: [PATCH 05/13] Update CppScripts.cpp --- dScripts/CppScripts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dScripts/CppScripts.cpp b/dScripts/CppScripts.cpp index 729b4e62..4edcee25 100644 --- a/dScripts/CppScripts.cpp +++ b/dScripts/CppScripts.cpp @@ -334,7 +334,7 @@ namespace { // This is in the translation unit instead of the header to prevent weird linker errors InvalidScript InvalidToReturn; - std::map m_Scripts; + std::map g_Scripts; std::map> scriptLoader = { //VE / AG @@ -687,8 +687,8 @@ namespace { }; CppScripts::Script* const CppScripts::GetScript(Entity* parent, const std::string& scriptName) { - auto itr = m_Scripts.find(scriptName); - if (itr != m_Scripts.end()) { + auto itr = g_Scripts.find(scriptName); + if (itr != g_Scripts.end()) { return itr->second; } @@ -704,7 +704,7 @@ CppScripts::Script* const CppScripts::GetScript(Entity* parent, const std::strin )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); } - m_Scripts[scriptName] = script; + g_Scripts[scriptName] = script; return script; } From 77a06e8df145f13e175a525236fbd777d76c73e1 Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:37:16 -0500 Subject: [PATCH 06/13] Removing Unneeded Files --- tests/dGameTests/dScriptsTests/CMakeLists.txt | 11 - .../dScriptsTests/CppScriptsOld.cpp | 991 ------------------ .../dGameTests/dScriptsTests/CppScriptsOld.h | 16 - .../dScriptsTests/dScriptsTests.cpp | 950 ----------------- 4 files changed, 1968 deletions(-) diff --git a/tests/dGameTests/dScriptsTests/CMakeLists.txt b/tests/dGameTests/dScriptsTests/CMakeLists.txt index d0e14056..e69de29b 100644 --- a/tests/dGameTests/dScriptsTests/CMakeLists.txt +++ b/tests/dGameTests/dScriptsTests/CMakeLists.txt @@ -1,11 +0,0 @@ -set(DSCRIPTS_TESTS - "dScriptsTests.cpp" - "CppScriptsOld.cpp" -) - -# Get the folder name and prepend it to the files above -get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME) -list(TRANSFORM DSCRIPTS_TESTS PREPEND "${thisFolderName}/") - -# Export to parent scope -set(DSCRIPTS_TESTS ${DSCRIPTS_TESTS} PARENT_SCOPE) diff --git a/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp b/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp index 45e6e39a..e69de29b 100644 --- a/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp +++ b/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp @@ -1,991 +0,0 @@ -#include "CppScriptsOld.h" -//I can feel my soul being torn apart with every script added to this monstrosity. -// skate fast eat trash -// do you think god stays in heaven because he too lives in fear of what he's created? - -#include "GameMessages.h" -#include "Entity.h" -#include "ScriptComponent.h" -#include "Game.h" -#include "Logger.h" -#include "InvalidScript.h" - -//VE / AG scripts: -#include "AgShipPlayerDeathTrigger.h" -#include "AgShipPlayerShockServer.h" -#include "AgSpaceStuff.h" -#include "AgImagSmashable.h" -#include "NpcNpSpacemanBob.h" -#include "StoryBoxInteractServer.h" -#include "Binoculars.h" -#include "AllCrateChicken.h" -#include "SsModularBuildServer.h" -#include "ZoneAgProperty.h" -#include "TouchMissionUpdateServer.h" -#include "ActSharkPlayerDeathTrigger.h" -#include "BaseEnemyMech.h" -#include "ZoneAgSurvival.h" -#include "AgBusDoor.h" -#include "MaestromExtracticatorServer.h" -#include "NpcWispServer.h" -#include "AgCagedBricksServer.h" -#include "NpcEpsilonServer.h" -#include "AgTurret.h" -#include "AgMonumentBirds.h" -#include "AgLaserSensorServer.h" -#include "AgMonumentLaserServer.h" -#include "AgFans.h" -#include "RemoveRentalGear.h" -#include "NpcNjAssistantServer.h" -#include "EnemySpiderSpawner.h" -#include "AgQbElevator.h" -#include "AgPropGuard.h" -#include "AgBugsprayer.h" -#include "WishingWellServer.h" -#include "NpcAgCourseStarter.h" -#include "AgMonumentRaceGoal.h" -#include "ZoneAgSpiderQueen.h" -#include "SpiderBossTreasureChestServer.h" -#include "NpcCowboyServer.h" -#include "ZoneAgMedProperty.h" -#include "AgStromlingProperty.h" -#include "AgDarkSpiderling.h" -#include "PropertyFXDamage.h" -#include "AgPropguards.h" -#include "NpcPirateServer.h" -#include "AgPicnicBlanket.h" -#include "AgMonumentRaceCancel.h" -#include "VeBricksampleServer.h" -#include "PropertyBankInteract.h" -#include "VeMech.h" -#include "VeMissionConsole.h" -#include "VeEpsilonServer.h" -#include "AgSurvivalBuffStation.h" -#include "QbSpawner.h" -#include "AgQbWall.h" - -// NS Scripts -#include "NsModularBuild.h" -#include "NsGetFactionMissionServer.h" -#include "NsQbImaginationStatue.h" -#include "NsConcertChoiceBuildManager.h" -#include "NsConcertChoiceBuild.h" -#include "NsConcertQuickBuild.h" -#include "AgStagePlatforms.h" -#include "NsConcertInstrument.h" -#include "NsJohnnyMissionServer.h" -#include "StinkyFishTarget.h" -#include "ZoneNsProperty.h" -#include "ZoneNsMedProperty.h" -#include "NsTokenConsoleServer.h" -#include "NsLupTeleport.h" -#include "ZoneNsWaves.h" -#include "WaveBossHammerling.h" -#include "WaveBossApe.h" -#include "WaveBossSpiderling.h" -#include "WaveBossHorsemen.h" -#include "MinigameTreasureChestServer.h" -#include "NsLegoClubDoor.h" -#include "ClRing.h" -#include "WildAmbients.h" -#include "PropertyDeathPlane.h" - -// PR Scripts -#include "PrWhistle.h" -#include "PrSeagullFly.h" -#include "HydrantBroken.h" -#include "HydrantSmashable.h" -#include "PetDigServer.h" -#include "PetFromDigServer.h" -#include "PetFromObjectServer.h" -#include "DamagingPets.h" -#include "SpawnGryphonServer.h" - -// GF Scripts -#include "GfTikiTorch.h" -#include "GfCampfire.h" -#include "GfOrgan.h" -#include "GfBanana.h" -#include "GfBananaCluster.h" -#include "GfJailkeepMission.h" -#include "TriggerAmbush.h" -#include "GfCaptainsCannon.h" -#include "MastTeleport.h" -#include "GfJailWalls.h" -#include "QbEnemyStunner.h" -#include "PetDigBuild.h" -#include "SpawnLionServer.h" -#include "BaseEnemyApe.h" -#include "GfApeSmashingQB.h" -#include "ZoneGfProperty.h" -#include "GfArchway.h" -#include "GfMaelstromGeyser.h" -#include "PirateRep.h" -#include "GfParrotCrash.h" - -// SG Scripts -#include "SGCannon.h" -#include "ZoneSGServer.h" - -// FV Scripts -#include "FvCandle.h" -#include "EnemyRoninSpawner.h" -#include "ActNinjaTurret.h" -#include "FvMaelstromCavalry.h" -#include "FvHorsemenTrigger.h" -#include "FvFlyingCreviceDragon.h" -#include "FvMaelstromDragon.h" -#include "FvDragonSmashingGolemQb.h" -#include "TreasureChestDragonServer.h" -#include "InstanceExitTransferPlayerToLastNonInstance.h" -#include "FvFreeGfNinjas.h" -#include "FvPandaServer.h" -#include "FvPandaSpawnerServer.h" -#include "ZoneFvProperty.h" -#include "FvBrickPuzzleServer.h" -#include "FvConsoleLeftQuickbuild.h" -#include "FvConsoleRightQuickbuild.h" -#include "FvFacilityBrick.h" -#include "FvFacilityPipes.h" -#include "ImgBrickConsoleQB.h" -#include "ActParadoxPipeFix.h" -#include "FvNinjaGuard.h" -#include "FvPassThroughWall.h" -#include "FvBounceOverWall.h" -#include "FvFong.h" -#include "FvMaelstromGeyser.h" -#include "FvRaceDragon.h" -#include "FvRacePillarABCServer.h" -#include "FvRacePillarDServer.h" -#include "RaceFireballs.h" -#include "RaceShipLapColumnsServer.h" - -// FB Scripts -#include "AgJetEffectServer.h" -#include "AgSalutingNpcs.h" -#include "BossSpiderQueenEnemyServer.h" -#include "RockHydrantSmashable.h" - -// Misc Scripts -#include "ExplodingAsset.h" -#include "ActPlayerDeathTrigger.h" -#include "CrabServer.h" -#include "GrowingFlower.h" -#include "BaseFootRaceManager.h" -#include "PropertyPlatform.h" -#include "MailBoxServer.h" -#include "ActMine.h" -#include "FireFirstSkillonStartup.h" - -// Racing Scripts -#include "RaceImagineCrateServer.h" -#include "ActVehicleDeathTrigger.h" -#include "RaceImaginePowerup.h" -#include "RaceMaelstromGeiser.h" -#include "FvRaceSmashEggImagineServer.h" -#include "RaceSmashServer.h" -#include "FvRacingColumns.h" - -// NT Scripts -#include "NtSentinelWalkwayServer.h" -#include "NtParadoxTeleServer.h" -#include "NtDarkitectRevealServer.h" -#include "BankInteractServer.h" -#include "NtVentureSpeedPadServer.h" -#include "NtVentureCannonServer.h" -#include "NtCombatChallengeServer.h" -#include "NtCombatChallengeDummy.h" -#include "NtCombatChallengeExplodingDummy.h" -#include "BaseInteractDropLootServer.h" -#include "NtAssemblyTubeServer.h" -#include "NtParadoxPanelServer.h" -#include "TokenConsoleServer.h" -#include "NtImagBeamBuffer.h" -#include "NtBeamImaginationCollectors.h" -#include "NtDirtCloudServer.h" -#include "NtConsoleTeleportServer.h" -#include "SpawnShrakeServer.h" -#include "SpawnSaberCatServer.h" -#include "SpawnStegoServer.h" -#include "NtDukeServer.h" -#include "NtHaelServer.h" -#include "NtOverbuildServer.h" -#include "NtVandaServer.h" -#include "ForceVolumeServer.h" -#include "NtXRayServer.h" -#include "NtSleepingGuard.h" -#include "NtImagimeterVisibility.h" -#include "FrictionVolumeServer.h" -#include "NTPipeVisibilityServer.h" -#include "NTNaomiDirtServer.h" -#include "MinigameBlueMark.h" -#include "NtNaomiBreadcrumbServer.h" - -// DLU Scripts -#include "DLUVanityTeleportingObject.h" - -// AM Scripts -#include "AmConsoleTeleportServer.h" -#include "RandomSpawnerFin.h" -#include "RandomSpawnerPit.h" -#include "RandomSpawnerStr.h" -#include "RandomSpawnerZip.h" -#include "AmDarklingMech.h" -#include "AmBridge.h" -#include "AmDrawBridge.h" -#include "AmShieldGenerator.h" -#include "AmShieldGeneratorQuickbuild.h" -#include "AmDropshipComputer.h" -#include "AmScrollReaderServer.h" -#include "AmTemplateSkillVolume.h" -#include "EnemyNjBuff.h" -#include "AmSkeletonEngineer.h" -#include "AmSkullkinDrill.h" -#include "AmSkullkinDrillStand.h" -#include "AmSkullkinTower.h" -#include "AmDarklingDragon.h" -#include "AmBlueX.h" -#include "AmTeapotServer.h" -#include "WanderingVendor.h" - -// NJ Scripts -#include "NjGarmadonCelebration.h" -#include "NjWuNPC.h" -#include "NjScrollChestServer.h" -#include "EnemySkeletonSpawner.h" -#include "NjRailSwitch.h" -#include "NjRailPostServer.h" -#include "NjRailActivatorsServer.h" -#include "NjColeNPC.h" -#include "NjNPCMissionSpinjitzuServer.h" -#include "NjJayMissionItems.h" -#include "FallingTile.h" -#include "ImaginationShrineServer.h" -#include "Lieutenant.h" -#include "RainOfArrows.h" -#include "NjIceRailActivator.h" -#include "CavePrisonCage.h" -#include "NjMonastryBossInstance.h" -#include "CatapultBouncerServer.h" -#include "CatapultBaseServer.h" -#include "NjhubLavaPlayerDeathTrigger.h" -#include "MonCoreNookDoors.h" -#include "MonCoreSmashableDoors.h" -#include "FlameJetServer.h" -#include "BurningTile.h" -#include "NjEarthDragonPetServer.h" -#include "NjEarthPetServer.h" -#include "NjDragonEmblemChestServer.h" -#include "NjNyaMissionitems.h" - -// Scripted equipment -#include "AnvilOfArmor.h" -#include "CauldronOfLife.h" -#include "FountainOfImagination.h" -#include "Sunflower.h" -#include "BootyDigServer.h" -#include "PersonalFortress.h" -#include "PropertyDevice.h" -#include "ImaginationBackpackHealServer.h" -#include "LegoDieRoll.h" -#include "BuccaneerValiantShip.h" -#include "GemPack.h" -#include "ShardArmor.h" -#include "TeslaPack.h" -#include "StunImmunity.h" - -// Survival scripts -#include "AgSurvivalStromling.h" -#include "AgSurvivalMech.h" -#include "AgSurvivalSpiderling.h" - -// Frostburgh Scripts -#include "RockHydrantBroken.h" -#include "WhFans.h" - -// WBL scripts -#include "WblGenericZone.h" - -// Alpha Scripts -#include "TriggerGas.h" -#include "ActNinjaSensei.h" - -// pickups -#include "SpecialCoinSpawner.h" -#include "SpecialPowerupSpawner.h" -#include "SpecialSpeedBuffSpawner.h" - -// Wild Scripts -#include "WildAndScared.h" -#include "WildGfGlowbug.h" -#include "WildAmbientCrab.h" -#include "WildPants.h" -#include "WildNinjaStudent.h" -#include "WildNinjaSensei.h" -#include "WildNinjaBricks.h" -#include "VisToggleNotifierServer.h" -#include "LupGenericInteract.h" -#include "WblRobotCitizen.h" -#include "CppScripts.h" - -namespace { - // This is in the translation unit instead of the header to prevent wierd linker errors - InvalidScript* const InvalidToReturn = new InvalidScript(); - std::map m_Scripts; -}; - -CppScripts::Script* const CppScriptsOld::GetScript(Entity* parent, const std::string& scriptName) { - auto itr = m_Scripts.find(scriptName); - if (itr != m_Scripts.end()) { - return itr->second; - } - - CppScripts::Script* script = InvalidToReturn; - - //VE / AG: - if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua") - script = new AgShipPlayerDeathTrigger(); - else if (scriptName == "scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua") - script = new NpcNpSpacemanBob(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua") // Broken, will (sometimes) display all animations at once on initial login - script = new AgSpaceStuff(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua") - script = new AgShipPlayerShockServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua") - script = new AgImagSmashable(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua") - script = new StoryBoxInteractServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_BINOCULARS.lua") - script = new Binoculars(); - else if (scriptName == "scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua") - script = new AllCrateChicken(); - else if (scriptName == "scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua") - script = new RockHydrantSmashable(); // Broken? - else if (scriptName == "scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua") - script = new SsModularBuildServer(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua") - script = new ZoneAgProperty(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_POI_MISSION.lua") - script = new InvalidScript(); // this is done in Entity.cpp, not needed for our implementation - else if (scriptName == "scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua") - script = new TouchMissionUpdateServer(); - else if (scriptName == "scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua") - script = new ActSharkPlayerDeathTrigger(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua") - script = new BaseEnemyMech(); - else if (scriptName == "scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua") - script = new ZoneAgSurvival(); - else if (scriptName == "scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua") - script = new AgSurvivalBuffStation(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_BUS_DOOR.lua") - script = new AgBusDoor(); - else if (scriptName == "scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua") - script = new MaestromExtracticatorServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua") - script = new AgCagedBricksServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua") - script = new NpcWispServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua") - script = new NpcEpsilonServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_TURRET.lua" || scriptName == "scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua") - script = new AgTurret(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua") - script = new AgLaserSensorServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua") - script = new AgMonumentLaserServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_FANS.lua") - script = new AgFans(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua") - script = new AgMonumentBirds(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua") - script = new RemoveRentalGear(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua") - script = new NpcNjAssistantServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua") - script = new AgSalutingNpcs(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua") - script = new AgJetEffectServer(); - else if (scriptName == "scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua") - script = new BossSpiderQueenEnemyServer(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua") - script = new EnemySpiderSpawner(); - else if (scriptName == "scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua") - script = new EnemySpiderSpawner(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_QB_Elevator.lua") - script = new AgQbElevator(); - else if (scriptName == "scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua") - script = new AgPropGuard(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua") - script = new AgBugsprayer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua") - script = new NpcAgCourseStarter(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua") - script = new AgMonumentRaceGoal(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua") - script = new AgMonumentRaceCancel(); - else if (scriptName == "scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua") - script = new ZoneAgSpiderQueen(); - else if (scriptName == "scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua") - script = new SpiderBossTreasureChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua") - script = new NpcCowboyServer(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua") - script = new ZoneAgMedProperty(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua") - script = new AgStromlingProperty(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua") - script = new BaseEnemyMech(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua") - script = new AgDarkSpiderling(); - else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua") - script = new AgPropguards(); - else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua") - script = new PropertyFXDamage(); - else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua") - script = new NpcPirateServer(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua") - script = new AgPicnicBlanket(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua") - script = new PropertyBankInteract(); - else if (scriptName == "scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua") - script = new VeMech(); - else if (scriptName == "scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua") - script = new VeMissionConsole(); - else if (scriptName == "scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua") - script = new VeEpsilonServer(); - // Win32 thinks this if chain is too long, let's cut it up and serve it as a three course meal - //NS: - if (scriptName == "scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua") - script = new NsModularBuild(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua") - script = new NsGetFactionMissionServer(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua") - script = new NsQbImaginationStatue(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua") - script = new NsConcertChoiceBuildManager(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua") - script = new NsConcertChoiceBuild(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua") - script = new NsConcertQuickBuild(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua") - script = new AgStagePlatforms(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua") - script = new NsConcertInstrument(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua") - script = new NsJohnnyMissionServer(); - else if (scriptName == "scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua") - script = new StinkyFishTarget(); - else if (scriptName == "scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua") - script = new ZoneNsProperty(); - else if (scriptName == "scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua") - script = new ZoneNsMedProperty(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua") - script = new NsTokenConsoleServer(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua") - script = new NsLupTeleport(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua") - script = new ZoneNsWaves(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua") - script = new WaveBossHammerling(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua") - script = new WaveBossApe(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua") - script = new WaveBossSpiderling(); - else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua") - script = new WaveBossHorsemen(); - else if (scriptName == "scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua") - script = new MinigameTreasureChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua") - script = new NsLegoClubDoor(); - else if (scriptName == "scripts/ai/NS/L_CL_RING.lua") - script = new ClRing(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua") - script = new WildAmbients(); - else if (scriptName == "scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua") - script = new PropertyDeathPlane(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua") - script = new QbSpawner(); - else if (scriptName == "scripts\\ai\\AG\\L_AG_QB_Wall.lua") - script = new AgQbWall(); - - //GF: - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua") - script = new GfTikiTorch(); - else if (scriptName == "scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua") - script = new GfCampfire(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_ORGAN.lua") - script = new GfOrgan(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_BANANA.lua") - script = new GfBanana(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua") - script = new GfBananaCluster(); - else if (scriptName == "scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua") - script = new GfJailkeepMission(); - else if (scriptName == "scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua") - script = new TriggerAmbush(); - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua") - script = new GfCaptainsCannon(); - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua") - script = new MastTeleport(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua") - script = new GfJailWalls(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua") - script = new QbEnemyStunner(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua") - script = new PetDigBuild(); // Technically also used once in AG - else if (scriptName == "scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua") - script = new SpawnLionServer(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua") - script = new BaseEnemyApe(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua") - script = new GfApeSmashingQB(); - else if (scriptName == "scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua") - script = new ZoneGfProperty(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_ARCHWAY.lua") - script = new GfArchway(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua") - script = new GfMaelstromGeyser(); - else if (scriptName == "scripts\\ai\\GF\\L_PIRATE_REP.lua") - script = new PirateRep(); - else if (scriptName == "scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua") - script = new GfParrotCrash(); - - // SG - else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua") - script = new SGCannon(); - else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua") - script = new ZoneSGServer(); - - //PR: - else if (scriptName == "scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua") - script = new PrWhistle(); - if (scriptName == "scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua") - script = new PrSeagullFly(); - else if (scriptName == "scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua") - script = new HydrantSmashable(); - else if (scriptName == "scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua") - script = new HydrantBroken(); - else if (scriptName == "scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua" || scriptName == "scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua") - script = new PetDigServer(); - else if (scriptName == "scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua") - script = new CrabServer(); - else if (scriptName == "scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua") - script = new PetFromDigServer(); - else if (scriptName == "scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua") - script = new PetFromObjectServer(); - else if (scriptName == "scripts\\02_server\\Pets\\L_DAMAGING_PET.lua") - script = new DamagingPets(); - else if (scriptName == "scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua") - script = new SpawnGryphonServer(); - - //FV Scripts: - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua") - script = new FvCandle(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua") - script = new EnemyRoninSpawner(); - else if (scriptName == "scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua") - script = new FvMaelstromCavalry(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua") - script = new ActNinjaTurret(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua") - script = new FvHorsemenTrigger(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua") - script = new FvFlyingCreviceDragon(); - else if (scriptName == "scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua") - script = new FvMaelstromDragon(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua") - script = new FvDragonSmashingGolemQb(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua") - script = new TreasureChestDragonServer(); - else if (scriptName == "scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua") - script = new InstanceExitTransferPlayerToLastNonInstance(); - else if (scriptName == "scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua") - script = new FvFreeGfNinjas(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua") - script = new FvPandaSpawnerServer(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua") - script = new FvPandaServer(); - else if (scriptName == "scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua") - script = new ZoneFvProperty(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua") - script = new FvBrickPuzzleServer(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua") - script = new FvConsoleLeftQuickbuild(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua") - script = new FvConsoleRightQuickbuild(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua") - script = new FvFacilityBrick(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua") - script = new FvFacilityPipes(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua") - script = new ImgBrickConsoleQB(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua") - script = new ActParadoxPipeFix(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua") - script = new FvNinjaGuard(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua") - script = new FvPassThroughWall(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua") - script = new FvBounceOverWall(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua") - script = new FvFong(); - else if (scriptName == "scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua") - script = new FvMaelstromGeyser(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua") - script = new RaceShipLapColumnsServer(); - - // yes we know the lap numbers dont match the file name or anim. thats what they desgined it as. - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua") - script = new FvRaceDragon("lap_01", 2); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua") - script = new FvRaceDragon("lap_02", 0); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua") - script = new FvRaceDragon("lap_03", 1); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua") - script = new FvRacePillarABCServer(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua") - script = new FvRacePillarDServer(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua") - script = new RaceFireballs(); - - - //Misc: - if (scriptName == "scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua") - script = new ExplodingAsset(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua") - script = new WishingWellServer(); - else if (scriptName == "scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua") - script = new ActPlayerDeathTrigger(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua") - script = new GrowingFlower(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua") - script = new TokenConsoleServer(); - else if (scriptName == "scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua") - script = new BaseFootRaceManager(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua") - script = new PropertyPlatform(); - else if (scriptName == "scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua") - script = new VeBricksampleServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua") - script = new MailBoxServer(); - else if (scriptName == "scripts\\ai\\ACT\\L_ACT_MINE.lua") - script = new ActMine(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua") - script = new WanderingVendor(); - - //Racing: - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua") - script = new RaceImagineCrateServer(); - else if (scriptName == "scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua") - script = new ActVehicleDeathTrigger(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua") - script = new RaceImaginePowerup(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua") - script = new RaceMaelstromGeiser(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua") - script = new FvRaceSmashEggImagineServer(); - else if (scriptName == "scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua") - script = new FvRacingColumns(); - else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua") - script = new RaceSmashServer(); - - //NT: - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua") - script = new NtSentinelWalkwayServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua") - script = new NtParadoxTeleServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua") - script = new NtDarkitectRevealServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua") - script = new BankInteractServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua") - script = new NtVentureSpeedPadServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua") - script = new NtVentureCannonServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua") - script = new NtCombatChallengeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua") - script = new NtCombatChallengeDummy(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua") - script = new NtCombatChallengeExplodingDummy(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua") - script = new BaseInteractDropLootServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua") - script = new NtAssemblyTubeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua") - script = new NtParadoxPanelServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua") - script = new NtImagBeamBuffer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua") - script = new NtBeamImaginationCollectors(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua") - script = new NtDirtCloudServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua") - script = new NtConsoleTeleportServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua") - script = new SpawnStegoServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua") - script = new SpawnSaberCatServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua") - script = new SpawnShrakeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua") - script = new NtDukeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua") - script = new NtHaelServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua") - script = new NtFactionSpyServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua") - script = new NtOverbuildServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua") - script = new NtVandaServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua") - script = new ForceVolumeServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua") - script = new FrictionVolumeServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua") - script = new NtXRayServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua") - script = new NtSleepingGuard(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua") - script = new NTImagimeterVisibility(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua") - script = new NTPipeVisibilityServer(); - else if (scriptName == "scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua") - script = new MinigameBlueMark(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua") - script = new NtNaomiBreadcrumbServer(); - else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua") - script = new NTNaomiDirtServer(); - - //AM: - if (scriptName == "scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua") - script = new AmConsoleTeleportServer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua") - script = new RandomSpawnerFin(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua") - script = new RandomSpawnerPit(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua") - script = new RandomSpawnerStr(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua") - script = new RandomSpawnerZip(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua") - script = new AmDarklingMech(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_BRIDGE.lua") - script = new AmBridge(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua") - script = new AmDrawBridge(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua") - script = new AmShieldGenerator(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua") - script = new AmShieldGeneratorQuickbuild(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua") - script = new AmDropshipComputer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua") - script = new AmScrollReaderServer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua") - script = new AmTemplateSkillVolume(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua") - script = new EnemyNjBuff(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua") - script = new AmSkeletonEngineer(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua") - script = new AmSkullkinDrill(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua") - script = new AmSkullkinDrillStand(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua") - script = new AmSkullkinTower(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua") - script = new AmDarklingDragon(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_DRAGON.lua") - script = new AmDarklingDragon(); - else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua") - script = new BaseEnemyApe(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_BLUE_X.lua") - script = new AmBlueX(); - else if (scriptName == "scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua") - script = new AmTeapotServer(); - - // Ninjago - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua") - script = new NjGarmadonCelebration(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua") - script = new NjWuNPC(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua") - script = new NjScrollChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua") - script = new NjColeNPC(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua") - script = new NjJayMissionItems(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua") - script = new NjNPCMissionSpinjitzuServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua") - script = new EnemySkeletonSpawner(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua") - script = new NjRailSwitch(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua") - script = new NjRailActivatorsServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua") - script = new NjRailPostServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua") - script = new NjIceRailActivator(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua") - script = new FallingTile(); - else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua") - script = new EnemyNjBuff(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua") - script = new ImaginationShrineServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua") - script = new Lieutenant(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua") - script = new RainOfArrows(); - if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua") - script = new CavePrisonCage(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua") - script = new NjMonastryBossInstance(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua") - script = new CatapultBouncerServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua") - script = new CatapultBaseServer(); - else if (scriptName == "scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua") - script = new NjhubLavaPlayerDeathTrigger(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua") - script = new MonCoreNookDoors(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua") - script = new MonCoreSmashableDoors(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua") - script = new FlameJetServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua") - script = new BurningTile(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua") - script = new NjEarthDragonPetServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua") - script = new NjEarthPetServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua") - script = new NjDragonEmblemChestServer(); - else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua") - script = new NjNyaMissionitems(); - - //DLU: - else if (scriptName == "scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua") - script = new DLUVanityTeleportingObject(); - - // Survival minigame - else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua") - script = new AgSurvivalStromling(); - else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua") - script = new AgSurvivalMech(); - else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua") - script = new AgSurvivalSpiderling(); - - // Scripted equipment - else if (scriptName == "scripts\\EquipmentScripts\\Sunflower.lua") - script = new Sunflower(); - else if (scriptName == "scripts/EquipmentScripts/AnvilOfArmor.lua") - script = new AnvilOfArmor(); - else if (scriptName == "scripts/EquipmentScripts/FountainOfImagination.lua") - script = new FountainOfImagination(); - else if (scriptName == "scripts/EquipmentScripts/CauldronOfLife.lua") - script = new CauldronOfLife(); - else if (scriptName == "scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua") - script = new BootyDigServer(); - else if (scriptName == "scripts\\EquipmentScripts\\PersonalFortress.lua") - script = new PersonalFortress(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua") - script = new PropertyDevice(); - else if (scriptName == "scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua") - script = new ImaginationBackpackHealServer(); - else if (scriptName == "scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua") - script = new LegoDieRoll(); - else if (scriptName == "scripts\\EquipmentScripts\\BuccaneerValiantShip.lua") - script = new BuccaneerValiantShip(); - else if (scriptName == "scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua") - script = new FireFirstSkillonStartup(); - else if (scriptName == "scripts\\equipmenttriggers\\gempack.lua") - script = new GemPack(); - else if (scriptName == "scripts\\equipmenttriggers\\shardarmor.lua") - script = new ShardArmor(); - else if (scriptName == "scripts\\equipmenttriggers\\coilbackpack.lua") - script = new TeslaPack(); - else if (scriptName == "scripts\\EquipmentScripts\\stunImmunity.lua") - script = new StunImmunity(); - - // FB - else if (scriptName == "scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua") - script = new RockHydrantBroken(); - else if (scriptName == "scripts\\ai\\NS\\L_NS_WH_FANS.lua") - script = new WhFans(); - - // WBL - else if (scriptName == "scripts\\zone\\LUPs\\WBL_generic_zone.lua") - script = new WblGenericZone(); - - // Alpha - if (scriptName == "scripts\\ai\\FV\\L_TRIGGER_GAS.lua") - script = new TriggerGas(); - else if (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua") - script = new ActNinjaSensei(); - - // pickups - if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(1); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_GOLD-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(10000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(100); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(10); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(100000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(1000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(25); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(250000); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua") - script = new SpecialCoinSpawner(2500); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua") - script = new SpecialPowerupSpawner(13); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua") - script = new SpecialPowerupSpawner(129); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua") - script = new SpecialPowerupSpawner(5); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua") - script = new SpecialPowerupSpawner(747); - else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua") - script = new SpecialSpeedBuffSpawner(); - - // Wild - if (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_RAT.lua" || scriptName == "scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua") - script = new WildAndScared(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua") - script = new WildGfGlowbug(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua") - script = new WildAmbientCrab(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_PANTS.lua") - script = new WildPants(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua") - script = new WildNinjaBricks(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua") - script = new WildNinjaStudent(); - else if (scriptName == "scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua") - script = new WildNinjaSensei(); - else if (scriptName == "scripts\\ai\\WILD\\L_LUP_generic_interact.lua") - script = new LupGenericInteract(); - else if (scriptName.rfind("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizen", 0) == 0) - script = new WblRobotCitizen(); - - // handle invalid script reporting if the path is greater than zero and it's not an ignored script - // information not really needed for sys admins but is for developers - else if (script == InvalidToReturn) { - if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || - (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua") || - (scriptName =="scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || - (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") || - (scriptName == "scripts\\empty.lua") - )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); - } - - m_Scripts[scriptName] = script; - return script; -} diff --git a/tests/dGameTests/dScriptsTests/CppScriptsOld.h b/tests/dGameTests/dScriptsTests/CppScriptsOld.h index 1e189e44..e69de29b 100644 --- a/tests/dGameTests/dScriptsTests/CppScriptsOld.h +++ b/tests/dGameTests/dScriptsTests/CppScriptsOld.h @@ -1,16 +0,0 @@ -#ifndef CPPSCRIPTSOLD_H -#define CPPSCRIPTSOLD_H - -#include - -class Entity; - -namespace CppScripts { - class Script; -}; - -namespace CppScriptsOld { - CppScripts::Script* const GetScript(Entity* entity, const std::string& scriptName); -}; - -#endif //!CPPSCRIPTSOLD_H diff --git a/tests/dGameTests/dScriptsTests/dScriptsTests.cpp b/tests/dGameTests/dScriptsTests/dScriptsTests.cpp index 218aea4d..e69de29b 100644 --- a/tests/dGameTests/dScriptsTests/dScriptsTests.cpp +++ b/tests/dGameTests/dScriptsTests/dScriptsTests.cpp @@ -1,950 +0,0 @@ -#include -#include "dCommonVars.h" -#include "eCinematicEvent.h" -#include "CppScripts.h" -#include "CppScriptsOld.h" -#include "Entity.h" -#include "EntityInfo.h" -#include "LupGenericInteract.h" -#include "InvalidScript.h" - -//VE / AG scripts: -#include "AgShipPlayerDeathTrigger.h" -#include "AgShipPlayerShockServer.h" -#include "AgSpaceStuff.h" -#include "AgImagSmashable.h" -#include "NpcNpSpacemanBob.h" -#include "StoryBoxInteractServer.h" -#include "Binoculars.h" -#include "AllCrateChicken.h" -#include "SsModularBuildServer.h" -#include "ZoneAgProperty.h" -#include "TouchMissionUpdateServer.h" -#include "ActSharkPlayerDeathTrigger.h" -#include "BaseEnemyMech.h" -#include "ZoneAgSurvival.h" -#include "AgBusDoor.h" -#include "MaestromExtracticatorServer.h" -#include "NpcWispServer.h" -#include "AgCagedBricksServer.h" -#include "NpcEpsilonServer.h" -#include "AgTurret.h" -#include "AgMonumentBirds.h" -#include "AgLaserSensorServer.h" -#include "AgMonumentLaserServer.h" -#include "AgFans.h" -#include "RemoveRentalGear.h" -#include "NpcNjAssistantServer.h" -#include "EnemySpiderSpawner.h" -#include "AgQbElevator.h" -#include "AgPropGuard.h" -#include "AgBugsprayer.h" -#include "WishingWellServer.h" -#include "NpcAgCourseStarter.h" -#include "AgMonumentRaceGoal.h" -#include "ZoneAgSpiderQueen.h" -#include "SpiderBossTreasureChestServer.h" -#include "NpcCowboyServer.h" -#include "ZoneAgMedProperty.h" -#include "AgStromlingProperty.h" -#include "AgDarkSpiderling.h" -#include "PropertyFXDamage.h" -#include "AgPropguards.h" -#include "NpcPirateServer.h" -#include "AgPicnicBlanket.h" -#include "AgMonumentRaceCancel.h" -#include "VeBricksampleServer.h" -#include "PropertyBankInteract.h" -#include "VeMech.h" -#include "VeMissionConsole.h" -#include "VeEpsilonServer.h" -#include "AgSurvivalBuffStation.h" -#include "QbSpawner.h" -#include "AgQbWall.h" - -// NS Scripts -#include "NsModularBuild.h" -#include "NsGetFactionMissionServer.h" -#include "NsQbImaginationStatue.h" -#include "NsConcertChoiceBuildManager.h" -#include "NsConcertChoiceBuild.h" -#include "NsConcertQuickBuild.h" -#include "AgStagePlatforms.h" -#include "NsConcertInstrument.h" -#include "NsJohnnyMissionServer.h" -#include "StinkyFishTarget.h" -#include "ZoneNsProperty.h" -#include "ZoneNsMedProperty.h" -#include "NsTokenConsoleServer.h" -#include "NsLupTeleport.h" -#include "ZoneNsWaves.h" -#include "WaveBossHammerling.h" -#include "WaveBossApe.h" -#include "WaveBossSpiderling.h" -#include "WaveBossHorsemen.h" -#include "MinigameTreasureChestServer.h" -#include "NsLegoClubDoor.h" -#include "ClRing.h" -#include "WildAmbients.h" -#include "PropertyDeathPlane.h" - -// PR Scripts -#include "PrWhistle.h" -#include "PrSeagullFly.h" -#include "HydrantBroken.h" -#include "HydrantSmashable.h" -#include "PetDigServer.h" -#include "PetFromDigServer.h" -#include "PetFromObjectServer.h" -#include "DamagingPets.h" -#include "SpawnGryphonServer.h" - -// GF Scripts -#include "GfTikiTorch.h" -#include "GfCampfire.h" -#include "GfOrgan.h" -#include "GfBanana.h" -#include "GfBananaCluster.h" -#include "GfJailkeepMission.h" -#include "TriggerAmbush.h" -#include "GfCaptainsCannon.h" -#include "MastTeleport.h" -#include "GfJailWalls.h" -#include "QbEnemyStunner.h" -#include "PetDigBuild.h" -#include "SpawnLionServer.h" -#include "BaseEnemyApe.h" -#include "GfApeSmashingQB.h" -#include "ZoneGfProperty.h" -#include "GfArchway.h" -#include "GfMaelstromGeyser.h" -#include "PirateRep.h" -#include "GfParrotCrash.h" - -// SG Scripts -#include "SGCannon.h" -#include "ZoneSGServer.h" - -// FV Scripts -#include "FvCandle.h" -#include "EnemyRoninSpawner.h" -#include "ActNinjaTurret.h" -#include "FvMaelstromCavalry.h" -#include "FvHorsemenTrigger.h" -#include "FvFlyingCreviceDragon.h" -#include "FvMaelstromDragon.h" -#include "FvDragonSmashingGolemQb.h" -#include "TreasureChestDragonServer.h" -#include "InstanceExitTransferPlayerToLastNonInstance.h" -#include "FvFreeGfNinjas.h" -#include "FvPandaServer.h" -#include "FvPandaSpawnerServer.h" -#include "ZoneFvProperty.h" -#include "FvBrickPuzzleServer.h" -#include "FvConsoleLeftQuickbuild.h" -#include "FvConsoleRightQuickbuild.h" -#include "FvFacilityBrick.h" -#include "FvFacilityPipes.h" -#include "ImgBrickConsoleQB.h" -#include "ActParadoxPipeFix.h" -#include "FvNinjaGuard.h" -#include "FvPassThroughWall.h" -#include "FvBounceOverWall.h" -#include "FvFong.h" -#include "FvMaelstromGeyser.h" -#include "FvRaceDragon.h" -#include "FvRacePillarABCServer.h" -#include "FvRacePillarDServer.h" -#include "RaceFireballs.h" -#include "RaceShipLapColumnsServer.h" - -// FB Scripts -#include "AgJetEffectServer.h" -#include "AgSalutingNpcs.h" -#include "BossSpiderQueenEnemyServer.h" -#include "RockHydrantSmashable.h" - -// Misc Scripts -#include "ExplodingAsset.h" -#include "ActPlayerDeathTrigger.h" -#include "CrabServer.h" -#include "GrowingFlower.h" -#include "BaseFootRaceManager.h" -#include "PropertyPlatform.h" -#include "MailBoxServer.h" -#include "ActMine.h" -#include "FireFirstSkillonStartup.h" - -// Racing Scripts -#include "RaceImagineCrateServer.h" -#include "ActVehicleDeathTrigger.h" -#include "RaceImaginePowerup.h" -#include "RaceMaelstromGeiser.h" -#include "FvRaceSmashEggImagineServer.h" -#include "RaceSmashServer.h" -#include "FvRacingColumns.h" - -// NT Scripts -#include "NtSentinelWalkwayServer.h" -#include "NtParadoxTeleServer.h" -#include "NtDarkitectRevealServer.h" -#include "BankInteractServer.h" -#include "NtVentureSpeedPadServer.h" -#include "NtVentureCannonServer.h" -#include "NtCombatChallengeServer.h" -#include "NtCombatChallengeDummy.h" -#include "NtCombatChallengeExplodingDummy.h" -#include "BaseInteractDropLootServer.h" -#include "NtAssemblyTubeServer.h" -#include "NtParadoxPanelServer.h" -#include "TokenConsoleServer.h" -#include "NtImagBeamBuffer.h" -#include "NtBeamImaginationCollectors.h" -#include "NtDirtCloudServer.h" -#include "NtConsoleTeleportServer.h" -#include "SpawnShrakeServer.h" -#include "SpawnSaberCatServer.h" -#include "SpawnStegoServer.h" -#include "NtDukeServer.h" -#include "NtHaelServer.h" -#include "NtOverbuildServer.h" -#include "NtVandaServer.h" -#include "ForceVolumeServer.h" -#include "NtXRayServer.h" -#include "NtSleepingGuard.h" -#include "NtImagimeterVisibility.h" -#include "FrictionVolumeServer.h" -#include "NTPipeVisibilityServer.h" -#include "NTNaomiDirtServer.h" -#include "MinigameBlueMark.h" -#include "NtNaomiBreadcrumbServer.h" - -// DLU Scripts -#include "DLUVanityTeleportingObject.h" - -// AM Scripts -#include "AmConsoleTeleportServer.h" -#include "RandomSpawnerFin.h" -#include "RandomSpawnerPit.h" -#include "RandomSpawnerStr.h" -#include "RandomSpawnerZip.h" -#include "AmDarklingMech.h" -#include "AmBridge.h" -#include "AmDrawBridge.h" -#include "AmShieldGenerator.h" -#include "AmShieldGeneratorQuickbuild.h" -#include "AmDropshipComputer.h" -#include "AmScrollReaderServer.h" -#include "AmTemplateSkillVolume.h" -#include "EnemyNjBuff.h" -#include "AmSkeletonEngineer.h" -#include "AmSkullkinDrill.h" -#include "AmSkullkinDrillStand.h" -#include "AmSkullkinTower.h" -#include "AmDarklingDragon.h" -#include "AmBlueX.h" -#include "AmTeapotServer.h" -#include "WanderingVendor.h" - -// NJ Scripts -#include "NjGarmadonCelebration.h" -#include "NjWuNPC.h" -#include "NjScrollChestServer.h" -#include "EnemySkeletonSpawner.h" -#include "NjRailSwitch.h" -#include "NjRailPostServer.h" -#include "NjRailActivatorsServer.h" -#include "NjColeNPC.h" -#include "NjNPCMissionSpinjitzuServer.h" -#include "NjJayMissionItems.h" -#include "FallingTile.h" -#include "ImaginationShrineServer.h" -#include "Lieutenant.h" -#include "RainOfArrows.h" -#include "NjIceRailActivator.h" -#include "CavePrisonCage.h" -#include "NjMonastryBossInstance.h" -#include "CatapultBouncerServer.h" -#include "CatapultBaseServer.h" -#include "NjhubLavaPlayerDeathTrigger.h" -#include "MonCoreNookDoors.h" -#include "MonCoreSmashableDoors.h" -#include "FlameJetServer.h" -#include "BurningTile.h" -#include "NjEarthDragonPetServer.h" -#include "NjEarthPetServer.h" -#include "NjDragonEmblemChestServer.h" -#include "NjNyaMissionitems.h" - -// Scripted equipment -#include "AnvilOfArmor.h" -#include "CauldronOfLife.h" -#include "FountainOfImagination.h" -#include "Sunflower.h" -#include "BootyDigServer.h" -#include "PersonalFortress.h" -#include "PropertyDevice.h" -#include "ImaginationBackpackHealServer.h" -#include "LegoDieRoll.h" -#include "BuccaneerValiantShip.h" -#include "GemPack.h" -#include "ShardArmor.h" -#include "TeslaPack.h" -#include "StunImmunity.h" - -// Survival scripts -#include "AgSurvivalStromling.h" -#include "AgSurvivalMech.h" -#include "AgSurvivalSpiderling.h" - -// Frostburgh Scripts -#include "RockHydrantBroken.h" -#include "WhFans.h" - -// WBL scripts -#include "WblGenericZone.h" - -// Alpha Scripts -#include "TriggerGas.h" -#include "ActNinjaSensei.h" - -// pickups -#include "SpecialCoinSpawner.h" -#include "SpecialPowerupSpawner.h" -#include "SpecialSpeedBuffSpawner.h" - -// Wild Scripts -#include "WildAndScared.h" -#include "WildGfGlowbug.h" -#include "WildAmbientCrab.h" -#include "WildPants.h" -#include "WildNinjaStudent.h" -#include "WildNinjaSensei.h" -#include "WildNinjaBricks.h" -#include "VisToggleNotifierServer.h" -#include "LupGenericInteract.h" -#include "WblRobotCitizen.h" - -#define CHECK_SCRIPT(scriptName, scriptType) do { \ - auto* script = dynamic_cast(CppScripts::GetScript(&entity, scriptName)); \ - auto* oldScript = dynamic_cast(CppScriptsOld::GetScript(&entity, scriptName)); \ - ASSERT_NE(script, nullptr); \ - ASSERT_NE(oldScript, nullptr); \ -} while (0) - -#define CHECK_CACHE(scriptName) do { \ - ASSERT_EQ(CppScripts::GetScript(&entity, scriptName), CppScripts::GetScript(&entity, scriptName)); \ -} while (0) - -TEST(dScriptsTests, OldCppScriptsCheck) { - Entity entity(LWOOBJID_EMPTY, EntityInfo{}); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_LUP_generic_interact.lua", LupGenericInteract); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua", AgShipPlayerDeathTrigger); - CHECK_SCRIPT("scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua", NpcNpSpacemanBob); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua", AgSpaceStuff); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua", AgShipPlayerShockServer); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua", AgImagSmashable); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua", StoryBoxInteractServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_BINOCULARS.lua", Binoculars); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua", AllCrateChicken); - CHECK_SCRIPT("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua", RockHydrantSmashable); - CHECK_SCRIPT("scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua", SsModularBuildServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua", ZoneAgProperty); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_POI_MISSION.lua", InvalidScript); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua", TouchMissionUpdateServer); - CHECK_SCRIPT("scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua", ActSharkPlayerDeathTrigger); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua", BaseEnemyMech); - CHECK_SCRIPT("scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua", ZoneAgSurvival); - CHECK_SCRIPT("scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua", AgSurvivalBuffStation); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_BUS_DOOR.lua", AgBusDoor); - CHECK_SCRIPT("scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua", MaestromExtracticatorServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua", AgCagedBricksServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua", NpcWispServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua", NpcEpsilonServer); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_TURRET.lua", AgTurret); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua", AgTurret); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua", AgLaserSensorServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua", AgMonumentLaserServer); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_FANS.lua", AgFans); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua", AgMonumentBirds); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua", RemoveRentalGear); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua", NpcNjAssistantServer); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua", AgSalutingNpcs); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua", AgJetEffectServer); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua", BossSpiderQueenEnemyServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua", EnemySpiderSpawner); - CHECK_SCRIPT("scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua", EnemySpiderSpawner); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_QB_Elevator.lua", AgQbElevator); - CHECK_SCRIPT("scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua", AgPropGuard); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua", AgBugsprayer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua", NpcAgCourseStarter); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua", AgMonumentRaceGoal); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua", AgMonumentRaceCancel); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua", ZoneAgSpiderQueen); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua", SpiderBossTreasureChestServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua", NpcCowboyServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua", ZoneAgMedProperty); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua", AgStromlingProperty); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua", BaseEnemyMech); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua", AgDarkSpiderling); - CHECK_SCRIPT("scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua", AgPropguards); - CHECK_SCRIPT("scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua", PropertyFXDamage); - CHECK_SCRIPT("scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua", NpcPirateServer); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua", AgPicnicBlanket); - CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua", PropertyBankInteract); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua", VeMech); - CHECK_SCRIPT("scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua", VeMissionConsole); - CHECK_SCRIPT("scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua", VeEpsilonServer); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua", NsModularBuild); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua", NsGetFactionMissionServer); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua", NsQbImaginationStatue); - CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua", NsConcertChoiceBuildManager); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua", NsConcertChoiceBuild); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua", NsConcertQuickBuild); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua", AgStagePlatforms); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua", NsConcertInstrument); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua", NsJohnnyMissionServer); - CHECK_SCRIPT("scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua", StinkyFishTarget); - CHECK_SCRIPT("scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua", ZoneNsProperty); - CHECK_SCRIPT("scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua", ZoneNsMedProperty); - CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua", NsTokenConsoleServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua", NsLupTeleport); - CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua", ZoneNsWaves); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua", WaveBossHammerling); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua", WaveBossApe); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua", WaveBossSpiderling); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua", WaveBossHorsemen); - CHECK_SCRIPT("scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua", MinigameTreasureChestServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua", NsLegoClubDoor); - CHECK_SCRIPT("scripts/ai/NS/L_CL_RING.lua", ClRing); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua", WildAmbients); - CHECK_SCRIPT("scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua", PropertyDeathPlane); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua", QbSpawner); - CHECK_SCRIPT("scripts\\ai\\AG\\L_AG_QB_Wall.lua", AgQbWall); - CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua", GfTikiTorch); - CHECK_SCRIPT("scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua", GfCampfire); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_ORGAN.lua", GfOrgan); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_BANANA.lua", GfBanana); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua", GfBananaCluster); - CHECK_SCRIPT("scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua", GfJailkeepMission); - CHECK_SCRIPT("scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua", TriggerAmbush); - CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua", GfCaptainsCannon); - CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua", MastTeleport); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua", GfJailWalls); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua", QbEnemyStunner); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua", PetDigBuild); - CHECK_SCRIPT("scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua", SpawnLionServer); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua", BaseEnemyApe); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua", GfApeSmashingQB); - CHECK_SCRIPT("scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua", ZoneGfProperty); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_ARCHWAY.lua", GfArchway); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua", GfMaelstromGeyser); - CHECK_SCRIPT("scripts\\ai\\GF\\L_PIRATE_REP.lua", PirateRep); - CHECK_SCRIPT("scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua", GfParrotCrash); - CHECK_SCRIPT("scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua", SGCannon); - CHECK_SCRIPT("scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua", ZoneSGServer); - CHECK_SCRIPT("scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua", PrWhistle); - CHECK_SCRIPT("scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua", PrSeagullFly); - CHECK_SCRIPT("scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua", HydrantSmashable); - CHECK_SCRIPT("scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua", HydrantBroken); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua", PetDigServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua", PetDigServer); - CHECK_SCRIPT("scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua", CrabServer); - CHECK_SCRIPT("scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua", PetFromDigServer); - CHECK_SCRIPT("scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua", PetFromObjectServer); - CHECK_SCRIPT("scripts\\02_server\\Pets\\L_DAMAGING_PET.lua", DamagingPets); - CHECK_SCRIPT("scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua", SpawnGryphonServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua", FvCandle); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua", EnemyRoninSpawner); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua", FvMaelstromCavalry); - CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua", ActNinjaTurret); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua", FvHorsemenTrigger); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua", FvFlyingCreviceDragon); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua", FvMaelstromDragon); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua", FvDragonSmashingGolemQb); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua", TreasureChestDragonServer); - CHECK_SCRIPT("scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua", InstanceExitTransferPlayerToLastNonInstance); - CHECK_SCRIPT("scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua", FvFreeGfNinjas); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua", FvPandaSpawnerServer); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua", FvPandaServer); - CHECK_SCRIPT("scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua", ZoneFvProperty); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua", FvBrickPuzzleServer); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua", FvConsoleLeftQuickbuild); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua", FvConsoleRightQuickbuild); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua", FvFacilityBrick); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua", FvFacilityPipes); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua", ImgBrickConsoleQB); - CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua", ActParadoxPipeFix); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua", FvNinjaGuard); - CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua", FvPassThroughWall); - CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua", FvBounceOverWall); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua", FvFong); - CHECK_SCRIPT("scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua", FvMaelstromGeyser); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua", RaceShipLapColumnsServer); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua", FvRaceDragon); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua", FvRaceDragon); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua", FvRaceDragon); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua", FvRacePillarABCServer); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua", FvRacePillarDServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua", RaceFireballs); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua", ExplodingAsset); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua", WishingWellServer); - CHECK_SCRIPT("scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua", ActPlayerDeathTrigger); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua", GrowingFlower); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua", TokenConsoleServer); - CHECK_SCRIPT("scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua", BaseFootRaceManager); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua", PropertyPlatform); - CHECK_SCRIPT("scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua", VeBricksampleServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua", MailBoxServer); - CHECK_SCRIPT("scripts\\ai\\ACT\\L_ACT_MINE.lua", ActMine); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua", WanderingVendor); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua", RaceImagineCrateServer); - CHECK_SCRIPT("scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua", ActVehicleDeathTrigger); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua", RaceImaginePowerup); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua", RaceMaelstromGeiser); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua", FvRaceSmashEggImagineServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua", FvRacingColumns); - CHECK_SCRIPT("scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua", RaceSmashServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua", NtSentinelWalkwayServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua", NtParadoxTeleServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua", NtDarkitectRevealServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua", BankInteractServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua", NtVentureSpeedPadServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua", NtVentureCannonServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua", NtCombatChallengeServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua", NtCombatChallengeDummy); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua", NtCombatChallengeExplodingDummy); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua", BaseInteractDropLootServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua", NtAssemblyTubeServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua", NtParadoxPanelServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua", NtImagBeamBuffer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua", NtBeamImaginationCollectors); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua", NtDirtCloudServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua", NtConsoleTeleportServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua", SpawnStegoServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua", SpawnSaberCatServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua", SpawnShrakeServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua", NtDukeServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua", NtHaelServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua", NtFactionSpyServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua", NtOverbuildServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua", NtVandaServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua", ForceVolumeServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua", FrictionVolumeServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua", NtXRayServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua", NtSleepingGuard); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua", NTImagimeterVisibility); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua", NTPipeVisibilityServer); - CHECK_SCRIPT("scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua", MinigameBlueMark); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua", NtNaomiBreadcrumbServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua", NTNaomiDirtServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua", AmConsoleTeleportServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua", RandomSpawnerFin); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua", RandomSpawnerPit); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua", RandomSpawnerStr); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua", RandomSpawnerZip); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua", AmDarklingMech); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_BRIDGE.lua", AmBridge); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua", AmDrawBridge); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua", AmShieldGenerator); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua", AmShieldGeneratorQuickbuild); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua", AmDropshipComputer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua", AmScrollReaderServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua", AmTemplateSkillVolume); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua", EnemyNjBuff); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua", AmSkeletonEngineer); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua", AmSkullkinDrill); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua", AmSkullkinDrillStand); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua", AmSkullkinTower); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua", AmDarklingDragon); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua", BaseEnemyApe); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_BLUE_X.lua", AmBlueX); - CHECK_SCRIPT("scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua", AmTeapotServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua", NjGarmadonCelebration); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua", NjWuNPC); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua", NjScrollChestServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua", NjColeNPC); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua", NjJayMissionItems); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua", NjNPCMissionSpinjitzuServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua", EnemySkeletonSpawner); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua", NjRailSwitch); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua", NjRailActivatorsServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua", NjRailPostServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua", NjIceRailActivator); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua", FallingTile); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua", EnemyNjBuff); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua", ImaginationShrineServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua", Lieutenant); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua", RainOfArrows); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua", CavePrisonCage); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua", NjMonastryBossInstance); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua", CatapultBouncerServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua", CatapultBaseServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua", NjhubLavaPlayerDeathTrigger); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua", MonCoreNookDoors); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", MonCoreSmashableDoors); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", MonCoreSmashableDoors); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua", FlameJetServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua", BurningTile); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua", NjEarthDragonPetServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua", NjEarthPetServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua", NjDragonEmblemChestServer); - CHECK_SCRIPT("scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua", NjNyaMissionitems); - CHECK_SCRIPT("scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua", DLUVanityTeleportingObject); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua", AgSurvivalStromling); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua", AgSurvivalMech); - CHECK_SCRIPT("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua", AgSurvivalSpiderling); - CHECK_SCRIPT("scripts\\EquipmentScripts\\Sunflower.lua", Sunflower); - CHECK_SCRIPT("scripts/EquipmentScripts/AnvilOfArmor.lua", AnvilOfArmor); - CHECK_SCRIPT("scripts/EquipmentScripts/FountainOfImagination.lua", FountainOfImagination); - CHECK_SCRIPT("scripts/EquipmentScripts/CauldronOfLife.lua", CauldronOfLife); - CHECK_SCRIPT("scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua", BootyDigServer); - CHECK_SCRIPT("scripts\\EquipmentScripts\\PersonalFortress.lua", PersonalFortress); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua", PropertyDevice); - CHECK_SCRIPT("scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua", ImaginationBackpackHealServer); - CHECK_SCRIPT("scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua", LegoDieRoll); - CHECK_SCRIPT("scripts\\EquipmentScripts\\BuccaneerValiantShip.lua", BuccaneerValiantShip); - CHECK_SCRIPT("scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua", FireFirstSkillonStartup); - CHECK_SCRIPT("scripts\\equipmenttriggers\\gempack.lua", GemPack); - CHECK_SCRIPT("scripts\\equipmenttriggers\\shardarmor.lua", ShardArmor); - CHECK_SCRIPT("scripts\\equipmenttriggers\\coilbackpack.lua", TeslaPack); - CHECK_SCRIPT("scripts\\EquipmentScripts\\stunImmunity.lua", StunImmunity); - CHECK_SCRIPT("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua", RockHydrantBroken); - CHECK_SCRIPT("scripts\\ai\\NS\\L_NS_WH_FANS.lua", WhFans); - CHECK_SCRIPT("scripts\\zone\\LUPs\\WBL_generic_zone.lua", WblGenericZone); - CHECK_SCRIPT("scripts\\ai\\FV\\L_TRIGGER_GAS.lua", TriggerGas); - CHECK_SCRIPT("scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua", ActNinjaSensei); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua", SpecialCoinSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua", SpecialPowerupSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua", SpecialPowerupSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua", SpecialPowerupSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua", SpecialPowerupSpawner); - CHECK_SCRIPT("scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua", SpecialSpeedBuffSpawner); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_GF_RAT.lua", WildAndScared); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua", WildAndScared); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua", WildGfGlowbug); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua", WildAmbientCrab); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_PANTS.lua", WildPants); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua", WildNinjaBricks); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua", WildNinjaStudent); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua", WildNinjaSensei); - CHECK_SCRIPT("scripts\\ai\\WILD\\L_LUP_generic_interact.lua", LupGenericInteract); - CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenBlue.lua", WblRobotCitizen); - CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenGreen.lua", WblRobotCitizen); - CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenOrange.lua", WblRobotCitizen); - CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenRed.lua", WblRobotCitizen); - CHECK_SCRIPT("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenYellow.lua", WblRobotCitizen); -} - -TEST(dScriptsTests, CacheCheck) { - Entity entity(LWOOBJID_EMPTY, EntityInfo{}); - CHECK_CACHE("scripts\\ai\\WILD\\L_LUP_generic_interact.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua"); - CHECK_CACHE("scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_BINOCULARS.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua"); - CHECK_CACHE("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_POI_MISSION.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua"); - CHECK_CACHE("scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua"); - CHECK_CACHE("scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_BUS_DOOR.lua"); - CHECK_CACHE("scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_TURRET.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_FANS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua"); - CHECK_CACHE("scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_QB_Elevator.lua"); - CHECK_CACHE("scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua"); - CHECK_CACHE("scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua"); - CHECK_CACHE("scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua"); - CHECK_CACHE("scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua"); - CHECK_CACHE("scripts/ai/NS/L_CL_RING.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua"); - CHECK_CACHE("scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\AG\\L_AG_QB_Wall.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_ORGAN.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_BANANA.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua"); - CHECK_CACHE("scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua"); - CHECK_CACHE("scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_ARCHWAY.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_PIRATE_REP.lua"); - CHECK_CACHE("scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua"); - CHECK_CACHE("scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua"); - CHECK_CACHE("scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua"); - CHECK_CACHE("scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua"); - CHECK_CACHE("scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua"); - CHECK_CACHE("scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua"); - CHECK_CACHE("scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Pets\\L_DAMAGING_PET.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua"); - CHECK_CACHE("scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\ACT\\L_ACT_MINE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua"); - CHECK_CACHE("scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_BRIDGE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_BLUE_X.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua"); - CHECK_CACHE("scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua"); - CHECK_CACHE("scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua"); - CHECK_CACHE("scripts\\EquipmentScripts\\Sunflower.lua"); - CHECK_CACHE("scripts/EquipmentScripts/AnvilOfArmor.lua"); - CHECK_CACHE("scripts/EquipmentScripts/FountainOfImagination.lua"); - CHECK_CACHE("scripts/EquipmentScripts/CauldronOfLife.lua"); - CHECK_CACHE("scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua"); - CHECK_CACHE("scripts\\EquipmentScripts\\PersonalFortress.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua"); - CHECK_CACHE("scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua"); - CHECK_CACHE("scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua"); - CHECK_CACHE("scripts\\EquipmentScripts\\BuccaneerValiantShip.lua"); - CHECK_CACHE("scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua"); - CHECK_CACHE("scripts\\equipmenttriggers\\gempack.lua"); - CHECK_CACHE("scripts\\equipmenttriggers\\shardarmor.lua"); - CHECK_CACHE("scripts\\equipmenttriggers\\coilbackpack.lua"); - CHECK_CACHE("scripts\\EquipmentScripts\\stunImmunity.lua"); - CHECK_CACHE("scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua"); - CHECK_CACHE("scripts\\ai\\NS\\L_NS_WH_FANS.lua"); - CHECK_CACHE("scripts\\zone\\LUPs\\WBL_generic_zone.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_TRIGGER_GAS.lua"); - CHECK_CACHE("scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_GF_RAT.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_PANTS.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua"); - CHECK_CACHE("scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua"); - CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenBlue.lua"); - CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenGreen.lua"); - CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenOrange.lua"); - CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenRed.lua"); - CHECK_CACHE("scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenYellow.lua"); -} From ccf26f0a23b7dd41179cd79a0bd8fc3ac941b5eb Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:37:31 -0500 Subject: [PATCH 07/13] Update CppScripts.cpp --- dScripts/CppScripts.cpp | 654 ++++++++++++++++++++-------------------- 1 file changed, 327 insertions(+), 327 deletions(-) diff --git a/dScripts/CppScripts.cpp b/dScripts/CppScripts.cpp index 4edcee25..784edbdb 100644 --- a/dScripts/CppScripts.cpp +++ b/dScripts/CppScripts.cpp @@ -332,382 +332,382 @@ #include namespace { - // This is in the translation unit instead of the header to prevent weird linker errors - InvalidScript InvalidToReturn; - std::map g_Scripts; - std::map> scriptLoader = { + // This is in the translation unit instead of the header to prevent weird linker errors + InvalidScript InvalidToReturn; + std::map g_Scripts; + std::map> scriptLoader = { //VE / AG { "scripts\\ai\\AG\\L_AG_SHIP_PLAYER_DEATH_TRIGGER.lua", []() { return new AgShipPlayerDeathTrigger(); } }, - {"scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua", []() { return new NpcNpSpacemanBob(); } }, - {"scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua", [](){ return new AgSpaceStuff();} }, - {"scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua", [](){ return new AgShipPlayerShockServer();} }, - {"scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua", [](){ return new AgImagSmashable();} }, - {"scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua", [](){ return new StoryBoxInteractServer();} }, - {"scripts\\02_server\\Map\\General\\L_BINOCULARS.lua", [](){ return new Binoculars();} }, - {"scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua", [](){ return new AllCrateChicken();} }, + {"scripts\\ai\\NP\\L_NPC_NP_SPACEMAN_BOB.lua", []() { return new NpcNpSpacemanBob(); } }, + {"scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua", []() { return new AgSpaceStuff();} }, + {"scripts\\ai\\AG\\L_AG_SHIP_PLAYER_SHOCK_SERVER.lua", []() { return new AgShipPlayerShockServer();} }, + {"scripts\\ai\\AG\\L_AG_IMAG_SMASHABLE.lua", []() { return new AgImagSmashable();} }, + {"scripts\\02_server\\Map\\General\\L_STORY_BOX_INTERACT_SERVER.lua", []() { return new StoryBoxInteractServer();} }, + {"scripts\\02_server\\Map\\General\\L_BINOCULARS.lua", []() { return new Binoculars();} }, + {"scripts\\ai\\WILD\\L_ALL_CRATE_CHICKEN.lua", []() { return new AllCrateChicken();} }, // Broken? (below) - {"scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua", [](){ return new RockHydrantSmashable();} }, - {"scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua", [](){ return new SsModularBuildServer();} }, - {"scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua", [](){ return new ZoneAgProperty();} }, + {"scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_SMASHABLE.lua", []() { return new RockHydrantSmashable();} }, + {"scripts\\02_server\\Map\\SS\\L_SS_MODULAR_BUILD_SERVER.lua", []() { return new SsModularBuildServer();} }, + {"scripts\\02_server\\Map\\Property\\AG_Small\\L_ZONE_AG_PROPERTY.lua", []() { return new ZoneAgProperty();} }, // this is done in Entity.cpp, not needed for our implementation (below) - {"scripts\\02_server\\Map\\General\\L_POI_MISSION.lua", [](){ return new InvalidScript();} }, - {"scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua", [](){ return new TouchMissionUpdateServer();} }, - {"scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua", [](){ return new ActSharkPlayerDeathTrigger();} }, - {"scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua", [](){ return new BaseEnemyMech();} }, - {"scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua", [](){ return new ZoneAgSurvival();} }, - {"scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua", [](){ return new AgSurvivalBuffStation();} }, - {"scripts\\ai\\AG\\L_AG_BUS_DOOR.lua", [](){ return new AgBusDoor();} }, - {"scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua", [](){ return new MaestromExtracticatorServer();} }, - {"scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua", [](){ return new AgCagedBricksServer();} }, - {"scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua", [](){ return new NpcWispServer();} }, - {"scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua", [](){ return new NpcEpsilonServer();} }, - {"scripts\\ai\\AG\\L_AG_TURRET.lua", [](){return new AgTurret();}}, - {"scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua", [](){ return new AgTurret();}}, - {"scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua", [](){return new AgLaserSensorServer();}}, - {"scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua", [](){return new AgMonumentLaserServer();}}, - {"scripts\\ai\\AG\\L_AG_FANS.lua", [](){return new AgFans();}}, - {"scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua", [](){return new AgMonumentBirds();}}, - {"scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua", [](){return new RemoveRentalGear();}}, - {"scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua", [](){return new NpcNjAssistantServer();}}, - {"scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua", [](){return new AgSalutingNpcs();}}, - {"scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua", [](){return new AgJetEffectServer();}}, - {"scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua", [](){return new BossSpiderQueenEnemyServer();}}, - {"scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua", [](){return new EnemySpiderSpawner();}}, - {"scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua", [](){return new EnemySpiderSpawner();}}, - {"scripts\\ai\\AG\\L_AG_QB_Elevator.lua", [](){return new AgQbElevator();}}, - {"scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua", [](){return new AgPropGuard();}}, - {"scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua", [](){return new AgBugsprayer();}}, - {"scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua", [](){return new NpcAgCourseStarter();}}, - {"scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua", [](){return new AgMonumentRaceGoal();}}, - {"scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua", [](){return new AgMonumentRaceCancel();}}, - {"scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua", [](){return new ZoneAgSpiderQueen();}}, - {"scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua", [](){return new SpiderBossTreasureChestServer();}}, - {"scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua", [](){return new NpcCowboyServer();}}, - {"scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua", [](){return new ZoneAgMedProperty();}}, - {"scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua", [](){return new AgStromlingProperty();}}, - {"scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua", [](){return new BaseEnemyMech();}}, - {"scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua", [](){return new AgDarkSpiderling();}}, - {"scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua", [](){return new AgPropguards();}}, - {"scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua", [](){return new PropertyFXDamage();}}, - {"scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua", [](){return new NpcPirateServer();}}, - {"scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua", [](){return new AgPicnicBlanket();}}, - {"scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua", [](){return new PropertyBankInteract();}}, - {"scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua", [](){return new VeMech();}}, - {"scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua", [](){return new VeMissionConsole();}}, - {"scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua", [](){return new VeEpsilonServer();}}, + {"scripts\\02_server\\Map\\General\\L_POI_MISSION.lua", []() { return new InvalidScript();} }, + {"scripts\\02_server\\Map\\General\\L_TOUCH_MISSION_UPDATE_SERVER.lua", []() { return new TouchMissionUpdateServer();} }, + {"scripts\\ai\\AG\\L_ACT_SHARK_PLAYER_DEATH_TRIGGER.lua", []() { return new ActSharkPlayerDeathTrigger();} }, + {"scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_MECH.lua", []() { return new BaseEnemyMech();} }, + {"scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua", []() { return new ZoneAgSurvival();} }, + {"scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua", []() { return new AgSurvivalBuffStation();} }, + {"scripts\\ai\\AG\\L_AG_BUS_DOOR.lua", []() { return new AgBusDoor();} }, + {"scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua", []() { return new MaestromExtracticatorServer();} }, + {"scripts\\02_server\\Map\\AG\\L_AG_CAGED_BRICKS_SERVER.lua", []() { return new AgCagedBricksServer();} }, + {"scripts\\02_server\\Map\\AG\\L_NPC_WISP_SERVER.lua", []() { return new NpcWispServer();} }, + {"scripts\\02_server\\Map\\AG\\L_NPC_EPSILON_SERVER.lua", []() { return new NpcEpsilonServer();} }, + {"scripts\\ai\\AG\\L_AG_TURRET.lua", []() {return new AgTurret();}}, + {"scripts\\ai\\AG\\L_AG_TURRET_FOR_SHIP.lua", []() { return new AgTurret();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_LASER_SENSOR_SERVER.lua", []() {return new AgLaserSensorServer();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_LASER_SERVER.lua", []() {return new AgMonumentLaserServer();}}, + {"scripts\\ai\\AG\\L_AG_FANS.lua", []() {return new AgFans();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_MONUMENT_BIRDS.lua", []() {return new AgMonumentBirds();}}, + {"scripts\\02_server\\Map\\AG\\L_REMOVE_RENTAL_GEAR.lua", []() {return new RemoveRentalGear();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_NJ_ASSISTANT_SERVER.lua", []() {return new NpcNjAssistantServer();}}, + {"scripts\\ai\\AG\\L_AG_SALUTING_NPCS.lua", []() {return new AgSalutingNpcs();}}, + {"scripts\\ai\\AG\\L_AG_JET_EFFECT_SERVER.lua", []() {return new AgJetEffectServer();}}, + {"scripts\\02_server\\Enemy\\AG\\L_BOSS_SPIDER_QUEEN_ENEMY_SERVER.lua", []() {return new BossSpiderQueenEnemyServer();}}, + {"scripts\\02_server\\Map\\Property\\AG_Small\\L_ENEMY_SPIDER_SPAWNER.lua", []() {return new EnemySpiderSpawner();}}, + {"scripts/02_server/Map/Property/AG_Small/L_ENEMY_SPIDER_SPAWNER.lua", []() {return new EnemySpiderSpawner();}}, + {"scripts\\ai\\AG\\L_AG_QB_Elevator.lua", []() {return new AgQbElevator();}}, + {"scripts\\ai\\PROPERTY\\AG\\L_AG_PROP_GUARD.lua", []() {return new AgPropGuard();}}, + {"scripts\\02_server\\Map\\AG\\L_AG_BUGSPRAYER.lua", []() {return new AgBugsprayer();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_AG_COURSE_STARTER.lua", []() {return new NpcAgCourseStarter();}}, + {"scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_GOAL.lua", []() {return new AgMonumentRaceGoal();}}, + {"scripts\\02_server\\Map\\AG\\L__AG_MONUMENT_RACE_CANCEL.lua", []() {return new AgMonumentRaceCancel();}}, + {"scripts\\02_server\\Map\\AG_Spider_Queen\\L_ZONE_AG_SPIDER_QUEEN.lua", []() {return new ZoneAgSpiderQueen();}}, + {"scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua", []() {return new SpiderBossTreasureChestServer();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_COWBOY_SERVER.lua", []() {return new NpcCowboyServer();}}, + {"scripts\\02_server\\Map\\Property\\AG_Med\\L_ZONE_AG_MED_PROPERTY.lua", []() {return new ZoneAgMedProperty();}}, + {"scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua", []() {return new AgStromlingProperty();}}, + {"scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua", []() {return new BaseEnemyMech();}}, + {"scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua", []() {return new AgDarkSpiderling();}}, + {"scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua", []() {return new AgPropguards();}}, + {"scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua", []() {return new PropertyFXDamage();}}, + {"scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua", []() {return new NpcPirateServer();}}, + {"scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua", []() {return new AgPicnicBlanket();}}, + {"scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua", []() {return new PropertyBankInteract();}}, + {"scripts\\02_server\\Enemy\\VE\\L_VE_MECH.lua", []() {return new VeMech();}}, + {"scripts\\02_server\\Map\\VE\\L_MISSION_CONSOLE_SERVER.lua", []() {return new VeMissionConsole();}}, + {"scripts\\02_server\\Map\\VE\\L_EPSILON_SERVER.lua", []() {return new VeEpsilonServer();}}, //NS - {"scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua", [](){return new NsModularBuild();}}, - {"scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua", [](){return new NsGetFactionMissionServer();}}, - {"scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua", [](){return new NsQbImaginationStatue();}}, - {"scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua", [](){return new NsConcertChoiceBuildManager();}}, - {"scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua", [](){return new NsConcertChoiceBuild();}}, - {"scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua", [](){return new NsConcertQuickBuild();}}, - {"scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua", [](){return new AgStagePlatforms();}}, - {"scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua", [](){return new NsConcertInstrument();}}, - {"scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua", [](){return new NsJohnnyMissionServer();}}, - {"scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua", [](){return new StinkyFishTarget();}}, - {"scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua", [](){return new ZoneNsProperty();}}, - {"scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua", [](){return new ZoneNsMedProperty();}}, - {"scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua", [](){return new NsTokenConsoleServer();}}, - {"scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua", [](){return new NsLupTeleport();}}, - {"scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua", [](){return new ZoneNsWaves();}}, - {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua", [](){return new WaveBossHammerling();}}, - {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua", [](){return new WaveBossApe();}}, - {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua", [](){return new WaveBossSpiderling();}}, - {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua", [](){return new WaveBossHorsemen();}}, - {"scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua", [](){return new MinigameTreasureChestServer();}}, - {"scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua", [](){return new NsLegoClubDoor();}}, - {"scripts/ai/NS/L_CL_RING.lua", [](){return new ClRing();}}, - {"scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua", [](){return new WildAmbients();}}, - {"scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua", [](){return new PropertyDeathPlane();}}, - {"scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua", [](){return new QbSpawner();}}, - {"scripts\\ai\\AG\\L_AG_QB_Wall.lua", [](){return new AgQbWall();}}, + {"scripts\\ai\\NS\\L_NS_MODULAR_BUILD.lua", []() {return new NsModularBuild();}}, + {"scripts\\ai\\NS\\L_NS_GET_FACTION_MISSION_SERVER.lua", []() {return new NsGetFactionMissionServer();}}, + {"scripts\\ai\\NS\\L_NS_QB_IMAGINATION_STATUE.lua", []() {return new NsQbImaginationStatue();}}, + {"scripts\\02_server\\Map\\NS\\CONCERT_CHOICEBUILD_MANAGER_SERVER.lua", []() {return new NsConcertChoiceBuildManager();}}, + {"scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua", []() {return new NsConcertChoiceBuild();}}, + {"scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua", []() {return new NsConcertQuickBuild();}}, + {"scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua", []() {return new AgStagePlatforms();}}, + {"scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua", []() {return new NsConcertInstrument();}}, + {"scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua", []() {return new NsJohnnyMissionServer();}}, + {"scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua", []() {return new StinkyFishTarget();}}, + {"scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua", []() {return new ZoneNsProperty();}}, + {"scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua", []() {return new ZoneNsMedProperty();}}, + {"scripts\\02_server\\Map\\NS\\L_NS_TOKEN_CONSOLE_SERVER.lua", []() {return new NsTokenConsoleServer();}}, + {"scripts\\02_server\\Map\\NS\\L_NS_LUP_TELEPORT.lua", []() {return new NsLupTeleport();}}, + {"scripts\\02_server\\Map\\NS\\Waves\\L_ZONE_NS_WAVES.lua", []() {return new ZoneNsWaves();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua", []() {return new WaveBossHammerling();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua", []() {return new WaveBossApe();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua", []() {return new WaveBossSpiderling();}}, + {"scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua", []() {return new WaveBossHorsemen();}}, + {"scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua", []() {return new MinigameTreasureChestServer();}}, + {"scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua", []() {return new NsLegoClubDoor();}}, + {"scripts/ai/NS/L_CL_RING.lua", []() {return new ClRing();}}, + {"scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua", []() {return new WildAmbients();}}, + {"scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua", []() {return new PropertyDeathPlane();}}, + {"scripts\\02_server\\Map\\General\\L_QB_SPAWNER.lua", []() {return new QbSpawner();}}, + {"scripts\\ai\\AG\\L_AG_QB_Wall.lua", []() {return new AgQbWall();}}, //GF - {"scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua", [](){return new GfTikiTorch();}}, - {"scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua", [](){return new GfCampfire();}}, - {"scripts\\ai\\GF\\L_GF_ORGAN.lua", [](){return new GfOrgan();}}, - {"scripts\\ai\\GF\\L_GF_BANANA.lua", [](){return new GfBanana();}}, - {"scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua", [](){return new GfBananaCluster();}}, - {"scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua", [](){return new GfJailkeepMission();}}, - {"scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua", [](){return new TriggerAmbush();}}, - {"scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua", [](){return new GfCaptainsCannon();}}, - {"scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua", [](){return new MastTeleport();}}, - {"scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua", [](){return new GfJailWalls();}}, - {"scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua", [](){return new QbEnemyStunner();}}, + {"scripts\\02_server\\Map\\GF\\L_GF_TORCH.lua", []() {return new GfTikiTorch();}}, + {"scripts\\ai\\GF\\L_SPECIAL_FIREPIT.lua", []() {return new GfCampfire();}}, + {"scripts\\ai\\GF\\L_GF_ORGAN.lua", []() {return new GfOrgan();}}, + {"scripts\\ai\\GF\\L_GF_BANANA.lua", []() {return new GfBanana();}}, + {"scripts\\ai\\GF\\L_GF_BANANA_CLUSTER.lua", []() {return new GfBananaCluster();}}, + {"scripts/ai/GF/L_GF_JAILKEEP_MISSION.lua", []() {return new GfJailkeepMission();}}, + {"scripts\\ai\\GF\\L_TRIGGER_AMBUSH.lua", []() {return new TriggerAmbush();}}, + {"scripts\\02_server\\Map\\GF\\L_GF_CAPTAINS_CANNON.lua", []() {return new GfCaptainsCannon();}}, + {"scripts\\02_server\\Map\\GF\\L_MAST_TELEPORT.lua", []() {return new MastTeleport();}}, + {"scripts\\ai\\GF\\L_GF_JAIL_WALLS.lua", []() {return new GfJailWalls();}}, + {"scripts\\02_server\\Map\\General\\L_QB_ENEMY_STUNNER.lua", []() {return new QbEnemyStunner();}}, //Technically also used once in AG (below) - {"scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua", [](){return new PetDigBuild();}}, - {"scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua", [](){return new SpawnLionServer();}}, - {"scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua", [](){return new BaseEnemyApe();}}, - {"scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua", [](){return new GfApeSmashingQB();}}, - {"scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua", [](){return new ZoneGfProperty();}}, - {"scripts\\ai\\GF\\L_GF_ARCHWAY.lua", [](){return new GfArchway();}}, - {"scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua", [](){return new GfMaelstromGeyser();}}, - {"scripts\\ai\\GF\\L_PIRATE_REP.lua", [](){return new PirateRep();}}, - {"scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua", [](){return new GfParrotCrash();}}, + {"scripts\\ai\\GF\\L_GF_PET_DIG_BUILD.lua", []() {return new PetDigBuild();}}, + {"scripts\\02_server\\Map\\GF\\L_SPAWN_LION_SERVER.lua", []() {return new SpawnLionServer();}}, + {"scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_APE.lua", []() {return new BaseEnemyApe();}}, + {"scripts\\02_server\\Enemy\\General\\L_GF_APE_SMASHING_QB.lua", []() {return new GfApeSmashingQB();}}, + {"scripts\\zone\\PROPERTY\\GF\\L_ZONE_GF_PROPERTY.lua", []() {return new ZoneGfProperty();}}, + {"scripts\\ai\\GF\\L_GF_ARCHWAY.lua", []() {return new GfArchway();}}, + {"scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua", []() {return new GfMaelstromGeyser();}}, + {"scripts\\ai\\GF\\L_PIRATE_REP.lua", []() {return new PirateRep();}}, + {"scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua", []() {return new GfParrotCrash();}}, //SG - {"scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua", [](){return new SGCannon();}}, - {"scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua", [](){return new ZoneSGServer();}}, + {"scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua", []() {return new SGCannon();}}, + {"scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua", []() {return new ZoneSGServer();}}, //PR - {"scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua", [](){return new PrWhistle();}}, - {"scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua", [](){return new PrSeagullFly();}}, - {"scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua", [](){return new HydrantSmashable();}}, - {"scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua", [](){return new HydrantBroken();}}, - {"scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua", [](){return new PetDigServer();}}, - {"scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua", [](){return new PetDigServer();}}, + {"scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua", []() {return new PrWhistle();}}, + {"scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua", []() {return new PrSeagullFly();}}, + {"scripts\\ai\\PETS\\L_HYDRANT_SMASHABLE.lua", []() {return new HydrantSmashable();}}, + {"scripts\\02_server\\map\\PR\\L_HYDRANT_BROKEN.lua", []() {return new HydrantBroken();}}, + {"scripts\\02_server\\Map\\General\\PET_DIG_SERVER.lua", []() {return new PetDigServer();}}, + {"scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua", []() {return new PetDigServer();}}, //{"scripts\\02_server\\Map\\AM\\L_SKELETON_DRAGON_PET_DIG_SERVER.lua", [](){return new PetDigServer();}}, - {"scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua", [](){return new CrabServer();}}, - {"scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua", [](){return new PetFromDigServer();}}, - {"scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua", [](){return new PetFromObjectServer();}}, - {"scripts\\02_server\\Pets\\L_DAMAGING_PET.lua", [](){return new DamagingPets();}}, - {"scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua", [](){return new SpawnGryphonServer();}}, + {"scripts\\client\\ai\\PR\\L_CRAB_SERVER.lua", []() {return new CrabServer();}}, + {"scripts\\02_server\\Pets\\L_PET_FROM_DIG_SERVER.lua", []() {return new PetFromDigServer();}}, + {"scripts\\02_server\\Pets\\L_PET_FROM_OBJECT_SERVER.lua", []() {return new PetFromObjectServer();}}, + {"scripts\\02_server\\Pets\\L_DAMAGING_PET.lua", []() {return new DamagingPets();}}, + {"scripts\\02_server\\Map\\PR\\L_SPAWN_GRYPHON_SERVER.lua", []() {return new SpawnGryphonServer();}}, //FV - {"scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua", [](){return new FvCandle();}}, - {"scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua", [](){return new EnemyRoninSpawner();}}, - {"scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua", [](){return new FvMaelstromCavalry();}}, - {"scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua", [](){return new ActNinjaTurret();}}, - {"scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua", [](){return new FvHorsemenTrigger();}}, - {"scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua", [](){return new FvFlyingCreviceDragon();}}, - {"scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua", [](){return new FvMaelstromDragon();}}, - {"scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua", [](){return new FvDragonSmashingGolemQb();}}, - {"scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua", [](){return new TreasureChestDragonServer();}}, - {"scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua", [](){return new InstanceExitTransferPlayerToLastNonInstance();}}, - {"scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua", [](){return new FvFreeGfNinjas();}}, - {"scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua", [](){return new FvPandaSpawnerServer();}}, - {"scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua", [](){return new FvPandaServer();}}, - {"scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua", [](){return new ZoneFvProperty();}}, - {"scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua", [](){return new FvBrickPuzzleServer();}}, - {"scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua", [](){return new FvConsoleLeftQuickbuild();}}, - {"scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua", [](){return new FvConsoleRightQuickbuild();}}, - {"scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua", [](){return new FvFacilityBrick();}}, - {"scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua", [](){return new FvFacilityPipes();}}, - {"scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua", [](){return new ImgBrickConsoleQB();}}, - {"scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua", [](){return new ActParadoxPipeFix();}}, - {"scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua", [](){return new FvNinjaGuard();}}, - {"scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua", [](){return new FvPassThroughWall();}}, - {"scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua", [](){return new FvBounceOverWall();}}, - {"scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua", [](){return new FvFong();}}, - {"scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua", [](){return new FvMaelstromGeyser();}}, - {"scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua", [](){return new RaceShipLapColumnsServer();}}, + {"scripts\\02_server\\Map\\FV\\L_ACT_CANDLE.lua", []() {return new FvCandle();}}, + {"scripts\\02_server\\Map\\FV\\L_ENEMY_RONIN_SPAWNER.lua", []() {return new EnemyRoninSpawner();}}, + {"scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_CAVALRY.lua", []() {return new FvMaelstromCavalry();}}, + {"scripts\\ai\\FV\\L_ACT_NINJA_TURRET_1.lua", []() {return new ActNinjaTurret();}}, + {"scripts\\02_server\\Map\\FV\\L_FV_HORSEMEN_TRIGGER.lua", []() {return new FvHorsemenTrigger();}}, + {"scripts\\ai\\FV\\L_FV_FLYING_CREVICE_DRAGON.lua", []() {return new FvFlyingCreviceDragon();}}, + {"scripts\\02_server\\Enemy\\FV\\L_FV_MAELSTROM_DRAGON.lua", []() {return new FvMaelstromDragon();}}, + {"scripts\\ai\\FV\\L_FV_DRAGON_SMASHING_GOLEM_QB.lua", []() {return new FvDragonSmashingGolemQb();}}, + {"scripts\\02_server\\Enemy\\General\\L_TREASURE_CHEST_DRAGON_SERVER.lua", []() {return new TreasureChestDragonServer();}}, + {"scripts\\ai\\GENERAL\\L_INSTANCE_EXIT_TRANSFER_PLAYER_TO_LAST_NON_INSTANCE.lua", []() {return new InstanceExitTransferPlayerToLastNonInstance();}}, + {"scripts\\ai\\FV\\L_NPC_FREE_GF_NINJAS.lua", []() {return new FvFreeGfNinjas();}}, + {"scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua", []() {return new FvPandaSpawnerServer();}}, + {"scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua", []() {return new FvPandaServer();}}, + {"scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua", []() {return new ZoneFvProperty();}}, + {"scripts\\ai\\FV\\L_FV_BRICK_PUZZLE_SERVER.lua", []() {return new FvBrickPuzzleServer();}}, + {"scripts\\ai\\FV\\L_FV_CONSOLE_LEFT_QUICKBUILD.lua", []() {return new FvConsoleLeftQuickbuild();}}, + {"scripts\\ai\\FV\\L_FV_CONSOLE_RIGHT_QUICKBUILD.lua", []() {return new FvConsoleRightQuickbuild();}}, + {"scripts\\ai\\FV\\L_FV_FACILITY_BRICK.lua", []() {return new FvFacilityBrick();}}, + {"scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua", []() {return new FvFacilityPipes();}}, + {"scripts\\02_server\\Map\\FV\\L_IMG_BRICK_CONSOLE_QB.lua", []() {return new ImgBrickConsoleQB();}}, + {"scripts\\ai\\FV\\L_ACT_PARADOX_PIPE_FIX.lua", []() {return new ActParadoxPipeFix();}}, + {"scripts\\ai\\FV\\L_FV_NINJA_GUARDS.lua", []() {return new FvNinjaGuard();}}, + {"scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua", []() {return new FvPassThroughWall();}}, + {"scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua", []() {return new FvBounceOverWall();}}, + {"scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua", []() {return new FvFong();}}, + {"scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua", []() {return new FvMaelstromGeyser();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\RACE_SHIP_LAP_COLUMNS_SERVER.lua", []() {return new RaceShipLapColumnsServer();}}, //yes we know the lap numbers dont match the file name or anim. Thats what they desgined it as. - {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua", [](){return new FvRaceDragon("lap_01", 2);}}, - {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua", [](){return new FvRaceDragon("lap_02", 0);}}, - {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua", [](){return new FvRaceDragon("lap_03", 1);}}, - {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua", [](){return new FvRacePillarABCServer();}}, - {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua", [](){return new FvRacePillarDServer();}}, - {"scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua", [](){return new RaceFireballs();}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP1_SERVER.lua", []() {return new FvRaceDragon("lap_01", 2);}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP2_SERVER.lua", []() {return new FvRaceDragon("lap_02", 0);}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_DRAGON_LAP3_SERVER.lua", []() {return new FvRaceDragon("lap_03", 1);}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_ABC_SERVER.lua", []() {return new FvRacePillarABCServer();}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_PILLAR_D_SERVER.lua", []() {return new FvRacePillarDServer();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\RACE_FIREBALLS.lua", []() {return new RaceFireballs();}}, //Misc. - {"scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua", [](){return new ExplodingAsset();}}, - {"scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua", [](){return new WishingWellServer();}}, - {"scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua", [](){return new ActPlayerDeathTrigger();}}, - {"scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua", [](){return new GrowingFlower();}}, - {"scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua", [](){return new TokenConsoleServer();}}, - {"scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua", [](){return new BaseFootRaceManager();}}, - {"scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua", [](){return new PropertyPlatform();}}, - {"scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua", [](){return new VeBricksampleServer();}}, - {"scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua", [](){return new MailBoxServer();}}, - {"scripts\\ai\\ACT\\L_ACT_MINE.lua", [](){return new ActMine();}}, - {"scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua", [](){return new WanderingVendor();}}, + {"scripts\\02_server\\Map\\General\\L_EXPLODING_ASSET.lua", []() {return new ExplodingAsset();}}, + {"scripts\\02_server\\Map\\General\\L_WISHING_WELL_SERVER.lua", []() {return new WishingWellServer();}}, + {"scripts\\ai\\ACT\\L_ACT_PLAYER_DEATH_TRIGGER.lua", []() {return new ActPlayerDeathTrigger();}}, + {"scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua", []() {return new GrowingFlower();}}, + {"scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua", []() {return new TokenConsoleServer();}}, + {"scripts\\ai\\ACT\\FootRace\\L_ACT_BASE_FOOT_RACE.lua", []() {return new BaseFootRaceManager();}}, + {"scripts\\02_server\\Map\\General\\L_PROP_PLATFORM.lua", []() {return new PropertyPlatform();}}, + {"scripts\\02_server\\Map\\VE\\L_VE_BRICKSAMPLE_SERVER.lua", []() {return new VeBricksampleServer();}}, + {"scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua", []() {return new MailBoxServer();}}, + {"scripts\\ai\\ACT\\L_ACT_MINE.lua", []() {return new ActMine();}}, + {"scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua", []() {return new WanderingVendor();}}, //Racing - {"scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua", [](){return new RaceImagineCrateServer();}}, - {"scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua", [](){return new ActVehicleDeathTrigger();}}, - {"scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua", [](){return new RaceImaginePowerup();}}, - {"scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua", [](){return new RaceMaelstromGeiser();}}, - {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua", [](){return new FvRaceSmashEggImagineServer();}}, - {"scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua", [](){return new FvRacingColumns();}}, - {"scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua", [](){return new RaceSmashServer();}}, + {"scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_CRATE_SERVER.lua", []() {return new RaceImagineCrateServer();}}, + {"scripts\\ai\\ACT\\L_ACT_VEHICLE_DEATH_TRIGGER.lua", []() {return new ActVehicleDeathTrigger();}}, + {"scripts\\ai\\RACING\\OBJECTS\\RACE_IMAGINE_POWERUP.lua", []() {return new RaceImaginePowerup();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\RACE_MAELSTROM_GEISER.lua", []() {return new RaceMaelstromGeiser();}}, + {"scripts\\ai\\RACING\\OBJECTS\\FV_RACE_SMASH_EGG_IMAGINE_SERVER.lua", []() {return new FvRaceSmashEggImagineServer();}}, + {"scripts\\02_server\\Map\\FV\\Racing\\FV_RACING_COLUMNS.lua", []() {return new FvRacingColumns();}}, + {"scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua", []() {return new RaceSmashServer();}}, //NT - {"scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua", [](){return new NtSentinelWalkwayServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua", [](){return new NtParadoxTeleServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua", [](){return new NtDarkitectRevealServer();}}, - {"scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua", [](){return new BankInteractServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua", [](){return new NtVentureSpeedPadServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua", [](){return new NtVentureCannonServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua", [](){return new NtCombatChallengeServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua", [](){return new NtCombatChallengeDummy();}}, - {"scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua", [](){return new NtCombatChallengeExplodingDummy();}}, - {"scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua", [](){return new BaseInteractDropLootServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua", [](){return new NtAssemblyTubeServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua", [](){return new NtParadoxPanelServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua", [](){return new NtImagBeamBuffer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua", [](){return new NtBeamImaginationCollectors();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua", [](){return new NtDirtCloudServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua", [](){return new NtConsoleTeleportServer();}}, - {"scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua", [](){return new SpawnStegoServer();}}, - {"scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua", [](){return new SpawnSaberCatServer();}}, - {"scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua", [](){return new SpawnShrakeServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua", [](){return new NtDukeServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua", [](){return new NtHaelServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua", [](){return new NtFactionSpyServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua", [](){return new NtOverbuildServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua", [](){return new NtVandaServer();}}, - {"scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua", [](){return new ForceVolumeServer();}}, - {"scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua", [](){return new FrictionVolumeServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua", [](){return new NtXRayServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua", [](){return new NtSleepingGuard();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua", [](){return new NTImagimeterVisibility();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua", [](){return new NTPipeVisibilityServer();}}, - {"scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua", [](){return new MinigameBlueMark();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua", [](){return new NtNaomiBreadcrumbServer();}}, - {"scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua", [](){return new NTNaomiDirtServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_SENTINELWALKWAY_SERVER.lua", []() {return new NtSentinelWalkwayServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_PARADOXTELE_SERVER.lua", []() {return new NtParadoxTeleServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_DARKITECT_REVEAL_SERVER.lua", []() {return new NtDarkitectRevealServer();}}, + {"scripts\\02_server\\Map\\General\\L_BANK_INTERACT_SERVER.lua", []() {return new BankInteractServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_VENTURESPEEDPAD_SERVER.lua", []() {return new NtVentureSpeedPadServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_VENTURE_CANNON_SERVER.lua", []() {return new NtVentureCannonServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_SERVER.lua", []() {return new NtCombatChallengeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_COMBAT_CHALLENGE_DUMMY.lua", []() {return new NtCombatChallengeDummy();}}, + {"scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua", []() {return new NtCombatChallengeExplodingDummy();}}, + {"scripts\\02_server\\Map\\General\\L_BASE_INTERACT_DROP_LOOT_SERVER.lua", []() {return new BaseInteractDropLootServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_ASSEMBLYTUBE_SERVER.lua", []() {return new NtAssemblyTubeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_PARADOX_PANEL_SERVER.lua", []() {return new NtParadoxPanelServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_IMAG_BEAM_BUFFER.lua", []() {return new NtImagBeamBuffer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_BEAM_IMAGINATION_COLLECTORS.lua", []() {return new NtBeamImaginationCollectors();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_DIRT_CLOUD_SERVER.lua", []() {return new NtDirtCloudServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_CONSOLE_TELEPORT_SERVER.lua", []() {return new NtConsoleTeleportServer();}}, + {"scripts\\02_server\\Map\\NT\\L_SPAWN_STEGO_SERVER.lua", []() {return new SpawnStegoServer();}}, + {"scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua", []() {return new SpawnSaberCatServer();}}, + {"scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua", []() {return new SpawnShrakeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_DUKE_SERVER.lua", []() {return new NtDukeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_HAEL_SERVER.lua", []() {return new NtHaelServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua", []() {return new NtFactionSpyServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_OVERBUILD_SERVER.lua", []() {return new NtOverbuildServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_VANDA_SERVER.lua", []() {return new NtVandaServer();}}, + {"scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua", []() {return new ForceVolumeServer();}}, + {"scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua", []() {return new FrictionVolumeServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_XRAY_SERVER.lua", []() {return new NtXRayServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_SLEEPING_GUARD.lua", []() {return new NtSleepingGuard();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua", []() {return new NTImagimeterVisibility();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_PIPE_VISIBILITY_SERVER.lua", []() {return new NTPipeVisibilityServer();}}, + {"scripts\\ai\\MINIGAME\\Objects\\MINIGAME_BLUE_MARK.lua", []() {return new MinigameBlueMark();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_NAOMI_BREADCRUMB_SERVER.lua", []() {return new NtNaomiBreadcrumbServer();}}, + {"scripts\\02_server\\Map\\NT\\L_NT_NAOMI_DIRT_SERVER.lua", []() {return new NTNaomiDirtServer();}}, //AM Crux - {"scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua", [](){return new AmConsoleTeleportServer();}}, - {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua", [](){return new RandomSpawnerFin();}}, - {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua", [](){return new RandomSpawnerPit();}}, - {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua", [](){return new RandomSpawnerStr();}}, - {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua", [](){return new RandomSpawnerZip();}}, - {"scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua", [](){return new AmDarklingMech();}}, - {"scripts\\02_server\\Map\\AM\\L_BRIDGE.lua", [](){return new AmBridge();}}, - {"scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua", [](){return new AmDrawBridge();}}, - {"scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua", [](){return new AmShieldGenerator();}}, - {"scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua", [](){return new AmShieldGeneratorQuickbuild();}}, - {"scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua", [](){return new AmDropshipComputer();}}, - {"scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua", [](){return new AmScrollReaderServer();}}, - {"scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua", [](){return new AmTemplateSkillVolume();}}, - {"scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua", [](){return new EnemyNjBuff();}}, - {"scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua", [](){return new AmSkeletonEngineer();}}, - {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua", [](){return new AmSkullkinDrill();}}, - {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua", [](){return new AmSkullkinDrillStand();}}, - {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua", [](){return new AmSkullkinTower();}}, - {"scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua", [](){return new AmDarklingDragon();}}, - {"scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua", [](){return new BaseEnemyApe();}}, - {"scripts\\02_server\\Map\\AM\\L_BLUE_X.lua", [](){return new AmBlueX();}}, - {"scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua", [](){return new AmTeapotServer();}}, + {"scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua", []() {return new AmConsoleTeleportServer();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_FIN.lua", []() {return new RandomSpawnerFin();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_PIT.lua", []() {return new RandomSpawnerPit();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_STR.lua", []() {return new RandomSpawnerStr();}}, + {"scripts\\02_server\\Map\\AM\\L_RANDOM_SPAWNER_ZIP.lua", []() {return new RandomSpawnerZip();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_MECH.lua", []() {return new AmDarklingMech();}}, + {"scripts\\02_server\\Map\\AM\\L_BRIDGE.lua", []() {return new AmBridge();}}, + {"scripts\\02_server\\Map\\AM\\L_DRAW_BRIDGE.lua", []() {return new AmDrawBridge();}}, + {"scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR.lua", []() {return new AmShieldGenerator();}}, + {"scripts\\02_server\\Map\\AM\\L_SHIELD_GENERATOR_QUICKBUILD.lua", []() {return new AmShieldGeneratorQuickbuild();}}, + {"scripts\\02_server\\Map\\AM\\L_DROPSHIP_COMPUTER.lua", []() {return new AmDropshipComputer();}}, + {"scripts\\02_server\\Map\\AM\\L_SCROLL_READER_SERVER.lua", []() {return new AmScrollReaderServer();}}, + {"scripts\\02_server\\Map\\AM\\L_TEMPLE_SKILL_VOLUME.lua", []() {return new AmTemplateSkillVolume();}}, + {"scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF.lua", []() {return new EnemyNjBuff();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_SKELETON_ENGINEER.lua", []() {return new AmSkeletonEngineer();}}, + {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL.lua", []() {return new AmSkullkinDrill();}}, + {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_DRILL_STAND.lua", []() {return new AmSkullkinDrillStand();}}, + {"scripts\\02_server\\Map\\AM\\L_SKULLKIN_TOWER.lua", []() {return new AmSkullkinTower();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_NAMED_DARKLING_DRAGON.lua", []() {return new AmDarklingDragon();}}, + {"scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua", []() {return new BaseEnemyApe();}}, + {"scripts\\02_server\\Map\\AM\\L_BLUE_X.lua", []() {return new AmBlueX();}}, + {"scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua", []() {return new AmTeapotServer();}}, //Ninjago - {"scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua", [](){return new NjGarmadonCelebration();}}, - {"scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua", [](){return new NjWuNPC();}}, - {"scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua", [](){return new NjScrollChestServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua", [](){return new NjColeNPC();}}, - {"scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua", [](){return new NjJayMissionItems();}}, - {"scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua", [](){return new NjNPCMissionSpinjitzuServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua", [](){return new EnemySkeletonSpawner();}}, - {"scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua", [](){return new NjRailSwitch();}}, - {"scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua", [](){return new NjRailActivatorsServer();}}, - {"scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua", [](){return new NjRailPostServer();}}, - {"scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua", [](){return new NjIceRailActivator();}}, - {"scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua", [](){return new FallingTile();}}, - {"scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua", [](){return new EnemyNjBuff();}}, - {"scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua", [](){return new ImaginationShrineServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua", [](){return new Lieutenant();}}, - {"scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua", [](){return new RainOfArrows();}}, - {"scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua", [](){return new CavePrisonCage();}}, - {"scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua", [](){return new NjMonastryBossInstance();}}, - {"scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua", [](){return new CatapultBouncerServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua", [](){return new CatapultBaseServer();}}, - {"scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua", [](){return new NjhubLavaPlayerDeathTrigger();}}, - {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua", [](){return new MonCoreNookDoors();}}, - {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", [](){return new MonCoreSmashableDoors();}}, - {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", [](){return new MonCoreSmashableDoors();}}, - {"scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua", [](){return new FlameJetServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua", [](){return new BurningTile();}}, - {"scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua", [](){return new NjEarthDragonPetServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua", [](){return new NjEarthPetServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua", [](){return new NjDragonEmblemChestServer();}}, - {"scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua", [](){return new NjNyaMissionitems();}}, + {"scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua", []() {return new NjGarmadonCelebration();}}, + {"scripts\\02_server\\Map\\njhub\\L_WU_NPC.lua", []() {return new NjWuNPC();}}, + {"scripts\\02_server\\Map\\njhub\\L_SCROLL_CHEST_SERVER.lua", []() {return new NjScrollChestServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_COLE_NPC.lua", []() {return new NjColeNPC();}}, + {"scripts\\02_server\\Map\\njhub\\L_JAY_MISSION_ITEMS.lua", []() {return new NjJayMissionItems();}}, + {"scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua", []() {return new NjNPCMissionSpinjitzuServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua", []() {return new EnemySkeletonSpawner();}}, + {"scripts\\02_server\\Map\\General\\L_NJ_RAIL_SWITCH.lua", []() {return new NjRailSwitch();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_ACTIVATORS_SERVER.lua", []() {return new NjRailActivatorsServer();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_RAIL_POST_SERVER.lua", []() {return new NjRailPostServer();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_ICE_RAIL_ACTIVATOR_SERVER.lua", []() {return new NjIceRailActivator();}}, + {"scripts\\02_server\\Map\\njhub\\L_FALLING_TILE.lua", []() {return new FallingTile();}}, + {"scripts\\02_server\\Enemy\\General\\L_ENEMY_NJ_BUFF_STUN_IMMUNITY.lua", []() {return new EnemyNjBuff();}}, + {"scripts\\02_server\\Map\\njhub\\L_IMAGINATION_SHRINE_SERVER.lua", []() {return new ImaginationShrineServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_LIEUTENANT.lua", []() {return new Lieutenant();}}, + {"scripts\\02_server\\Map\\njhub\\L_RAIN_OF_ARROWS.lua", []() {return new RainOfArrows();}}, + {"scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua", []() {return new CavePrisonCage();}}, + {"scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua", []() {return new NjMonastryBossInstance();}}, + {"scripts\\02_server\\Map\\njhub\\L_CATAPULT_BOUNCER_SERVER.lua", []() {return new CatapultBouncerServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_CATAPULT_BASE_SERVER.lua", []() {return new CatapultBaseServer();}}, + {"scripts\\02_server\\Map\\General\\Ninjago\\L_NJHUB_LAVA_PLAYER_DEATH_TRIGGER.lua", []() {return new NjhubLavaPlayerDeathTrigger();}}, + {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_NOOK_DOORS.lua", []() {return new MonCoreNookDoors();}}, + {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", []() {return new MonCoreSmashableDoors();}}, + {"scripts\\02_server\\Map\\njhub\\L_MON_CORE_SMASHABLE_DOORS.lua", []() {return new MonCoreSmashableDoors();}}, + {"scripts\\02_server\\Map\\njhub\\L_FLAME_JET_SERVER.lua", []() {return new FlameJetServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_BURNING_TILE.lua", []() {return new BurningTile();}}, + {"scripts\\02_server\\Map\\njhub\\L_SPAWN_EARTH_PET_SERVER.lua", []() {return new NjEarthDragonPetServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua", []() {return new NjEarthPetServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua", []() {return new NjDragonEmblemChestServer();}}, + {"scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua", []() {return new NjNyaMissionitems();}}, //DLU - {"scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua", [](){return new DLUVanityTeleportingObject();}}, + {"scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua", []() {return new DLUVanityTeleportingObject();}}, //Survival Minigame - {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua", [](){return new AgSurvivalStromling();}}, - {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua", [](){return new AgSurvivalMech();}}, - {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua", [](){return new AgSurvivalSpiderling();}}, + {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua", []() {return new AgSurvivalStromling();}}, + {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua", []() {return new AgSurvivalMech();}}, + {"scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua", []() {return new AgSurvivalSpiderling();}}, //Scripted Equipment - {"scripts\\EquipmentScripts\\Sunflower.lua", [](){return new Sunflower();}}, - {"scripts/EquipmentScripts/AnvilOfArmor.lua", [](){return new AnvilOfArmor();}}, - {"scripts/EquipmentScripts/FountainOfImagination.lua", [](){return new FountainOfImagination();}}, - {"scripts/EquipmentScripts/CauldronOfLife.lua", [](){return new CauldronOfLife();}}, - {"scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua", [](){return new BootyDigServer();}}, - {"scripts\\EquipmentScripts\\PersonalFortress.lua", [](){return new PersonalFortress();}}, - {"scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua", [](){return new PropertyDevice();}}, - {"scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua", [](){return new ImaginationBackpackHealServer();}}, - {"scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua", [](){return new LegoDieRoll();}}, - {"scripts\\EquipmentScripts\\BuccaneerValiantShip.lua", [](){return new BuccaneerValiantShip();}}, - {"scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua", [](){return new FireFirstSkillonStartup();}}, - {"scripts\\equipmenttriggers\\gempack.lua", [](){return new GemPack();}}, - {"scripts\\equipmenttriggers\\shardarmor.lua", [](){return new ShardArmor();}}, - {"scripts\\equipmenttriggers\\coilbackpack.lua", [](){return new TeslaPack();}}, - {"scripts\\EquipmentScripts\\stunImmunity.lua", [](){return new StunImmunity();}}, + {"scripts\\EquipmentScripts\\Sunflower.lua", []() {return new Sunflower();}}, + {"scripts/EquipmentScripts/AnvilOfArmor.lua", []() {return new AnvilOfArmor();}}, + {"scripts/EquipmentScripts/FountainOfImagination.lua", []() {return new FountainOfImagination();}}, + {"scripts/EquipmentScripts/CauldronOfLife.lua", []() {return new CauldronOfLife();}}, + {"scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua", []() {return new BootyDigServer();}}, + {"scripts\\EquipmentScripts\\PersonalFortress.lua", []() {return new PersonalFortress();}}, + {"scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua", []() {return new PropertyDevice();}}, + {"scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua", []() {return new ImaginationBackpackHealServer();}}, + {"scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua", []() {return new LegoDieRoll();}}, + {"scripts\\EquipmentScripts\\BuccaneerValiantShip.lua", []() {return new BuccaneerValiantShip();}}, + {"scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua", []() {return new FireFirstSkillonStartup();}}, + {"scripts\\equipmenttriggers\\gempack.lua", []() {return new GemPack();}}, + {"scripts\\equipmenttriggers\\shardarmor.lua", []() {return new ShardArmor();}}, + {"scripts\\equipmenttriggers\\coilbackpack.lua", []() {return new TeslaPack();}}, + {"scripts\\EquipmentScripts\\stunImmunity.lua", []() {return new StunImmunity();}}, //FB - {"scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua", [](){return new RockHydrantBroken();}}, - {"scripts\\ai\\NS\\L_NS_WH_FANS.lua", [](){return new WhFans();}}, + {"scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua", []() {return new RockHydrantBroken();}}, + {"scripts\\ai\\NS\\L_NS_WH_FANS.lua", []() {return new WhFans();}}, //WBL - {"scripts\\zone\\LUPs\\WBL_generic_zone.lua", [](){return new WblGenericZone();}}, + {"scripts\\zone\\LUPs\\WBL_generic_zone.lua", []() {return new WblGenericZone();}}, //Alpha - {"scripts\\ai\\FV\\L_TRIGGER_GAS.lua", [](){return new TriggerGas();}}, - {"scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua", [](){return new ActNinjaSensei();}}, + {"scripts\\ai\\FV\\L_TRIGGER_GAS.lua", []() {return new TriggerGas();}}, + {"scripts\\ai\\FV\\L_ACT_NINJA_SENSEI.lua", []() {return new ActNinjaSensei();}}, //Pickups - {"scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(1);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(100);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(10);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(100000);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(1000);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(25);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(250000);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua", [](){return new SpecialCoinSpawner(2500);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua", [](){return new SpecialPowerupSpawner(13);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua", [](){return new SpecialPowerupSpawner(129);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua", [](){return new SpecialPowerupSpawner(5);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua", [](){return new SpecialPowerupSpawner(747);}}, - {"scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua", [](){return new SpecialSpeedBuffSpawner();}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(1);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(100);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(10);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(100000);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_10_SILVER-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(1000);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_25_BRONZE-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(25);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(250000);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua", []() {return new SpecialCoinSpawner(2500);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua", []() {return new SpecialPowerupSpawner(13);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua", []() {return new SpecialPowerupSpawner(129);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua", []() {return new SpecialPowerupSpawner(5);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua", []() {return new SpecialPowerupSpawner(747);}}, + {"scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua", []() {return new SpecialSpeedBuffSpawner();}}, //Wild - {"scripts\\ai\\WILD\\L_WILD_GF_RAT.lua", [](){return new WildAndScared();}}, - {"scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua", [](){return new WildAndScared();}}, - {"scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua", [](){return new WildGfGlowbug();}}, - {"scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua", [](){return new WildAmbientCrab();}}, - {"scripts\\ai\\WILD\\L_WILD_PANTS.lua", [](){return new WildPants();}}, - {"scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua", [](){return new WildNinjaBricks();}}, - {"scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua", [](){return new WildNinjaStudent();}}, - {"scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua", [](){return new WildNinjaSensei();}}, - {"scripts\\ai\\WILD\\L_LUP_generic_interact.lua", [](){return new LupGenericInteract();}}, - {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenBlue.lua", [](){return new WblRobotCitizen();}}, - {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenGreen.lua", [](){return new WblRobotCitizen();}}, - {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenOrange.lua", [](){return new WblRobotCitizen();}}, - {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenRed.lua", [](){return new WblRobotCitizen();}}, - {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenYellow.lua", [](){return new WblRobotCitizen();}}, - - }; + {"scripts\\ai\\WILD\\L_WILD_GF_RAT.lua", []() {return new WildAndScared();}}, + {"scripts\\ai\\WILD\\L_WILD_GF_SNAIL.lua", []() {return new WildAndScared();}}, + {"scripts\\ai\\WILD\\L_WILD_GF_GLOWBUG.lua", []() {return new WildGfGlowbug();}}, + {"scripts\\ai\\WILD\\L_WILD_AMBIENT_CRAB.lua", []() {return new WildAmbientCrab();}}, + {"scripts\\ai\\WILD\\L_WILD_PANTS.lua", []() {return new WildPants();}}, + {"scripts\\ai\\WILD\\L_WILD_NINJA_BRICKS.lua", []() {return new WildNinjaBricks();}}, + {"scripts\\ai\\WILD\\L_WILD_NINJA_STUDENT.lua", []() {return new WildNinjaStudent();}}, + {"scripts\\ai\\WILD\\L_WILD_NINJA_SENSEI.lua", []() {return new WildNinjaSensei();}}, + {"scripts\\ai\\WILD\\L_LUP_generic_interact.lua", []() {return new LupGenericInteract();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenBlue.lua", []() {return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenGreen.lua", []() {return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenOrange.lua", []() {return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenRed.lua", []() {return new WblRobotCitizen();}}, + {"scripts\\zone\\LUPs\\RobotCity Intro\\WBL_RCIntro_RobotCitizenYellow.lua", []() {return new WblRobotCitizen();}}, + + }; }; CppScripts::Script* const CppScripts::GetScript(Entity* parent, const std::string& scriptName) { - auto itr = g_Scripts.find(scriptName); - if (itr != g_Scripts.end()) { - return itr->second; - } - - const auto itrTernary = scriptLoader.find(scriptName); - Script* script = itrTernary != scriptLoader.cend() ? itrTernary->second() : &InvalidToReturn; - - if (script == &InvalidToReturn) { - if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || - (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua") || - (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || - (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") || - (scriptName == "scripts\\empty.lua") - )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); - } - - g_Scripts[scriptName] = script; - return script; + auto itr = g_Scripts.find(scriptName); + if (itr != g_Scripts.end()) { + return itr->second; + } + + const auto itrTernary = scriptLoader.find(scriptName); + Script* script = itrTernary != scriptLoader.cend() ? itrTernary->second() : &InvalidToReturn; + + if (script == &InvalidToReturn) { + if ((scriptName.length() > 0) && !((scriptName == "scripts\\02_server\\Enemy\\General\\L_SUSPEND_LUA_AI.lua") || + (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua") || + (scriptName == "scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") || + (scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") || + (scriptName == "scripts\\empty.lua") + )) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str()); + } + + g_Scripts[scriptName] = script; + return script; } -CppScripts::Script* const CppScripts::GetInvalidScript(){ +CppScripts::Script* const CppScripts::GetInvalidScript() { return &InvalidToReturn; } From f035beffec05c07515dbdd4028e9747227b8c82a Mon Sep 17 00:00:00 2001 From: TAHuntling <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:40:16 -0500 Subject: [PATCH 08/13] Delete tests/dGameTests/dScriptsTests/CMakeLists.txt --- tests/dGameTests/dScriptsTests/CMakeLists.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/dGameTests/dScriptsTests/CMakeLists.txt diff --git a/tests/dGameTests/dScriptsTests/CMakeLists.txt b/tests/dGameTests/dScriptsTests/CMakeLists.txt deleted file mode 100644 index e69de29b..00000000 From 33668e2969af4bfed1fed19141947d06f5370151 Mon Sep 17 00:00:00 2001 From: TAHuntling <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:41:10 -0500 Subject: [PATCH 09/13] Delete tests/dGameTests/dScriptsTests/dScriptsTests.cpp --- tests/dGameTests/dScriptsTests/dScriptsTests.cpp | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/dGameTests/dScriptsTests/dScriptsTests.cpp diff --git a/tests/dGameTests/dScriptsTests/dScriptsTests.cpp b/tests/dGameTests/dScriptsTests/dScriptsTests.cpp deleted file mode 100644 index e69de29b..00000000 From 8c2f5d06a46e4d411a2b7f001cdc1a69f4704d25 Mon Sep 17 00:00:00 2001 From: TAHuntling <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:41:22 -0500 Subject: [PATCH 10/13] Delete tests/dGameTests/dScriptsTests/CppScriptsOld.cpp --- tests/dGameTests/dScriptsTests/CppScriptsOld.cpp | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/dGameTests/dScriptsTests/CppScriptsOld.cpp diff --git a/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp b/tests/dGameTests/dScriptsTests/CppScriptsOld.cpp deleted file mode 100644 index e69de29b..00000000 From 80fa75c1fd34312895289e7b71dd84054fc8b074 Mon Sep 17 00:00:00 2001 From: TAHuntling <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:41:33 -0500 Subject: [PATCH 11/13] Delete tests/dGameTests/dScriptsTests/CppScriptsOld.h --- tests/dGameTests/dScriptsTests/CppScriptsOld.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/dGameTests/dScriptsTests/CppScriptsOld.h diff --git a/tests/dGameTests/dScriptsTests/CppScriptsOld.h b/tests/dGameTests/dScriptsTests/CppScriptsOld.h deleted file mode 100644 index e69de29b..00000000 From 153fb5f132f1bf8e8f2d974a5b848197903320bd Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:43:13 -0500 Subject: [PATCH 12/13] Update CMakeLists.txt --- tests/dGameTests/CMakeLists.txt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/dGameTests/CMakeLists.txt b/tests/dGameTests/CMakeLists.txt index 3069e722..924e730e 100644 --- a/tests/dGameTests/CMakeLists.txt +++ b/tests/dGameTests/CMakeLists.txt @@ -8,27 +8,12 @@ list(APPEND DGAMETEST_SOURCES ${DCOMPONENTS_TESTS}) add_subdirectory(dGameMessagesTests) list(APPEND DGAMETEST_SOURCES ${DGAMEMESSAGES_TESTS}) -add_subdirectory(dScriptsTests) -list(APPEND DGAMETEST_SOURCES ${DSCRIPTS_TESTS}) - -include_directories(${CMAKE_SOURCE_DIR}/dScripts) - file(COPY ${GAMEMESSAGE_TESTBITSTREAMS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) # Add the executable. Remember to add all tests above this! add_executable(dGameTests ${DGAMETEST_SOURCES}) add_dependencies(dGameTests conncpp_tests) -target_include_directories(dGameTests PRIVATE - $ - $ - $ - $ - $ - $ - $ -) - # Apple needs some special linkage for the mariadb connector for tests. if(APPLE) add_custom_command(TARGET dGameTests POST_BUILD From 7661f3ef9cabb010d8eb83c061fc7dc34b006a4c Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Thu, 16 May 2024 00:45:01 -0500 Subject: [PATCH 13/13] finishing up --- CMakeLists.txt | 1 - tests/dGameTests/CMakeLists.txt | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cca1fff..aa517182 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,7 +229,6 @@ include_directories( "tests/dCommonTests" "tests/dGameTests" "tests/dGameTests/dComponentsTests" - "tests/dGameTests/dScriptsTests" SYSTEM "thirdparty/magic_enum/include/magic_enum" SYSTEM "thirdparty/raknet/Source" diff --git a/tests/dGameTests/CMakeLists.txt b/tests/dGameTests/CMakeLists.txt index 924e730e..58f213e0 100644 --- a/tests/dGameTests/CMakeLists.txt +++ b/tests/dGameTests/CMakeLists.txt @@ -16,10 +16,10 @@ add_dependencies(dGameTests conncpp_tests) # Apple needs some special linkage for the mariadb connector for tests. if(APPLE) - add_custom_command(TARGET dGameTests POST_BUILD - COMMAND install_name_tool ARGS -change libmariadbcpp.dylib @rpath/libmariadbcpp.dylib dGameTests - COMMAND otool ARGS -L dGameTests - WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) +add_custom_command(TARGET dGameTests POST_BUILD + COMMAND install_name_tool ARGS -change libmariadbcpp.dylib @rpath/libmariadbcpp.dylib dGameTests + COMMAND otool ARGS -L dGameTests + WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) endif() target_link_libraries(dGameTests ${COMMON_LIBRARIES} GTest::gtest_main