summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/re/skill_db.conf12
-rw-r--r--npc/003-0/mages.txt2
-rw-r--r--npc/config/magic.txt3
3 files changed, 15 insertions, 2 deletions
diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf
index efe353053..fd2c662cb 100644
--- a/db/re/skill_db.conf
+++ b/db/re/skill_db.conf
@@ -38426,6 +38426,18 @@ skill_db: (
}
},
{
+ Id: 20026
+ Name: "TMW2_SAGE"
+ Description: "Increased Mana Exp Gain"
+ MaxLevel: 10
+ SkillType: {
+ Self: true
+ }
+ SkillInfo: {
+ Quest: true
+ }
+},
+{
Id: 20031
Name: "TMW2_FAKESKILL"
Description: "Fake Skill Resync"
diff --git a/npc/003-0/mages.txt b/npc/003-0/mages.txt
index 118f6b035..edf07464a 100644
--- a/npc/003-0/mages.txt
+++ b/npc/003-0/mages.txt
@@ -11,7 +11,7 @@
// SA_LIGHTNINGLOADER (bestow wind element on weapon for 2m, 70% cth)
// SA_SEISMICWEAPON (bestow earth element on weapon for 2m, 70% cth)
// SA_DRAGONOLOGY (+4% ATK, +2% MATK, +1 INT and +4% resist against DRAGONS)
-// Maybe MAGIC_EXP gain rate up?
+// TMW2_SAGE (grants up to 1.5 extra mana exp point/level)
// Priest
// Broken //AL_PNEUMA (BLOCKS ranged (4+ tiles) physical attacks on a 3x3 area. No bows :D)
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 95f9eb1b8..f7b22d47c 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -19,10 +19,11 @@
function script GetManaExp {
.@sk=getarg(0);
.@pt=getarg(1);
+ .@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2);
if (LAST_SKILL == .@sk)
end;
LAST_SKILL=.@sk;
- MAGIC_EXP=MAGIC_EXP+.@pt;
+ MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus;
end;
}