From e1d76e52990b2a305c203981b16cce4905dc1aaa Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 12 May 2016 16:56:39 -0400 Subject: turn detsanc into a non-magic spell --- world/map/npc/magic/level0-antiprotect.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'world/map/npc/magic/level0-antiprotect.txt') diff --git a/world/map/npc/magic/level0-antiprotect.txt b/world/map/npc/magic/level0-antiprotect.txt index 8e9b700c..129d3c62 100644 --- a/world/map/npc/magic/level0-antiprotect.txt +++ b/world/map/npc/magic/level0-antiprotect.txt @@ -1,6 +1,6 @@ -|script|antiprotect|32767 { - if(call("magic_checks")) end; + if(call("magic_checks", 1)) end; callfunc "magic_exp"; if (@antiprotect) @@ -17,10 +17,7 @@ L_Disable: end; OnInit: - set .school, SKILL_MAGIC_NATURE; set .invocation$, chr(MAGIC_SYMBOL) + "detsanc"; // used in npcs that refer to this spell - void call("magic_register"); - set .level, 0; - set .exp_gain, 0; + registercmd .invocation$, strnpcinfo(0); end; } -- cgit v1.2.3-70-g09d2