From 766f398bb13ca38b7c0f910f99c6f23e8e30be88 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Jun 2020 01:36:24 -0300 Subject: Formatting, Style & Comments - magic config file --- npc/config/magic.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'npc') 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); -- cgit v1.2.3-60-g2f50