From 8fb14cd082846420ac73249966643fc94b3c5eb6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 22 May 2020 00:13:17 -0300 Subject: TMW2_JUDGMENT An untested skill (like nilfheim), proof of concept. It should have a splash effect over target. * Now I need a function to cast damage from script, can't be setting UDT_HP forever --- npc/functions/hub.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 01167098e..970d7d5a4 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -152,6 +152,7 @@ function script HUB_Logout { if (.@q < 4 && .@q >= 2) { setq1 LoFQuest_Barbara, 1; setq3 LoFQuest_Barbara, 1; + // FIXME: Enable Mana Stone#01863 dispbottom col(l("WARNING: You died at Forgotten Shrine and the Shrine defense triggered."), 1); dispbottom col(l("WARNING: Your progress on the quest was lost!"), 1); } @@ -229,6 +230,7 @@ function script HUB_Logout { // HUB_SkillInvoke ( ) function script HUB_SkillInvoke { + debugmes "Cast skill %d", @skillId; // TODO: Detect what was script-cast and what was player-case. Then, readd RB_IRCBROADCAST // If you can't do this: You can't do this if (getskilllv(@skillId) < @skillLv) @@ -284,6 +286,10 @@ function script HUB_SkillInvoke { case TMW2_NILFHEIM: SK_nilfheim(); break; + case TMW2_JUDGMENT: + debugmes "Target: %d (%d,%d)", @skillTarget, @skillTargetX, @skillTargetY; + areasc2(getmap(), @skillTargetX, @skillTargetY, 2, 10000, SC_BLOODING, BL_MOB|BL_PC); + break; case TMW2_PARUM: SK_parum(); break; -- cgit v1.2.3-60-g2f50