summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-15 12:57:26 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-15 12:57:26 -0300
commitaebbb0dcf6e38ed0d57c6a5b6c3c275f96e362de (patch)
tree8856be468e97e3d7c6fb485bd2621cb85674854e /npc
parentf7552c7aa75e6707f156694c2d5185d2050f8a0b (diff)
downloadserverdata-aebbb0dcf6e38ed0d57c6a5b6c3c275f96e362de.tar.gz
serverdata-aebbb0dcf6e38ed0d57c6a5b6c3c275f96e362de.tar.bz2
serverdata-aebbb0dcf6e38ed0d57c6a5b6c3c275f96e362de.tar.xz
serverdata-aebbb0dcf6e38ed0d57c6a5b6c3c275f96e362de.zip
***NEW*** Now every 10 skill use (regardless of skill type), you'll gain 1 RP
(regardless of use). Repeating the same skill will NOT yield extra RP.
Diffstat (limited to 'npc')
-rw-r--r--npc/config/magic.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 39de8ac48..8cc777c99 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -56,10 +56,15 @@ function script GetManaExp {
LAST_SKILL[2]=LAST_SKILL[1];
LAST_SKILL[1]=LAST_SKILL[0];
LAST_SKILL[0]=.@sk;
+ skillInvoke[0]+=1;
}
// Update Magic EXP
MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus;
+
+ // Gain Magic RP if relevant
+ if (skillInvoke[0] % 10 == 0)
+ MAGIC_RP+=1;
return;
}