summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-15 13:33:28 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-15 13:33:28 -0300
commit82b027e7a16ab9a29af11a6246eddfe7a846d793 (patch)
tree7d6f3b0ebd4b786ad9cf121727194a45c10e627e /npc/config
parent7b1152648f62bc917333f8abd6f49e20ea8022ee (diff)
downloadserverdata-82b027e7a16ab9a29af11a6246eddfe7a846d793.tar.gz
serverdata-82b027e7a16ab9a29af11a6246eddfe7a846d793.tar.bz2
serverdata-82b027e7a16ab9a29af11a6246eddfe7a846d793.tar.xz
serverdata-82b027e7a16ab9a29af11a6246eddfe7a846d793.zip
Some extra cleanup might be desired
Diffstat (limited to 'npc/config')
-rw-r--r--npc/config/magic.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 5d08a1047..9c9a3c6bc 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -314,6 +314,17 @@ function script RegisterMagic {
- script Magic Load NPC_HIDDEN,{
OnInit:
+ // Cleanup in case of reload
+ deletearray($@MSK_MSPCOST);
+ deletearray($@MSK_MAXLV);
+
+ deletearray($@MSK_ITEM);
+ deletearray($@MSK_AMOUNT);
+ deletearray($@MSK_COST);
+
+ deletearray($@MSK_CLASS);
+ deletearray($@MSK_PREREQ);
+ deletearray($@MSK_POSTREQ);
/* RegisterMagic(MSP, Skill, MaxLv, Item, Amount,
Class, Cost, {PreReq, PostReq}) */