summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-26 01:36:24 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-26 01:36:24 -0300
commit766f398bb13ca38b7c0f910f99c6f23e8e30be88 (patch)
tree5089c32d0e714864ab651ca682fb69e147f65315
parentc9792249998672e2bb3a64fec59df6344967bebe (diff)
downloadserverdata-766f398bb13ca38b7c0f910f99c6f23e8e30be88.tar.gz
serverdata-766f398bb13ca38b7c0f910f99c6f23e8e30be88.tar.bz2
serverdata-766f398bb13ca38b7c0f910f99c6f23e8e30be88.tar.xz
serverdata-766f398bb13ca38b7c0f910f99c6f23e8e30be88.zip
Formatting, Style & Comments - magic config file
-rw-r--r--npc/config/magic.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 7570d0e9c..e1cd51880 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -36,6 +36,7 @@ function script AdjustAttackpower {
return AdjustSpellpower(.@power, .@target, .@type);
}
+
// SkillID, EXP Points
function script GetManaExp {
.@sk=getarg(0);
@@ -58,6 +59,9 @@ function script GetManaExp {
return;
}
+
+// DEPRECATED: Please do not use in newer scripts.
+// It is for Transmigration skill only (@sk-trans needs it)
// SkillID, Mana{, MP per level}
function script MagicCheck {
// PRE EXECUTION
@@ -85,6 +89,7 @@ function script MagicCheck {
return 1;
}
+
// SkillID, MobID{, SkillLevelPerMob=2{, Level Override}}
function script SummonMagic {
.@sk=getarg(0);
@@ -101,7 +106,7 @@ function script SummonMagic {
// Cause effect
// Summoned monsters live from 45 to 60 seconds, and each skill levels grants 10s extra life
// The 35~50 is not a defect, remember skill starts at level 1...
- // PS. Abizit gives 3s per level, and +1 HP per level
+ // PS. Abizit makes a variation from 80% to 130% of official values
for (.@i = 0; .@i < (.@lv+(.@adj-1))/.@adj; .@i++) {
.@lifetime=rand(35,50)+.@lv*10;
// Abizit makes lifetime vary (like AdjustSpellpower)
@@ -146,6 +151,7 @@ function script areaharm {
return;
}
+
// mescordialog(text, color, {dialog=1})
function script mescordialog {
if (getarg(2, true))
@@ -178,6 +184,7 @@ function script ShowAbizit {
return;
}
+
// SK_summon(ID, amount, mexp)
function script SK_summon {
.@mob=getarg(0);