Chat link format

Материал из Guild Wars 2 wiki
Версия от 18:49, 8 июня 2016; Blood (обсуждение | вклад) (Blood переименовал страницу Chat link в Chat link format)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

In the chat it is possible to insert links to certain elements within the game, like waypoints, points of interest, items and skills. These links are usually entered by clicking an element while holding Ctrl or Shift. The former will immediately insert a link into the current chat channel, while the latter will append it to the current chat line, allowing for further changes.

Internally, these links are represented by a special text command that can be embedded manually. When sending it then in the chat, the client will read out information about the linked element and display it correctly for the current localization. This page describes the format of said chat links.

The creation of such links requires knowledge about the internal identifiers and involves a fair amount of calculation. As such this information is not really useful for the average player trying to link to certain elements within the game. For those purposes, the mentioned method in-game is preferred.

General format[править]

Following the skill template format from the original Guild Wars, the links make use of Base64 to encode its information. A link is enclosed within single square brackets and preceded by an ampersand, for example [&AgEAWgAA] will render a link for the Basic Salvage Kit.

Header[править]

The first byte of a link contains the header. It describes the type of the link:

  1. Automatically generated by the client

Data[править]

For most types of code, the header is followed by the ID as a 4-byte little endian integer, then a null byte as terminator.

Coin link[править]

Currently disabled. Specifies at least a two byte number in copper Медная монета coins. Amounts in gold Золотая монета or silver Серебряная монета have to be multiplied by 10,000 or 100 respectively.

Examples[править]

  • [&AQAAAAA=]Медная монета
  • [&AQEAAAA=]Медная монета
  • [&AdsnAAA=]Золотая монета 2 Серебряная монета 3 Медная монета

Item link[править]

The quantity of items is encoded as a single byte immediately following the header byte, before the item ID.

Examples[править]

Wardrobe skins and upgrades[править]

Additional data, such as the item ID of an attached upgrade component or wardrobe skin ID can be added by replacing the last byte of the base item.

  • 0x00 – Default item
  • 0x40 – 1 upgrade component
  • 0x60 – 2 upgrade components
  • 0x80 – Skinned
  • 0xC0 – Skinned + 1 upgrade component
  • 0xE0 – Skinned + 2 upgrade components

Examples[править]

Items used[править]
HEX Values[править]
  • Weapon
    • 02 01 AA B6 00 00
  • Weapon + Sigil 1
    • 02 01 AA B6 00 40 FF 5F 00 00
  • Weapon + Sigil 1 + Sigil 2
    • 02 01 AA B6 00 60 FF 5F 00 00 27 60 00 00
  • Weapon + Wardrobe Skin
    • 02 01 AA B6 00 80 7D 0E 00 00
  • Weapon + Wardrobe Skin + Sigil 1
    • 02 01 AA B6 00 C0 7D 0E 00 00 FF 5F 00 00
  • Weapon + Wardrobe Skin + Sigil 1 + Sigil 2
    • 02 01 AA B6 00 E0 7D 0E 00 00 FF 5F 00 00 27 60 00 00
Chat Codes[править]
  • Weapon
    • [&AgGqtgAA]
  • Weapon + Sigil 1
    • [&AgGqtgBA/18AAA==]
  • Weapon + Sigil 1 + Sigil 2
    • [&AgGqtgBg/18AACdgAAA=]
  • Weapon + Wardrobe Skin
    • [&AgGqtgCAfQ4AAA==]
  • Weapon + Wardrobe Skin + Sigil 1
    • [&AgGqtgDAfQ4AAP9fAAA=]
  • Weapon + Wardrobe Skin + Sigil 1 + Sigil 2
    • [&AgGqtgDgfQ4AAP9fAAAnYAAA]

Text string[править]

Specifies the two byte internal string identifier and displays the corresponding text in the chat window (sometimes just a chat bubble), highlighted in a color that matches the chat channel. (e.g. gold for guild chat, blue for party chat, etc.)

Examples[править]

  • [&AxcnAAA=]Fight what cannot be fought.
  • [&AxgnAAA=]Any secrets you want to share?
  • [&AxknAAA=]Any news?
  • [&AyAnAAA=]Do you need assistance?

See Chat link format/0x03 codes for a list of the documented codes.

Map links[править]

Specifies the two byte internal point of interest (internally landmarks, waypoints, and vistas are deemed as points of interest) identifier.

Examples[править]

  • [&BDgAAAA=]Dr. Bleent's Encampment (Id: 56)
  • [&BEgAAAA=] – Desider Atum Waypoint (Id: 72)
  • [&BDkDAAA=] – Caudecus' Estate Waypoint (Id: 825)

See Chat link format/0x04 codes for a list of the documented codes.

Skill links[править]

Specifies the two byte internal skill (including effects, buffs, and abilities) identifier.

Examples[править]

Trait links[править]

Specifies the two byte internal trait identifier.

Examples[править]

Recipes[править]

Specifies the two byte internal recipe identifier.

Examples[править]

Wardrobe skin link[править]

Specifies the two byte wardrobe skin identifier.

Examples[править]

See Chat link format/0x0B codes for a list of the documented codes.

Outfit link[править]

Specifies the two byte outfit identifier.

Examples[править]

See Chat link format/0x0C codes for a list of the documented codes.

Finding game IDs from chat links[править]

For many templates found on the wiki, the game ID rather than the full chat link is required. This can be obtained by typing /wiki, then holding Shift + clicking on the item in question. Pressing enter will then bring up your browser and return the wiki's enhanced search page which will decode the chat link into an ID at the top of the page.