Aller au contenu principal

Pets Open Menu

Open the pet selection menu

Champs

ChampTypePar défautDescription
menuPetMenuSettings—Permet de personnaliser les slots, boutons et visuels du menu des familiers.
PetMenuSettings (5)
ChampTypePar défautDescription
slotsList<Int>DEFAULT_PET_SLOTS—
lockedSlotsList<LockedSlotSettings>empty—
LockedSlotSettings (2)
ChampTypePar défautDescription
slotInt0—
permissionString——
storageRef<PetStorageEntry>——
rowsInt6—
maxSlotsIntDEFAULT_PET_SLOTS.size—
Champs TypeWriter communs (criteria, modifiers, triggers)
ChampTypePar défautDescription
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

Trigger this action from an NPC, an item or a command to open the companion menu for the triggering player. In menu:

  • storage — the Pet Storage artifact. When set, the extension switches to it and reloads the profiles of online players. Set it on at least one menu action.
  • slots — inventory slots where pets appear. These also decide where tokens can be placed.
  • lockedSlots — a slot and a permission. Players without the permission see a locked marker and cannot fill that slot.
  • maxSlots — maximum number of slots used (default 21, minimum 1). Only the first maxSlots entries of slots are laid out and can receive a new pet; pets already owned beyond that are shown in free cells of the menu instead of being hidden.
  • rows — height from 1 to 6.

The last opened menu configuration is remembered, so the menu also opens with the same layout from /pets open.