I cleaned up the script a bit and made it more readable. Just add or remove items from the list as you want. I also made a "Remove List of Spells" script. Of note, adding spells with addspell seems to add them under common like cantrips instead of your class so they don't cost spell slots, some do cost class resources though as mentioned above. The removespell command also removes spells from common instead of your class as far as I can tell. The list is still missing quite a few spells and it probably has some duplicates or spells that are almost the same.
I just noticed SlipperyEel uploaded a list of spell uuid's already formatted so I recommend clearing the list and just adding the spells you want from the formatted list. Though they should be formatted the same way as the list below (i.e "Spell UUID",).
Code: Select all
[ENABLE]
{$lua}
if syntaxcheck then return end
local spellList = {
"Projectile_AcidArrow",
"Projectile_AcidSplash",
"Projectile_C ...",
"Projectile_ChainLightning",
"Projectile_ChromaticOrb",
"Projectile_DisarmingAttack",
"Projectile_Disintegrate",
"Projectile_EldritchBlast",
"Projectile_EnsnaringStrike_Container",
"Projectile_FireBolt",
"Projectile_Fireball",
"Projectile_GuidingBolt",
"Projectile_HailOfThorns",
"Projectile_HordeBreaker",
"Projectile_IceKnife",
"Projectile_LightningArrow",
"Projectile_MagicMissile",
"Projectile_MenacingAttack",
"Projectile_PoisonSpray",
"Projectile_PushingAttack",
"Projectile_RayOfEnfeeblement",
"Projectile_RayOfFrost",
"Projectile_RayOfSickness",
"Projectile_ScorchingRay",
"Projectile_SneakAttack",
"Projectile_TripAttack",
"Projectile_WitchBolt",
"Shout_ActionSurge",
"Shout_Aid",
"Shout_ArcaneRecovery",
"Shout_ArmorOfAgathys",
"Shout_ArmsOfHadar",
"Shout_AuraOfVitality",
"Shout_BeaconOfHope",
"Shout_BladeWard",
"Shout_Blink",
"Shout_Blur",
"Shout_CreateSorceryPoints",
"Shout_CreateSpellSlot",
"Shout_CrusadersMantle",
"Shout_Dash_CunningAction",
"Shout_DestructiveWave",
"Shout_DetectThoughts",
"Shout_Disengage_CunningAction",
"Shout_DisguiseSelf",
"Shout_DispelEvilAndGood",
"Shout_DivineFavor",
"Shout_DivineSense",
"Shout_Dreadful_Aspect",
"Shout_ExpeditiousRetreat",
"Shout_FalseLife",
"Shout_FeatherFall",
"Shout_FireShield",
"Shout_FlameBlade",
"Shout_FlameBlade_MephistophelesTiefling",
"Shout_HealingRadiance",
"Shout_HealingWord_Mass",
"Shout_HellishRebuke",
"Shout_HellishRebuke_AsmodeusTiefling",
"Shout_HellishRebuke_WarlockMI",
"Shout_HeroesFeast",
"Shout_Hide_BonusAction",
"Shout_MirrorImage",
"Shout_NaturalRecovery",
"Shout_PassWithoutTrace",
"Shout_PrayerOfHealing",
"Shout_ProduceFlame",
"Shout_RadianceOfTheDawn",
"Shout_SacredWeapon",
"Shout_SecondWind",
"Shout_SeeInvisibility",
"Shout_Shield_Sorcerer",
"Shout_Shield_Wizard",
"Shout_Shillelagh",
"Shout_SongOfRest",
"Shout_SpeakWithAnimals",
"Shout_SpeakWithAnimals_Barbarian",
"Shout_SpeakWithAnimals_ForestGnome",
"Shout_SpiritGuardians",
"Shout_Thaumaturgy",
"Shout_TurnTheFaithless",
"Shout_TurnTheUnholy",
"Shout_TurnUndead",
"Shout_WildShape",
"Shout_WildShape_Badger",
"Shout_WildShape_Cat",
"Shout_WildShape_Combat",
"Shout_WildShape_Combat_Badger",
"Shout_WildShape_Combat_Bear_Polar",
"Shout_WildShape_Combat_Cat",
"Shout_WildShape_Combat_DeepRothe",
"Shout_WildShape_Combat_Raven",
"Shout_WildShape_Combat_Spider",
"Shout_WildShape_Combat_Wolf_Dire",
"Shout_WildShape_DeepRothe",
"Shout_WildShape_Spider",
"Shout_WildShape_Wolf_Dire",
"Shout_WindWalk",
"Target_AnimalFriendship",
"Target_AnimateDead",
"Target_ArcaneEye",
"Target_ArcaneLock",
"Target_Bane",
"Target_Banishment",
"Target_Barkskin",
"Target_BestowCurse",
"Target_BlackTentacles",
"Target_Bless",
"Target_BlessingOfTheTrickster",
"Target_Blight",
"Target_Blindness",
"Target_CallLightning",
"Target_CalmEmotions",
"Target_CharmPerson",
"Target_ChillTouch",
"Target_CircleOfDeath",
"Target_CloudOfDaggers",
"Target_Cloudkill",
"Target_Command_Container",
"Target_CompelledDuel",
"Target_Confusion",
"Target_ConjureElemental_Container",
"Target_ConjureElementals_Minor_Container",
"Target_ConjureWoodlandBeings",
"Target_Contagion",
"Target_ControlUndead",
"Target_Counterspell",
"Target_CreateDestroyWater",
"Target_CreateUndead",
"Target_CrownOfMadness",
"Target_CureWounds",
"Target_CureWounds",
"Target_CureWounds_Mass",
"Target_CuttingWords",
"Target_DancingLights",
"Target_Darkness",
"Target_Darkness_DrowMagic",
"Target_Darkvision",
"Target_Daylight_Container",
"Target_DeathWard",
"Target_DisarmingAttack",
"Target_DissonantWhispers",
"Target_DominateBeast",
"Target_DominatePerson",
"Target_ElementalWeapon",
"Target_EnhanceAbility",
"Target_EnlargeReduce",
"Target_Entangle",
"Target_Enthrall",
"Target_Eyebite",
"Target_FaerieFire",
"Target_FaerieFire_DrowMagic",
"Target_FeignDeath",
"Target_FindFamiliar",
"Target_FlameStrike",
"Target_FlamingSphere",
"Target_FleshToStone",
"Target_Fly",
"Target_FogCloud",
"Target_FreedomOfMovement",
"Target_FrenziedStrike",
"Target_Friends",
"Target_GaseousForm",
"Target_GlobeOfInvulnerability",
"Target_GlyphOfWarding",
"Target_Goodberry",
"Target_GraspingVine",
"Target_Grease",
"Target_GreaterRestoration",
"Target_GuardianOfFaith",
"Target_Guidance",
"Target_Harm",
"Target_Haste",
"Target_Heal",
"Target_HealingWord",
"Target_HeatMetal",
"Target_Heroism",
"Target_Hex",
"Target_HideousLaughter",
"Target_HoldMonster",
"Target_HoldPerson",
"Target_HolyRebuke",
"Target_HordeBreaker",
"Target_HungerOfHadar",
"Target_HuntersMark",
"Target_HypnoticGaze",
"Target_HypnoticPattern",
"Target_IceStorm",
"Target_InflictWounds",
"Target_InsectPlague",
"Target_Invisibility",
"Target_Invisibility_Greater",
"Target_InvokeDuplicity",
"Target_IrresistibleDance",
"Target_Jump",
"Target_Jump_Githyanki",
"Target_Knock",
"Target_LayOnHands",
"Target_LesserRestoration",
"Target_Light",
"Target_Longstrider",
"Target_MageArmor",
"Target_MageHand",
"Target_MageHand_GithyankiPsionics",
"Target_MagicWeapon",
"Target_MenacingAttack",
"Target_MinorIllusion",
"Target_MistyStep",
"Target_MistyStep_Githyanki",
"Target_Moonbeam",
"Target_NaturesWrath",
"Target_PhantasmalForce",
"Target_PhantasmalKiller",
"Target_PlanarBinding",
"Target_PlantGrowth",
"Target_Polymorph",
"Target_ProtectionFromEnergy",
"Target_ProtectionFromEvilAndGood",
"Target_ProtectionFromPoison",
"Target_PushingAttack",
"Target_Rally",
"Target_RangersCompanion",
"Target_RecklessAttack",
"Target_RemoveCurse",
"Target_ResilientSphere",
"Target_Resistance",
"Target_SacredFlame",
"Target_Sanctuary",
"Target_Seeming",
"Target_Shatter",
"Target_ShieldOfFaith",
"Target_ShockingGrasp",
"Target_Silence",
"Target_Sleep",
"Target_SleetStorm",
"Target_Slow",
"Target_Smite_Blinding",
"Target_Smite_Branding_Container",
"Target_Smite_Branding_ZarielTiefling_Container",
"Target_Smite_Divine",
"Target_Smite_Divine_Critical_Unlock",
"Target_Smite_Divine_Unlock",
"Target_Smite_Searing",
"Target_Smite_Searing_ZarielTiefling",
"Target_Smite_Thunderous",
"Target_Smite_Wrathful",
"Target_SneakAttack",
"Target_SpeakWithDead",
"Target_SpikeGrowth",
"Target_SpiritualWeapon",
"Target_SpitefulSuffering",
"Target_StinkingCloud",
"Target_Stoneskin",
"Target_ThornWhip",
"Target_TripAttack",
"Target_TrueStrike",
"Target_VampiricTouch",
"Target_ViciousMockery",
"Target_WardingBond",
"Target_Web",
"Teleportation_ArcaneGate",
"Teleportation_DimensionDoor",
"Teleportation_Revivify",
"Throw_FrenziedThrow",
"Throw_Telekinesis",
"Wall_WallOfFire",
"Wall_WallOfStone",
"Zone_BurningHands",
"Zone_BurningHands_MephistophelesTiefling",
"Zone_ColorSpray",
"Zone_ConeOfCold",
"Zone_ConjureBarrage",
"Zone_Fear",
"Zone_GustOfWind",
"Zone_LightningBolt",
"Zone_Sunbeam",
"Zone_Thunderwave",
}
local cmdCall = getAddress("cmdCall")
local cmdArgs = getAddress("cmdArgs")
local cmdStr1 = getAddress("cmdStr1")
PrepareCall("GetHostCharacter")
executeCodeEx(0, nil, cmdCall)
PrepareCall("AddSpell")
writePointer(cmdArgs + 0x18, cmdStr1)
writeQword(cmdArgs + 0x28, 0)
writeQword(cmdArgs + 0x38, 0)
for spell = 1, #spellList do
uuid = spellList[spell]
writeString(cmdStr1, uuid)
writeBytes(cmdStr1 + #uuid, 0)
local result = executeCodeEx(0, nil, cmdCall)
print(result == 1 and "success added ",uuid or "failed to add ",uuid)
end
print("done")
{$asm}
assert(true)
[DISABLE]