summaryrefslogtreecommitdiff
path: root/npc/magic/level0-discharge.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/magic/level0-discharge.txt')
-rwxr-xr-xnpc/magic/level0-discharge.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/magic/level0-discharge.txt b/npc/magic/level0-discharge.txt
new file mode 100755
index 00000000..986ccf62
--- /dev/null
+++ b/npc/magic/level0-discharge.txt
@@ -0,0 +1,17 @@
+- script discharge spell NPC32767,{
+ if(call("magic_checks")) end;
+ callfunc "magic_exp";
+
+ // tell the spells they were discharged
+ // XXX: maybe we could make it do area damage when you discharge (release your energy all of a sudden)
+ addtimer 0, "::OnDischarge"; // seeks OnDischarge in ALL npcs
+ end;
+
+OnInit:
+ .school = SKILL_MAGIC;
+ set .invocation$, chr(MAGIC_SYMBOL) + "discharge"; // used in npcs that refer to this spell
+ void call("magic_register");
+ .level = 0;
+ .exp_gain = 0;
+ end;
+}