diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-01 11:05:13 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-01 11:05:13 -0400 |
commit | 59f26d0b42143ba632d9a1bbfe2cdd896ca933cd (patch) | |
tree | b2e8634b9be7198d51a0c7ca9cc2c8f26e70d8b5 /world/map/npc/magic/level0-discharge.txt | |
parent | 179a355d8b359ff361a82425fa5f6d022ee11dae (diff) | |
download | serverdata-59f26d0b42143ba632d9a1bbfe2cdd896ca933cd.tar.gz serverdata-59f26d0b42143ba632d9a1bbfe2cdd896ca933cd.tar.bz2 serverdata-59f26d0b42143ba632d9a1bbfe2cdd896ca933cd.tar.xz serverdata-59f26d0b42143ba632d9a1bbfe2cdd896ca933cd.zip |
add `discharge` spell
Diffstat (limited to 'world/map/npc/magic/level0-discharge.txt')
-rw-r--r-- | world/map/npc/magic/level0-discharge.txt | 18 |
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; +} |