Previous Article | Back to News Summary | Next Article
Announce News Post #2447

GMCP Afflictions

Written by: Ieptix the Anomaly
Date: Tuesday, April 7th, 2015
Addressed to: Everyone


A new GMCP category has been added, Char.Afflictions. This can be used
by clients supporting GMCP to track some affliction information. At
present, this is implemented only for Overhauled afflictions. Details:

o The server will send the following GMCP events if the Char module is
enabled: Char.Afflictions.List, Char.Afflictions.Add, and
Char.Afflictions.Remove. There are no client-side Char.Afflictions
messages.

o The Char.Affliction.Add message contains an object with the following
string fields: name, cure, and desc. These contain the same information
as the corresponding entries in AFFS INFO <aff>. This nessage is sent
alongside aff messages, e.g. when a non-hidden affliction is applied for
the first time.

o Char.Afflictions.List message contains an array of objects formatted
the same as the Char.Affliction.Add objects, with the fields name, cure,
and desc. This will contain all non-hidden afflictions on the player. At
present, this is sent only after diagnosing, rendering the non-hidden
requirement irrelevant for the time being, as diagnosing unhides all
afflictions.

o Char.Affliction.Remove message contains a one-element array, which is
the name of an affliction that has been cured. This is sent when an
affliction is cured, alongside cure messages.

Penned by My hand on the 6th of Tzarin, in the year 409 CE.


Previous Article | Back to News Summary | Next Article