summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level0-discharge.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-01 20:30:10 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-01 20:30:10 -0400
commit1ceff5730e102c64e25769580615af3e4bf0d280 (patch)
tree578616b3d03aeebbb8bdff19dd213d3f9ea1fb68 /world/map/npc/magic/level0-discharge.txt
parentb5dd782fc8080ca5e8b3ca1bb835582820872138 (diff)
parent4725e8849e62b84f75385b6699def6bfd6f5dcb7 (diff)
downloadserverdata-1ceff5730e102c64e25769580615af3e4bf0d280.tar.gz
serverdata-1ceff5730e102c64e25769580615af3e4bf0d280.tar.bz2
serverdata-1ceff5730e102c64e25769580615af3e4bf0d280.tar.xz
serverdata-1ceff5730e102c64e25769580615af3e4bf0d280.zip
Merge pull request #497 from mekolat/override
add discharge spell
Diffstat (limited to 'world/map/npc/magic/level0-discharge.txt')
-rw-r--r--world/map/npc/magic/level0-discharge.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/world/map/npc/magic/level0-discharge.txt b/world/map/npc/magic/level0-discharge.txt
new file mode 100644
index 00000000..7b2cfa8c
--- /dev/null
+++ b/world/map/npc/magic/level0-discharge.txt
@@ -0,0 +1,18 @@
+-|script|discharge spell|32767
+{
+ 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:
+ set .school, SKILL_MAGIC;
+ set .invocation$, chr(MAGIC_SYMBOL) + "discharge"; // used in npcs that refer to this spell
+ void call("magic_register");
+ set .level, 0;
+ set .exp_gain, 0;
+ end;
+}