diff options
Diffstat (limited to 'npc/functions/magic.txt')
-rw-r--r-- | npc/functions/magic.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/functions/magic.txt b/npc/functions/magic.txt new file mode 100644 index 00000000..9cce48c2 --- /dev/null +++ b/npc/functions/magic.txt @@ -0,0 +1,19 @@ +// Basic magic functionality + +// Magic system uses: +// - MAGIC_EXP (magic experience points, gained for spellcasting) +// - MAGIC_FLAGS + +// ------------------------------------------------------------ +// Gain initial magic skill +// ------------------------------------------------------------ +function script MagicGainBasic { + + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_DRANK_POTION; + close; + +} + +function script MagicGainExp { + set MAGIC_EXP, MAGIC_EXP + (@value * @value); +} |