summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-08 14:14:56 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-08 14:14:56 -0300
commitff6458624f1aa3891e5e3abcf5e1042156460d00 (patch)
tree6efaa68df0d488951e20ad0fff056e8cb30efdfe
parentd1b46fae726f8e8a840cce60c7ba859315361b08 (diff)
downloadserverdata-ff6458624f1aa3891e5e3abcf5e1042156460d00.tar.gz
serverdata-ff6458624f1aa3891e5e3abcf5e1042156460d00.tar.bz2
serverdata-ff6458624f1aa3891e5e3abcf5e1042156460d00.tar.xz
serverdata-ff6458624f1aa3891e5e3abcf5e1042156460d00.zip
First draft of Magic v3
-rw-r--r--npc/config/magic.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index f01dfebc8..2f4e2ba7b 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -155,3 +155,42 @@ function script SK_summon {
return;
}
+/////////////////////////////////////////
+// RegisterMagic(MSP, Skill, MaxLv, Item, Amount, 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);
+
+ $@MSK_MSPCOST[.@ski]=.@msp;
+ $@MSK_MAXLV[.@ski]=.@max;
+
+ $@MSK_ITEM[.@ski]=.@ite;
+ $@MSK_AMOUNT[.@ski]=.@amo;
+ $@MSK_COST[.@ski]=.@cos;
+
+ $@MSK_PREREQ[.@ski]=.@pre;
+ $@MSK_POSTREQ[.@ski]=.@pos;
+ return;
+}
+
+- script Magic Load NPC_HIDDEN,{
+OnInit:
+ /* RegisterMagic(MSP, Skill, MaxLv, Item, Amount, Cost, {PreReq, PostReq}) */
+
+ // Last Standing Man
+ RegisterMagic(3, CR_TRUST, 2, SpellBookPage, 1, 0);
+ // Falkon Punch
+ RegisterMagic(1, SM_BASH, 10, FluoPowder, 3, 0, false, MC_MAMMONITE);
+ // Supreme Attack
+ RegisterMagic(1, MC_MAMMONITE, 10, FluoPowder, 3, 0, SM_BASH, KN_AUTOCOUNTER);
+ // Counter Attack
+ RegisterMagic(2, KN_AUTOCOUNTER, 5, FluoPowder, 3, 0, MC_MAMMONITE);
+ end;
+}
+