diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-06-23 15:38:51 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-06-23 15:43:07 +0200 |
commit | 92b617ec0cf29bb47d7e11936e4f83e0bed9961f (patch) | |
tree | c0fad02824f7ca6baa6f95f360aefa640cc0e74b | |
parent | ebd88b92cfd73e16a2ae93009b11fc9809f880d3 (diff) | |
download | clientdata-master.tar.gz clientdata-master.tar.bz2 clientdata-master.tar.xz clientdata-master.zip |
So far the effects referenced by quest XML have been regular effects,
but due to their persistence and on/off nature, using status effects
seems more fitting. Hence, the Mana client will interpret the "effect"
attribute of the "var/effect" elements as a status effect ID instead.
Fortunately the IDs used (45 and 46) were also still available as status
effect IDs.
Also, the quest indicators were implemented using sprites, but the Mana
client does not currently support adding sprites as a result of an
effect. Since this feature appears to be only used for the quest
markers, they have been implemented using a particle effect instead.
Part of mana/mana#62
-rw-r--r-- | graphics/particles/quest-continue.particle.xml | 8 | ||||
-rw-r--r-- | graphics/particles/quest-start.particle.xml | 8 | ||||
-rw-r--r-- | settings.xml | 1 | ||||
-rw-r--r-- | status-effects.xml | 2 |
4 files changed, 19 insertions, 0 deletions
diff --git a/graphics/particles/quest-continue.particle.xml b/graphics/particles/quest-continue.particle.xml new file mode 100644 index 00000000..90756040 --- /dev/null +++ b/graphics/particles/quest-continue.particle.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<effect> + <particle position-z="80"> + <animation imageset="graphics/sprites/icons/quest-indicators.png" width="32" height="32"> + <frame index="1"/> + </animation> + </particle> +</effect> diff --git a/graphics/particles/quest-start.particle.xml b/graphics/particles/quest-start.particle.xml new file mode 100644 index 00000000..315755d6 --- /dev/null +++ b/graphics/particles/quest-start.particle.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<effect> + <particle position-z="80"> + <animation imageset="graphics/sprites/icons/quest-indicators.png" width="32" height="32"> + <frame index="0"/> + </animation> + </particle> +</effect> diff --git a/settings.xml b/settings.xml index 936cfc4d..69087fee 100644 --- a/settings.xml +++ b/settings.xml @@ -8,6 +8,7 @@ <include file="items.xml" /> <include file="monsters.xml" /> <include file="npcs.xml" /> + <include file="quests.xml" /> <include file="emotes.xml" /> <include file="status-effects.xml" /> <include file="itemcolors.xml" /> diff --git a/status-effects.xml b/status-effects.xml index 6b96def5..d828e890 100644 --- a/status-effects.xml +++ b/status-effects.xml @@ -32,4 +32,6 @@ <status-effect name="spell-cooldown-cg" id="80" icon="icons/spell-cooldown-cg.xml"/> <status-effect name="slow-move" id="133" icon="icons/slow-move.xml"/> <status-effect name="cant-move" id="134" icon="icons/cant-move.xml"/> + <status-effect name="quest-start" id="45" persistent-particle-effect="yes" particle="graphics/particles/quest-start.particle.xml"/> + <status-effect name="quest-continue" id="46" persistent-particle-effect="yes" particle="graphics/particles/quest-continue.particle.xml"/> </status-effects> |