World
Activities
Loot, mounts, cinematics, NPCs, WvW, map queues and the login screen.
loot
loot.lootables()Agent[]?
Bodies and chests you can loot.
loot.lootable_ids()integer[]?
Their agent ids.
loot.loot(agent)boolean
Loots one (an
Agent or agent id).Loots everything around you.
mounts
mounts.list()table[]
Your mounts:
{uid, id, name}.mounts.equip(uid)boolean
Makes a mount your active one.
conversation
Talking to NPCs.
conversation.current()table?
The open conversation:
{id, content_id, text, options}, each option {id, text}.Picks an option.
conversation.close()boolean
Closes the conversation.
dialogue
Story dialogues.
dialogue.active()table[]
Open dialogues:
{current_step, maximum_step, def = {guid, content_type, uid, hashed_name}}.Moves a dialogue (its index in
dialogue.active()) to a step.dialogue.finish(index)boolean
Ends a dialogue.
cinematic
cinematic.active()boolean
Whether a cinematic is playing.
Skips it.
Asks the server to skip it.
cinematic.flags()integer?
Its raw flags.
Sets them.
map_queue
map_queue.current()table?
The queue you're in:
{map_id, queue_position, queue_size}.Enters the map when it's your turn.
Leaves the queue.
wvw
wvw.local_team()string?
Your team:
"red", "blue" or "green".Whether a team holds an objective.
wvw.objective_defs()table[]
Every WvW objective, as
content.wvw_objectives().char_select
char_select.characters()table[]
Your characters:
{name, map_id, level, profession, race, spec}.Selects a character.
login
The login screen. Plugins can read its state and press Play in the launcher; they can't log in with credentials.
login.state()string?
"logged_in", "logged_out_primary" or "logged_out_secondary".login.is_logging_in()boolean
Whether a login is in progress.
login.flags()integer?
Raw login flags.
login.has_launcher()boolean
Whether the game's launcher is open.
Presses Play in the launcher.