summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-21 06:06:58 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-21 06:06:58 -0300
commit27140ff716ab751f350c7f369a98b3e93732ba2c (patch)
tree6f8bcdff3b1fa41e7b03d7ee827bd8d80d94798c /npc/functions
parent357a5e0af9391094f499e8cc10221288ef53fe36 (diff)
downloadserverdata-27140ff716ab751f350c7f369a98b3e93732ba2c.tar.gz
serverdata-27140ff716ab751f350c7f369a98b3e93732ba2c.tar.bz2
serverdata-27140ff716ab751f350c7f369a98b3e93732ba2c.tar.xz
serverdata-27140ff716ab751f350c7f369a98b3e93732ba2c.zip
Deprecate EVOL_MASS_PROVOKE in favor of EVOL_AREA_PROVOKE
Requires some mild testing, but should work.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/clientversion.txt12
-rw-r--r--npc/functions/hub.txt6
2 files changed, 16 insertions, 2 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index f7926953e..36d4792b0 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -825,6 +825,18 @@ function script clientupdater {
dispbottom l("Crafting rules changed! Your crafting skill was lowered to Level 5, talk to Craftmaster to recover it!");
}
+ // Mass Provoke replacement
+ if (getskilllv(EVOL_AREA_PROVOKE)) {
+ getitembound ScholarshipBadge, getskilllv(EVOL_AREA_PROVOKE), 4;
+ MAGIC_PTS-=getskilllv(EVOL_AREA_PROVOKE)+1;
+ skill EVOL_AREA_PROVOKE, 0, 0;
+ dispbottom col(l("MSP for Area Provoke was refunded."), 1);
+ }
+ if (getskilllv(EVOL_MASS_PROVOKE)) {
+ skill EVOL_AREA_PROVOKE, getskilllv(EVOL_MASS_PROVOKE), 0;
+ skill EVOL_MASS_PROVOKE, 0, 0;
+ dispbottom col(l("Mass Provoke replaced with Area Provoke."), 1);
+ }
}
// :// End of Regular Update System
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 1e2711622..ba89f483d 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -254,7 +254,10 @@ function script HUB_SkillInvoke {
SK_mpregen();
break;
case EVOL_AREA_PROVOKE:
- massprovoke(1+@skillLv);
+ if (@skillTargetX && @skillTargetY)
+ massprovoke(1+@skillLv, getmap(), @skillTargetX, @skillTargetY);
+ else
+ massprovoke(1+@skillLv);
GetManaExp(@skillId, rand2(1,3));
break;
case TMW2_GD_INCALL:
@@ -500,7 +503,6 @@ function script HUB_SkillInvoke {
case AL_HEAL:
case HW_MAGICPOWER:
case SM_PROVOKE:
- case EVOL_MASS_PROVOKE:
case AB_HIGHNESSHEAL:
case SN_WINDWALK:
case MG_FIREBALL: