diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-16 21:23:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-16 21:23:44 -0300 |
commit | 784bbb4ee8c190df9414ad076d9b93d1413295c9 (patch) | |
tree | 6675b3e2b76285cfd1c2c6613099704cbf67fa5f /npc | |
parent | 481b0ddd3a7c73a8785047f312ecb58ca6dc0e78 (diff) | |
download | serverdata-784bbb4ee8c190df9414ad076d9b93d1413295c9.tar.gz serverdata-784bbb4ee8c190df9414ad076d9b93d1413295c9.tar.bz2 serverdata-784bbb4ee8c190df9414ad076d9b93d1413295c9.tar.xz serverdata-784bbb4ee8c190df9414ad076d9b93d1413295c9.zip |
Update for skills.xml
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/clientversion.txt | 9 | ||||
-rw-r--r-- | npc/functions/main.txt | 6 |
2 files changed, 13 insertions, 2 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 2821ad836..ab12d8e6b 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -16,7 +16,7 @@ function script checkclientversion { // Update handler (use `date +%s` for this) // Current UPDATE value: Qui Jun 7 08:10:55 -03 2018 if (Lang > 5 && UPDATE < 1528369855) { - UPDATE=gettimetick(2); + UPDATE=1528369855; Lang=0; mesn "Jesus Saves"; mesc l("Oh, noes! Due lack of translators, some languages were removed from this project."); @@ -52,9 +52,14 @@ function script checkclientversion { next; } if (is_admin() && UPDATE < 1528369855) { - UPDATE=gettimetick(2); // Perhaps we should use above number, and leave all UPDATE fields here? + UPDATE=1528369855; dispbottom l("Client Version: @@", ClientVersion); // This is to debug UPDATE system. } + if (is_admin() && UPDATE < 1531786864) { + UPDATE=1531786864; + skill TMW2_FAKESKILL, 1, 0; + skill TMW2_FAKESKILL2, 1, 0; + } if (ClientVersion >= 24) return; diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 365943742..cf882f3a0 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -72,6 +72,12 @@ function script adddefaultskills { if (getskilllv(NV_BASIC) < 6) { skill NV_BASIC, 6, 0; } + if (getskilllv(TMW2_FAKESKILL) < 1) { + skill TMW2_FAKESKILL, 1, 0; + } + if (getskilllv(TMW2_FAKESKILL2) < 1) { + skill TMW2_FAKESKILL2, 1, 0; + } return; } |