From 46c91fc3b4a6f84234117c09b46a76e8e9b41219 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Dec 2021 10:22:30 -0300 Subject: Prepare 4 new scroll types based on Guild skills. Level C applies to all friendlies - covering homuns and mercs. Otherwise, Level C and Level B have similar effects, unlike Magnus Heal C --- npc/magic/guild.txt | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'npc/magic') diff --git a/npc/magic/guild.txt b/npc/magic/guild.txt index 6eed7c750..39da57092 100644 --- a/npc/magic/guild.txt +++ b/npc/magic/guild.txt @@ -53,12 +53,13 @@ Increase HIT of players in the area of effect by +2 per SkillLV. The accuracy ra */ -// GD_allboost ( lv ) +// GD_allboost ( lv{, target} ) // Increases all stats function script GD_allboost { .@lv=getarg(0, @skillLv); + .@t$=getarg(1, "filter_sameguild"); // range, time, SC, BL, power, filter - areasc(3+.@lv, 40000+(5000*.@lv), SC_INCALLSTATUS, BL_PC, .@lv, "filter_sameguild"); + areasc(3+.@lv, 40000+(5000*.@lv), SC_INCALLSTATUS, BL_PC, .@lv, .@t$); return; } @@ -67,8 +68,9 @@ function script GD_allboost { // 12x12 HP and MP recovery function script GD_regenerating { .@lv=getarg(0, @skillLv); + .@t$=getarg(1, "filter_sameguild"); // range, time, SC, BL, power, filter - areasc(12, 8000+(1000*.@lv), SC_GDSKILL_REGENERATION, BL_PC, 15+(5*.@lv), "filter_sameguild"); + areasc(12, 8000+(1000*.@lv), SC_GDSKILL_REGENERATION, BL_PC, 15+(5*.@lv), .@t$); return; } @@ -77,8 +79,9 @@ function script GD_regenerating { // Places a temporary buff on the user and all party members in a 14x14 area around the user that increases Soft Defense. (VIT def) function script GD_defboost { .@lv=getarg(0, @skillLv); + .@t$=getarg(1, "filter_sameguild"); // range, time, SC, BL, power, filter - areasc(4+.@lv, 40000+(5000*.@lv), SC_ANGELUS, BL_PC, .@lv*4, "filter_sameguild"); + areasc(4+.@lv, 40000+(5000*.@lv), SC_ANGELUS, BL_PC, .@lv*4, .@t$); return; } @@ -87,8 +90,9 @@ function script GD_defboost { // Places a temporary buff on a single target that increases STR, DEX and INT. (The damage dealing stats) function script GD_atkboost { .@lv=getarg(0, @skillLv); + .@t$=getarg(1, "filter_sameguild"); // range, time, SC, BL, power, filter - areasc(4+.@lv, 40000+(5000*.@lv), SC_BLESSING, BL_PC, .@lv, "filter_sameguild"); + areasc(4+.@lv, 40000+(5000*.@lv), SC_BLESSING, BL_PC, .@lv, .@t$); return; } @@ -97,8 +101,9 @@ function script GD_atkboost { // Blesses a single target's weapon to increase its attack power function script GD_atkboost2 { .@lv=getarg(0, @skillLv); + .@t$=getarg(1, "filter_sameguild"); // range, time, SC, BL, power, filter - areasc(4+.@lv, 40000+(5000*.@lv), SC_IMPOSITIO, BL_PC, 5+(5*.@lv), "filter_sameguild"); + areasc(4+.@lv, 40000+(5000*.@lv), SC_IMPOSITIO, BL_PC, 5+(5*.@lv), .@t$); return; } @@ -107,8 +112,9 @@ function script GD_atkboost2 { // Boost the critical hit rate function script GD_critboost { .@lv=getarg(0, @skillLv); + .@t$=getarg(1, "filter_sameguild"); // range, time, SC, BL, 1, power, filter - areasc(1+.@lv, 30000+(5000*.@lv), SC_FORTUNE, BL_PC, 8*.@lv, "filter_sameguild"); + areasc(1+.@lv, 30000+(5000*.@lv), SC_FORTUNE, BL_PC, 8*.@lv, .@t$); return; } -- cgit v1.2.3-70-g09d2