From 71993e499d87fdcc3eff19c6acfd1e64d4d23b7a Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Sat, 22 Dec 2012 18:53:53 +0100 Subject: Illia Island: replace mapannounce by a message popup, for notifying quest status changes --- world/map/npc/052-1/channelling.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'world/map/npc/052-1') diff --git a/world/map/npc/052-1/channelling.txt b/world/map/npc/052-1/channelling.txt index 9c6ffe88..4c2c3765 100644 --- a/world/map/npc/052-1/channelling.txt +++ b/world/map/npc/052-1/channelling.txt @@ -238,17 +238,27 @@ S_CheckChannelling: detachrid; + set $@illia_channelling_status_msg$, ""; + if ($@illia_magic_power_last_status == 0 && $@illia_magic_power_status == 1) - mapannounce "052-1.gat", $@illia_char_channelling$ + ": I think I'm controlling the spell again now. Keep up!", 0; + set $@illia_channelling_status_msg$, $@illia_char_channelling$ + ": I think I'm controlling the spell again now. Keep up!"; if ($@illia_magic_power_last_status == 1 && $@illia_magic_power_status == 0) - mapannounce "052-1.gat", $@illia_char_channelling$ + ": Guys I'm loosing it! Hurry up!", 0; + set $@illia_channelling_status_msg$, $@illia_char_channelling$ + ": Guys I'm loosing it! Hurry up!"; if ($@illia_magic_power_last_status == 1 && $@illia_magic_power_status == 2) - mapannounce "052-1.gat", $@illia_char_channelling$ + ": I almost have the power to cast it! One last effort!", 0; + set $@illia_channelling_status_msg$, $@illia_char_channelling$ + ": I almost have the power to cast it! One last effort!"; if ($@illia_magic_power_last_status == 2 && $@illia_magic_power_status == 1) - mapannounce "052-1.gat", $@illia_char_channelling$ + ": Damn! It faded a little.", 0; + set $@illia_channelling_status_msg$, $@illia_char_channelling$ + ": Damn! It faded a little."; + + if ($@illia_channelling_status_msg$ != "") + areatimer "052-1.gat", 1, 1, 100, 80, 0, "#Power Circle::onMPSC"; return; +onMPSC: + message strcharinfo(0), $@illia_channelling_status_msg$; + set $@illia_channelling_status_msg$, ""; + end; + L_ChannellingComplete: message strcharinfo(0), "You successfully cast the spell and broke the door's enchantment!"; detachrid; -- cgit v1.2.3-60-g2f50