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/functions/clientversion.txt | |
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/functions/clientversion.txt')
-rw-r--r-- | npc/functions/clientversion.txt | 20 |
1 files changed, 20 insertions, 0 deletions
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 //////////////////////////////////// |