The A_Admin namespace provides administrative functions for controlling simulator state from Lua. These functions are unique to the simulator and do not exist in the real WoW client.
Implementation: src/lua_api/globals/admin_api.rs, admin_api_world.rs, admin_combat.rs, admin_encounter.rs
- Player Identity — SetPlayerName, SetPlayerClass, SetPlayerRace, SetPlayerLevel, SetPlayerSex
- Combat — SetInCombat, SetCasting, StopCasting, SetGCD, SetSpellCooldown
- Health & Power — SetPlayerHealth, SetPlayerPower, SetTargetHealth
- Targeting — SetTarget, ClearTarget, SetFocus, ClearFocus
- Party — SetPartySize, SetPartyMember, SetPartyMemberHealth, KillPartyMember, ResPartyMember, SetRotDamage
- Movement — SetMoving, SetMounted, SetFlying, SetFalling, SetSwimming
- Talents — SetSpec, SetTalentRank, SetTalentSelection, ResetTalents
- Wrath spellbook:
A_Admin.SetWrathSpellBookSlot(book, slot, spellID, name, rank, icon[, eligibleTradeSkillLine, shapeshiftForm])supplies a slot record. The optional trade-skill line represents an eligible ability with no trade-skill link; the optional form represents its first aura-36 effect.A_Admin.SetWrathSpellBookSelection(tradeSkillLine, shapeshiftForm)supplies current state; nil clears each input.petselects the pet book, case-insensitively; other book strings select the player book. Slots are 1–1024. These setters do not alter known-spell membership or emit events. Empty rank is a scenario default, not a native claim. - Buffs — AddBuff, RemoveBuff, ClearBuffs
- Loss of Control — AddLossOfControl, ClearLossOfControl
- Zone — SetZone, SetSubZone, SetInstanceInfo, SetInInstance
- Equipment locks — SetEquipmentItemLock, ClearEquipmentItemLock
- Economy — SetMoney, SetItemLevel, AddBagItem, RemoveBagItem
- Collections — AddTransmog, RemoveTransmog, CollectMount, UncollectMount, CollectPet, UncollectPet, CollectToy, UncollectToy, CollectCampsite, UncollectCampsite, SetAchievementEarned, EarnAchievement
- PvP — SetPvPEnabled, SetHonorLevel
- Guild — SetGuildInfo, ClearGuild, JoinGuild, LeaveGuild
- Mail — AddMail, ClearInbox, SetInboxCount
- Premade Groups — AddPremadeListing, ClearPremadeListings, UpdatePremadeListing
- Quests — simulator-only selected completed quest turn-in
- Events — FireEvent
- Examples — Usage examples (raid healing, combat testing, transmog)