From 82b027e7a16ab9a29af11a6246eddfe7a846d793 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 15 Feb 2021 13:33:28 -0300 Subject: Some extra cleanup might be desired --- npc/config/magic.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'npc/config') 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}) */ -- cgit v1.2.3-70-g09d2