summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-08 17:10:42 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-08 17:10:42 -0300
commitfc3832d11bfbf46953345e30e3d5f7806d3837a0 (patch)
treefb46e25e0f3b2d6ba96ccabe0051e3c32da89a90 /npc
parent88ecb27b010ef6b75ff913647a726360cbb74d99 (diff)
downloadserverdata-fc3832d11bfbf46953345e30e3d5f7806d3837a0.tar.gz
serverdata-fc3832d11bfbf46953345e30e3d5f7806d3837a0.tar.bz2
serverdata-fc3832d11bfbf46953345e30e3d5f7806d3837a0.tar.xz
serverdata-fc3832d11bfbf46953345e30e3d5f7806d3837a0.zip
Record as well which skills each class have.
This will be used on Colin, Luca and Mr. Saves. It is useful for looping purposes.
Diffstat (limited to 'npc')
-rw-r--r--npc/config/magic.txt29
1 files changed, 19 insertions, 10 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index d8339622c..7598becff 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -164,16 +164,17 @@ function script SK_summon {
}
/////////////////////////////////////////
-// RegisterMagic(MSP, Skill, MaxLv, Item, Amount, Cost, {PreReq, PostReq})
+// RegisterMagic(MSP, Skill, MaxLv, Item, Amount, Class, Cost, {PreReq, PostReq})
function script RegisterMagic {
.@msp=getarg(0);
.@ski=getarg(1);
.@max=getarg(2);
.@ite=getarg(3);
.@amo=getarg(4);
- .@cos=getarg(5);
- .@pre=getarg(6, false);
- .@pos=getarg(7, false);
+ .@cla=getarg(5);
+ .@cos=getarg(6);
+ .@pre=getarg(7, false);
+ .@pos=getarg(8, false);
$@MSK_MSPCOST[.@ski]=.@msp;
$@MSK_MAXLV[.@ski]=.@max;
@@ -184,32 +185,40 @@ function script RegisterMagic {
$@MSK_PREREQ[.@ski]=.@pre;
$@MSK_POSTREQ[.@ski]=.@pos;
+
+ array_push($@MSK_CLASS[.@cla], .@ski);
return;
}
- script Magic Load NPC_HIDDEN,{
OnInit:
- /* RegisterMagic(MSP, Skill, MaxLv, Item, Amount, Cost, {PreReq, PostReq}) */
+ /* RegisterMagic(MSP, Skill, MaxLv, Item, Amount,
+ Class, Cost, {PreReq, PostReq}) */
//////////////////////// Scholarship
// Last Standing Man
- RegisterMagic(3, CR_TRUST, 2, SpellBookPage, 1, 0);
+ RegisterMagic(3, CR_TRUST, 2, SpellBookPage, 1,
+ CLASS_SCHOLARSHIP, 0);
//////////////////////// Physical Sciences
// Falkon Punch
- RegisterMagic(1, SM_BASH, 10, FluoPowder, 3, 0, false, MC_MAMMONITE);
+ RegisterMagic(1, SM_BASH, 10, FluoPowder, 3,
+ CLASS_PHYSICAL, 0, false, MC_MAMMONITE);
// Supreme Attack
- RegisterMagic(1, MC_MAMMONITE, 10, FluoPowder, 3, 0, SM_BASH, KN_AUTOCOUNTER);
+ RegisterMagic(1, MC_MAMMONITE, 10, FluoPowder, 3,
+ CLASS_PHYSICAL, 0, SM_BASH, KN_AUTOCOUNTER);
// Counter Attack
- RegisterMagic(2, KN_AUTOCOUNTER, 5, FluoPowder, 3, 0, MC_MAMMONITE, false);
+ RegisterMagic(2, KN_AUTOCOUNTER, 5, FluoPowder, 3,
+ CLASS_PHYSICAL, 0, MC_MAMMONITE, false);
//////////////////////// Destructive Magic
//////////////////////// Trickmaster
//////////////////////// Other: Summonning
//////////////////////// Other: Misc
// Chargd Shot
- RegisterMagic(0, AC_CHARGEARROW, 1, NPCEyes, 1, 0);
+ RegisterMagic(0, AC_CHARGEARROW, 1,
+ CLASS_OTHER, NPCEyes, 1, 0);
end;
}