diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-07 18:54:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-07 18:54:10 -0300 |
commit | 4a4d90dfa6ea35094af69753aacf1f66dfacedd7 (patch) | |
tree | 8d05a3913d28fff6a6a14bf3546b64d6f6b2a6a5 /npc | |
parent | 1f84279577ba7e8b0411ae69b7ed4e2ff672cd20 (diff) | |
download | serverdata-4a4d90dfa6ea35094af69753aacf1f66dfacedd7.tar.gz serverdata-4a4d90dfa6ea35094af69753aacf1f66dfacedd7.tar.bz2 serverdata-4a4d90dfa6ea35094af69753aacf1f66dfacedd7.tar.xz serverdata-4a4d90dfa6ea35094af69753aacf1f66dfacedd7.zip |
Reset all learnt skills to level 1 - forcefully
This will give me the flexibilty I'll need for new level up rules
Forgetful NPCs still will have to wait so spend wisely!!!!!!!
Diffstat (limited to 'npc')
-rw-r--r-- | npc/config/magic.txt | 3 | ||||
-rw-r--r-- | npc/functions/clientversion.txt | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 8f177e5cb..24d96db34 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -284,7 +284,8 @@ function script RegisterMagic { $@MSK_PREREQ[.@ski]=.@pre; $@MSK_POSTREQ[.@ski]=.@pos; - array_push($@MSK_CLASS[.@cla], .@ski); + //array_push($@MSK_CLASS[.@cla], .@ski); // FIXME: getd()setd() + array_push($@MSK_MAGIC, .@ski); return; } diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index e357cbff0..480d06639 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -878,6 +878,26 @@ function script clientupdater { } } + // Magic v3 regression + // ter jul 7 18:42:22 BRT 2020 + if (UPDATE < 1594158142) { + UPDATE=1594158142; + + for (.@i=0; .@i < getarraysize($@MSK_MAGIC) ; .@i++) { + /* + debugmes "Debug skill %s - Lv %d", + getskillname($@MSK_MAGIC[.@i]), getskilllv($@MSK_MAGIC[.@i]); + */ + if (getskilllv($@MSK_MAGIC[.@i]) > 1) { + .@msp=(getskilllv($@MSK_MAGIC[.@i])-1); + MAGIC_PTS-=.@msp; + skill $@MSK_MAGIC[.@i], 1, 0; + dispbottom l("%s refunded to level 1 for %d MSP", + getskillname($@MSK_MAGIC[.@i]), .@msp); + } + } + + } // :// End of Regular Update System //////////////////////////////////// |