summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-23 06:19:35 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-23 06:19:35 -0300
commit0db6acf806ed5db7e4585c589cd4a2e236932c06 (patch)
treed0d071d38d95af38cbe17eff1dc79515ae1456d0
parent9640e54b64fb338972953674a65e0f858bb3f2e8 (diff)
downloadserverdata-0db6acf806ed5db7e4585c589cd4a2e236932c06.tar.gz
serverdata-0db6acf806ed5db7e4585c589cd4a2e236932c06.tar.bz2
serverdata-0db6acf806ed5db7e4585c589cd4a2e236932c06.tar.xz
serverdata-0db6acf806ed5db7e4585c589cd4a2e236932c06.zip
Refund Lightning Bolt from players
-rw-r--r--npc/003-3/malindou.txt3
-rw-r--r--npc/config/magic.txt1
-rw-r--r--npc/functions/clientversion.txt9
3 files changed, 10 insertions, 3 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt
index 581deac56..7f452be41 100644
--- a/npc/003-3/malindou.txt
+++ b/npc/003-3/malindou.txt
@@ -569,15 +569,12 @@ OnInit:
// Magic v3
$REBIRTH_WINNER$="Crazyfefe";
/*
- //ReplaceSkillFromEveryPlayer(MG_FIREBOLT, TMW2_FIREARROW);
ReplaceSkillFromEveryPlayer(MG_FIREBALL, TMW2_FIREARROW); // 1 MSP
ReplaceSkillFromEveryPlayer(AL_HOLYLIGHT, TMW2_HOLYLIGHT); // 1 MSP??
ReplaceSkillFromEveryPlayer(MG_NAPALMBEAT, TMW2_NAPALMBEAT); // 2 MSP??
ReplaceSkillFromEveryPlayer(MG_SOULSTRIKE, TMW2_MAGICSTRIKE);
- ReplaceSkillFromEveryPlayer(MG_LIGHTNINGBOLT, TMW2_LIGHTNINGBOLT); // 1MSP
-
ReplaceSkillFromEveryPlayer(WZ_EARTHSPIKE, TMW2_METEORSTRIKE);
ReplaceSkillFromEveryPlayer(MG_COLDBOLT, TMW2_FROSTDIVER);
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index bc537cad6..da1484ef3 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -135,6 +135,7 @@ function script areaharm {
continue;
harm(.@mbs[.@i], .@d, .@t, .@e);
specialeffect(FX_ATTACK, AREA, .@mbs[.@i]);
+ // TODO: Handle MobPt to don't overload timer system?
}
return;
}
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 6db0badd6..344172d40 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -845,6 +845,15 @@ function script clientupdater {
dispbottom col(l("Mass Provoke replaced with Area Provoke."), 1);
}
+ // MG_LIGHTNINGBOLT and TMW2_LIGHTNINGBOLT MSP cost differ, refund
+ if (getskilllv(MG_LIGHTNINGBOLT)) {
+ getitembound ScholarshipBadge, getskilllv(MG_LIGHTNINGBOLT), 4;
+ MAGIC_PTS-=getskilllv(MG_LIGHTNINGBOLT);
+ skill MG_LIGHTNINGBOLT, 0, 0;
+ dispbottom col(l("MSP for Lightning Strike was refunded."), 1);
+ }
+
+
// Eisten Update
if (getq(TulimsharQuest_Eistein) > 3) {
getitem GraduationAlbum, 1;