summaryrefslogtreecommitdiff
path: root/npc/magic/study.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-15 11:44:40 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-15 11:44:40 -0300
commitf6d208ee2580398d61eed595df4e1bfa56f21c1d (patch)
treee8ea62c1874475aea8ebbf7f456640df5c316039 /npc/magic/study.txt
parent65b0de9bc0d0f6f8e9da190138bbd83ffb5fa7c3 (diff)
downloadserverdata-f6d208ee2580398d61eed595df4e1bfa56f21c1d.tar.gz
serverdata-f6d208ee2580398d61eed595df4e1bfa56f21c1d.tar.bz2
serverdata-f6d208ee2580398d61eed595df4e1bfa56f21c1d.tar.xz
serverdata-f6d208ee2580398d61eed595df4e1bfa56f21c1d.zip
Fix bugs on TMW2_STUDY before I release it by "accident"
Diffstat (limited to 'npc/magic/study.txt')
-rw-r--r--npc/magic/study.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/npc/magic/study.txt b/npc/magic/study.txt
index fb6116fae..f61bdbca9 100644
--- a/npc/magic/study.txt
+++ b/npc/magic/study.txt
@@ -21,9 +21,12 @@ function script SK_study {
// Research Points
if (array_rfind(@study, @mobGD) < 0) {
.@mult=max(1, 11-getskilllv(TMW2_STUDY));
- .@rp=getmonsterinfo(.@mobID, MOB_LV)/.@mult+1;
+ .@rp=getmonsterinfo(.@mobID, MOB_LV)/.@mult;
array_push(@study, @mobGD);
- dispbottom l("Research Points +%d", .@rp);
+ if (.@rp) {
+ MAGIC_RP+=.@rp;
+ dispbottom l("Research Points +%d", .@rp);
+ }
}
// Report