diff options
Diffstat (limited to 'npc/config')
-rw-r--r-- | npc/config/magic.txt | 39 |
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; +} + |