2022-04-17 04:33:44 +00:00
|
|
|
//I can feel my soul being torn apart with every script added to this monstrosity.
|
2021-12-05 17:54:36 +00:00
|
|
|
// skate fast eat trash
|
|
|
|
// do you think god stays in heaven because he too lives in fear of what he's created?
|
|
|
|
|
|
|
|
#include "CppScripts.h"
|
|
|
|
#include "GameMessages.h"
|
|
|
|
#include "Entity.h"
|
|
|
|
#include "ScriptComponent.h"
|
|
|
|
#include "Game.h"
|
2023-10-21 23:31:55 +00:00
|
|
|
#include "Logger.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
#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"
|
2022-01-20 11:20:24 +00:00
|
|
|
#include "AgSurvivalBuffStation.h"
|
2022-09-02 02:44:26 +00:00
|
|
|
#include "QbSpawner.h"
|
|
|
|
#include "AgQbWall.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// 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"
|
2022-08-18 20:33:32 +00:00
|
|
|
#include "GfArchway.h"
|
2022-08-25 20:51:22 +00:00
|
|
|
#include "GfMaelstromGeyser.h"
|
2022-08-26 02:09:08 +00:00
|
|
|
#include "PirateRep.h"
|
2022-08-27 03:58:41 +00:00
|
|
|
#include "GfParrotCrash.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// 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"
|
2022-08-28 02:48:03 +00:00
|
|
|
#include "FvFacilityPipes.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
#include "ImgBrickConsoleQB.h"
|
|
|
|
#include "ActParadoxPipeFix.h"
|
|
|
|
#include "FvNinjaGuard.h"
|
2022-02-05 12:00:10 +00:00
|
|
|
#include "FvPassThroughWall.h"
|
2022-01-23 01:39:54 +00:00
|
|
|
#include "FvBounceOverWall.h"
|
2022-05-01 13:54:45 +00:00
|
|
|
#include "FvFong.h"
|
2022-08-25 20:50:13 +00:00
|
|
|
#include "FvMaelstromGeyser.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// 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"
|
2022-02-21 03:51:54 +00:00
|
|
|
#include "MailBoxServer.h"
|
2022-05-18 00:12:43 +00:00
|
|
|
#include "ActMine.h"
|
2022-06-28 04:36:18 +00:00
|
|
|
#include "FireFirstSkillonStartup.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// Racing Scripts
|
|
|
|
#include "RaceImagineCrateServer.h"
|
|
|
|
#include "ActVehicleDeathTrigger.h"
|
|
|
|
#include "RaceImaginePowerup.h"
|
|
|
|
#include "RaceMaelstromGeiser.h"
|
|
|
|
#include "FvRaceSmashEggImagineServer.h"
|
|
|
|
#include "RaceSmashServer.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"
|
2022-02-07 11:43:09 +00:00
|
|
|
#include "NtCombatChallengeExplodingDummy.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
#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"
|
2022-08-18 05:09:14 +00:00
|
|
|
#include "NtImagimeterVisibility.h"
|
2023-12-23 07:53:21 +00:00
|
|
|
#include "FrictionVolumeServer.h"
|
|
|
|
#include "NTPipeVisibilityServer.h"
|
|
|
|
#include "NTNaomiDirtServer.h"
|
|
|
|
#include "MinigameBlueMark.h"
|
|
|
|
#include "NtNaomiBreadcrumbServer.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// DLU Scripts
|
2024-02-25 22:59:10 +00:00
|
|
|
#include "DLUVanityTeleportingObject.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// 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"
|
2022-01-19 10:10:04 +00:00
|
|
|
#include "AmDarklingDragon.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
#include "AmBlueX.h"
|
2022-05-10 04:21:20 +00:00
|
|
|
#include "AmTeapotServer.h"
|
2023-08-15 19:35:35 +00:00
|
|
|
#include "WanderingVendor.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// 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"
|
2021-12-15 19:23:49 +00:00
|
|
|
#include "LegoDieRoll.h"
|
2021-12-11 10:59:29 +00:00
|
|
|
#include "BuccaneerValiantShip.h"
|
2022-12-21 22:33:41 +00:00
|
|
|
#include "GemPack.h"
|
|
|
|
#include "ShardArmor.h"
|
|
|
|
#include "TeslaPack.h"
|
2023-03-08 13:31:45 +00:00
|
|
|
#include "StunImmunity.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// Survival scripts
|
|
|
|
#include "AgSurvivalStromling.h"
|
|
|
|
#include "AgSurvivalMech.h"
|
|
|
|
#include "AgSurvivalSpiderling.h"
|
|
|
|
|
2022-04-17 04:32:15 +00:00
|
|
|
// Frostburgh Scripts
|
|
|
|
#include "RockHydrantBroken.h"
|
|
|
|
#include "WhFans.h"
|
|
|
|
|
2022-09-02 18:49:38 +00:00
|
|
|
// WBL scripts
|
|
|
|
#include "WblGenericZone.h"
|
2022-09-03 02:52:57 +00:00
|
|
|
#include "LupGenericInteract.h"
|
|
|
|
#include "WblRobotCitizen.h"
|
2022-09-02 18:49:38 +00:00
|
|
|
|
2023-04-12 16:46:31 +00:00
|
|
|
// Alpha Scripts
|
|
|
|
#include "TriggerGas.h"
|
|
|
|
#include "ActNinjaSensei.h"
|
|
|
|
|
2023-04-09 03:07:25 +00:00
|
|
|
// pickups
|
2023-04-09 13:54:14 +00:00
|
|
|
#include "SpecialCoinSpawner.h"
|
|
|
|
#include "SpecialPowerupSpawner.h"
|
2023-04-09 18:21:57 +00:00
|
|
|
#include "SpecialSpeedBuffSpawner.h"
|
2023-04-09 03:07:25 +00:00
|
|
|
|
2023-04-09 15:17:05 +00:00
|
|
|
// Wild Scripts
|
|
|
|
#include "WildAndScared.h"
|
|
|
|
#include "WildGfGlowbug.h"
|
|
|
|
#include "WildAmbientCrab.h"
|
|
|
|
#include "WildPants.h"
|
2023-04-12 16:46:31 +00:00
|
|
|
#include "WildNinjaStudent.h"
|
|
|
|
#include "WildNinjaSensei.h"
|
|
|
|
#include "WildNinjaBricks.h"
|
2023-12-23 07:53:21 +00:00
|
|
|
#include "VisToggleNotifierServer.h"
|
2023-04-09 15:17:05 +00:00
|
|
|
|
2023-10-09 20:31:25 +00:00
|
|
|
namespace {
|
2024-03-07 01:49:29 +00:00
|
|
|
// This is in the translation unit instead of the header to prevent wierd linker errors
|
|
|
|
InvalidScript* const InvalidToReturn = new InvalidScript();
|
2023-10-09 20:31:25 +00:00
|
|
|
std::map<std::string, CppScripts::Script*> m_Scripts;
|
|
|
|
};
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2024-03-07 01:49:29 +00:00
|
|
|
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;
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|
|
|
|
|
2024-03-07 01:49:29 +00:00
|
|
|
Script* script = InvalidToReturn;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//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();
|
2021-12-08 02:14:15 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\AG\\L_AG_SPACE_STUFF.lua") // Broken, will (sometimes) display all animations at once on initial login
|
2021-12-05 17:54:36 +00:00
|
|
|
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();
|
2022-01-20 11:20:24 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua")
|
|
|
|
script = new AgSurvivalBuffStation();
|
2021-12-05 17:54:36 +00:00
|
|
|
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();
|
2022-07-28 13:39:57 +00:00
|
|
|
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")
|
2023-10-09 20:31:25 +00:00
|
|
|
script = new ZoneAgSpiderQueen();
|
2022-07-28 13:39:57 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\AG_Spider_Queen\\L_SPIDER_BOSS_TREASURE_CHEST_SERVER.lua")
|
|
|
|
script = new SpiderBossTreasureChestServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ZoneAgMedProperty();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\AG\\L_AG_STROMBIE_PROPERTY.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgStromlingProperty();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\AG\\L_AG_DARKLING_MECH.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new BaseEnemyMech();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\AG\\L_AG_DARK_SPIDERLING.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgDarkSpiderling();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROP_GUARDS.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgPropguards();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\PROPERTY\\L_PROPERTY_FX_DAMAGE.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new PropertyFXDamage();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\AG\\L_NPC_PIRATE_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NpcPirateServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\AG\\L_AG_PICNIC_BLANKET.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgPicnicBlanket();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\Property\\L_PROPERTY_BANK_INTERACT_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
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();
|
2021-12-05 17:54:36 +00:00
|
|
|
// 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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NsConcertChoiceBuildManager();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_CHOICEBUILD.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NsConcertChoiceBuild();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_QUICKBUILD.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NsConcertQuickBuild();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\AG\\L_AG_STAGE_PLATFORMS.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgStagePlatforms();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\NS\\L_NS_CONCERT_INSTRUMENT_QB.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NsConcertInstrument();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\NS\\L_NS_JONNY_FLAG_MISSION_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NsJohnnyMissionServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Objects\\L_STINKY_FISH_TARGET.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new StinkyFishTarget();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\zone\\PROPERTY\\NS\\L_ZONE_NS_PROPERTY.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ZoneNsProperty();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\Property\\NS_Med\\L_ZONE_NS_MED_PROPERTY.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ZoneNsMedProperty();
|
2021-12-05 17:54:36 +00:00
|
|
|
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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ZoneNsWaves();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HAMMERLING_ENEMY_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new WaveBossHammerling();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_APE_ENEMY_SERVER.lua")
|
2023-10-09 20:31:25 +00:00
|
|
|
script = new WaveBossApe();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_DARK_SPIDERLING_ENEMY_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new WaveBossSpiderling();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\Waves\\L_WAVES_BOSS_HORESEMEN_ENEMY_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new WaveBossHorsemen();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Minigame\\General\\L_MINIGAME_TREASURE_CHEST_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new MinigameTreasureChestServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\NS\\L_NS_LEGO_CLUB_DOOR.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NsLegoClubDoor();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts/ai/NS/L_CL_RING.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ClRing();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\WILD\\L_WILD_AMBIENTS.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new WildAmbients();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\NS\\NS_PP_01\\L_NS_PP_01_TELEPORT.lua")
|
|
|
|
script = new PropertyDeathPlane();
|
2022-09-02 02:44:26 +00:00
|
|
|
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();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new PetDigBuild(); // Technically also used once in AG
|
2021-12-05 17:54:36 +00:00
|
|
|
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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ZoneGfProperty();
|
2022-08-25 20:51:22 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\GF\\L_GF_ARCHWAY.lua")
|
2022-08-18 20:33:32 +00:00
|
|
|
script = new GfArchway();
|
2022-08-25 20:51:22 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\GF\\L_GF_MAELSTROM_GEYSER.lua")
|
|
|
|
script = new GfMaelstromGeyser();
|
2022-08-26 02:09:08 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\GF\\L_PIRATE_REP.lua")
|
|
|
|
script = new PirateRep();
|
2022-08-27 03:58:41 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\GF\\L_GF_PARROT_CRASH.lua")
|
|
|
|
script = new GfParrotCrash();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// SG
|
|
|
|
else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\SERVER\\SG_CANNON.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new SGCannon();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\MINIGAME\\SG_GF\\L_ZONE_SG_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ZoneSGServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//PR:
|
|
|
|
else if (scriptName == "scripts\\client\\ai\\PR\\L_PR_WHISTLE.lua")
|
|
|
|
script = new PrWhistle();
|
2024-02-27 16:07:14 +00:00
|
|
|
if (scriptName == "scripts\\02_server\\Map\\PR\\L_PR_SEAGULL_FLY.lua")
|
2021-12-05 17:54:36 +00:00
|
|
|
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();
|
2022-07-28 13:39:57 +00:00
|
|
|
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();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new FvFreeGfNinjas();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SPAWNER_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new FvPandaSpawnerServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\FV\\L_FV_PANDA_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new FvPandaServer();
|
|
|
|
else if (scriptName == "scripts\\zone\\PROPERTY\\FV\\L_ZONE_FV_PROPERTY.lua")
|
|
|
|
script = new ZoneFvProperty();
|
2021-12-05 17:54:36 +00:00
|
|
|
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();
|
2022-08-28 02:48:03 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\FV\\L_FV_FACILITY_PIPES.lua")
|
|
|
|
script = new FvFacilityPipes();
|
2021-12-05 17:54:36 +00:00
|
|
|
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();
|
2022-02-05 12:00:10 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\FV\\L_ACT_PASS_THROUGH_WALL.lua")
|
|
|
|
script = new FvPassThroughWall();
|
2022-01-23 01:39:54 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\FV\\L_ACT_BOUNCE_OVER_WALL.lua")
|
|
|
|
script = new FvBounceOverWall();
|
2022-05-01 13:54:45 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\FV\\L_NPC_FONG.lua")
|
|
|
|
script = new FvFong();
|
2022-08-25 20:50:13 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\FV\\L_FV_MAELSTROM_GEYSER.lua") {
|
|
|
|
script = new FvMaelstromGeyser();
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//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();
|
2022-07-28 13:39:57 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\General\\L_GROWING_FLOWER_SERVER.lua")
|
|
|
|
script = new GrowingFlower();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\General\\L_TOKEN_CONSOLE_SERVER.lua")
|
|
|
|
script = new TokenConsoleServer();
|
2022-07-28 13:39:57 +00:00
|
|
|
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")
|
2023-10-09 20:31:25 +00:00
|
|
|
script = new VeBricksampleServer();
|
2022-02-21 03:51:54 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\General\\L_MAIL_BOX_SERVER.lua")
|
|
|
|
script = new MailBoxServer();
|
2022-05-18 00:12:43 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\ACT\\L_ACT_MINE.lua")
|
|
|
|
script = new ActMine();
|
2024-03-07 08:44:09 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\AM\\L_WANDERING_VENDOR.lua")
|
|
|
|
script = new WanderingVendor();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new FvRaceSmashEggImagineServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\RACING\\OBJECTS\\RACE_SMASH_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new RaceSmashServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//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();
|
2022-02-07 11:43:09 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\NT\\\\L_NT_COMBAT_EXPLODING_TARGET.lua")
|
|
|
|
script = new NtCombatChallengeExplodingDummy();
|
2021-12-05 17:54:36 +00:00
|
|
|
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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new SpawnStegoServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SABERCAT_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new SpawnSaberCatServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\NT\\L_SPAWN_SHRAKE_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
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();
|
2023-12-23 07:53:21 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_FACTION_SPY_SERVER.lua")
|
|
|
|
script = new NtFactionSpyServer();
|
2022-07-28 13:39:57 +00:00
|
|
|
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();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\General\\L_FORCE_VOLUME_SERVER.lua")
|
|
|
|
script = new ForceVolumeServer();
|
2023-12-23 07:53:21 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\General\\L_FRICTION_VOLUME_SERVER.lua")
|
|
|
|
script = new FrictionVolumeServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
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();
|
2023-12-23 07:53:21 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\NT\\L_NT_IMAGIMETER_VISIBILITY_SERVER.lua")
|
2022-08-18 05:09:14 +00:00
|
|
|
script = new NTImagimeterVisibility();
|
2023-12-23 07:53:21 +00:00
|
|
|
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();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//AM:
|
2024-02-27 16:07:14 +00:00
|
|
|
if (scriptName == "scripts\\02_server\\Map\\AM\\L_AM_CONSOLE_TELEPORT_SERVER.lua")
|
2021-12-05 17:54:36 +00:00
|
|
|
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")
|
2022-01-19 10:10:04 +00:00
|
|
|
script = new AmDarklingDragon();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_DRAGON.lua")
|
2022-01-19 10:10:04 +00:00
|
|
|
script = new AmDarklingDragon();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\AM\\L_AM_DARKLING_APE.lua")
|
2022-01-18 10:28:06 +00:00
|
|
|
script = new BaseEnemyApe();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\AM\\L_BLUE_X.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AmBlueX();
|
2022-05-10 04:21:20 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\AM\\L_TEAPOT_SERVER.lua")
|
|
|
|
script = new AmTeapotServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// Ninjago
|
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_GARMADON_CELEBRATION_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
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")
|
2023-10-09 20:31:25 +00:00
|
|
|
script = new NjJayMissionItems();
|
2022-07-28 13:39:57 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NPC_MISSION_SPINJITZU_SERVER.lua")
|
|
|
|
script = new NjNPCMissionSpinjitzuServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_ENEMY_SKELETON_SPAWNER.lua")
|
|
|
|
script = new EnemySkeletonSpawner();
|
2022-07-28 13:39:57 +00:00
|
|
|
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();
|
2021-12-05 17:54:36 +00:00
|
|
|
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();
|
2024-02-27 16:07:14 +00:00
|
|
|
if (scriptName == "scripts\\02_server\\Map\\njhub\\L_CAVE_PRISON_CAGE.lua")
|
2021-12-05 17:54:36 +00:00
|
|
|
script = new CavePrisonCage();
|
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\njhub\\boss_instance\\L_MONASTERY_BOSS_INSTANCE_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NjMonastryBossInstance();
|
2021-12-05 17:54:36 +00:00
|
|
|
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")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NjEarthDragonPetServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_EARTH_PET_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NjEarthPetServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_DRAGON_EMBLEM_CHEST_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NjDragonEmblemChestServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\njhub\\L_NYA_MISSION_ITEMS.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new NjNyaMissionitems();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//DLU:
|
2024-02-25 22:59:10 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\DLU\\DLUVanityTeleportingObject.lua")
|
|
|
|
script = new DLUVanityTeleportingObject();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// Survival minigame
|
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_STROMBIE.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgSurvivalStromling();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARKLING_MECH.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgSurvivalMech();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Enemy\\Survival\\L_AG_SURVIVAL_DARK_SPIDERLING.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AgSurvivalSpiderling();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
// Scripted equipment
|
|
|
|
else if (scriptName == "scripts\\EquipmentScripts\\Sunflower.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new Sunflower();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts/EquipmentScripts/AnvilOfArmor.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new AnvilOfArmor();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts/EquipmentScripts/FountainOfImagination.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new FountainOfImagination();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts/EquipmentScripts/CauldronOfLife.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new CauldronOfLife();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Equipment\\L_BOOTYDIG_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new BootyDigServer();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\EquipmentScripts\\PersonalFortress.lua")
|
|
|
|
script = new PersonalFortress();
|
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\General\\L_PROPERTY_DEVICE.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new PropertyDevice();
|
2021-12-05 17:54:36 +00:00
|
|
|
else if (scriptName == "scripts\\02_server\\Map\\General\\L_IMAG_BACKPACK_HEALS_SERVER.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new ImaginationBackpackHealServer();
|
2021-12-15 19:23:49 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\GENERAL\\L_LEGO_DIE_ROLL.lua")
|
|
|
|
script = new LegoDieRoll();
|
2022-07-28 13:39:57 +00:00
|
|
|
else if (scriptName == "scripts\\EquipmentScripts\\BuccaneerValiantShip.lua")
|
|
|
|
script = new BuccaneerValiantShip();
|
2022-06-28 04:36:18 +00:00
|
|
|
else if (scriptName == "scripts\\EquipmentScripts\\FireFirstSkillonStartup.lua")
|
2022-07-28 13:39:57 +00:00
|
|
|
script = new FireFirstSkillonStartup();
|
2022-12-21 22:33:41 +00:00
|
|
|
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();
|
2023-03-08 13:31:45 +00:00
|
|
|
else if (scriptName == "scripts\\EquipmentScripts\\stunImmunity.lua")
|
|
|
|
script = new StunImmunity();
|
2022-09-02 18:49:38 +00:00
|
|
|
|
2022-04-17 04:32:15 +00:00
|
|
|
// FB
|
2022-04-17 04:33:44 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\NS\\WH\\L_ROCKHYDRANT_BROKEN.lua")
|
2022-04-17 04:32:15 +00:00
|
|
|
script = new RockHydrantBroken();
|
2022-04-17 05:05:04 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\NS\\L_NS_WH_FANS.lua")
|
2022-04-17 04:32:15 +00:00
|
|
|
script = new WhFans();
|
|
|
|
|
2022-09-02 18:49:38 +00:00
|
|
|
// WBL
|
|
|
|
else if (scriptName == "scripts\\zone\\LUPs\\WBL_generic_zone.lua")
|
|
|
|
script = new WblGenericZone();
|
|
|
|
|
2023-04-12 16:46:31 +00:00
|
|
|
// 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();
|
|
|
|
|
2023-04-09 03:07:25 +00:00
|
|
|
// pickups
|
|
|
|
if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_BRONZE-COIN-SPAWNER.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
script = new SpecialCoinSpawner(1);
|
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_GOLD-COIN-SPAWNER.lua")
|
|
|
|
script = new SpecialCoinSpawner(10000);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_1_SILVER-COIN-SPAWNER.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
script = new SpecialCoinSpawner(100);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_BRONZE-COIN-SPAWNER.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
script = new SpecialCoinSpawner(10);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_10_GOLD-COIN-SPAWNER.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
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);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_GOLD-COIN-SPAWNER.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
script = new SpecialCoinSpawner(250000);
|
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_25_SILVER-COIN-SPAWNER.lua")
|
|
|
|
script = new SpecialCoinSpawner(2500);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
script = new SpecialPowerupSpawner(13);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_IMAGINE-POWERUP-SPAWNER-2PT.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
script = new SpecialPowerupSpawner(129);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_LIFE-POWERUP-SPAWNER.lua")
|
2023-04-09 13:54:14 +00:00
|
|
|
script = new SpecialPowerupSpawner(5);
|
2023-04-09 03:07:25 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua")
|
2023-04-09 18:21:57 +00:00
|
|
|
script = new SpecialPowerupSpawner(747);
|
2023-04-09 14:38:56 +00:00
|
|
|
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua")
|
2023-04-09 18:21:57 +00:00
|
|
|
script = new SpecialSpeedBuffSpawner();
|
2023-04-09 03:07:25 +00:00
|
|
|
|
2023-04-09 15:17:05 +00:00
|
|
|
// 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();
|
2023-04-12 16:46:31 +00:00
|
|
|
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();
|
2024-02-27 16:07:14 +00:00
|
|
|
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();
|
2023-04-09 15:17:05 +00:00
|
|
|
|
2022-09-05 02:43:16 +00:00
|
|
|
// 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
|
2024-03-07 01:49:29 +00:00
|
|
|
else if (script == InvalidToReturn) {
|
2022-09-05 02:43:16 +00:00
|
|
|
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") ||
|
2023-04-12 16:46:31 +00:00
|
|
|
(scriptName =="scripts\\ai\\FV\\L_ACT_NINJA_STUDENT.lua") ||
|
2023-04-09 15:17:05 +00:00
|
|
|
(scriptName == "scripts\\ai\\WILD\\L_WILD_GF_FROG.lua") ||
|
2022-09-05 02:43:16 +00:00
|
|
|
(scriptName == "scripts\\empty.lua")
|
2023-10-21 23:31:55 +00:00
|
|
|
)) LOG_DEBUG("LOT %i attempted to load CppScript for '%s', but returned InvalidScript.", parent->GetLOT(), scriptName.c_str());
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
m_Scripts[scriptName] = script;
|
|
|
|
return script;
|
|
|
|
}
|
|
|
|
|
2024-03-07 01:49:29 +00:00
|
|
|
CppScripts::Script* const CppScripts::GetInvalidScript() {
|
|
|
|
return InvalidToReturn;
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|