summaryrefslogtreecommitdiff
path: root/npc/functions/magic.txt
blob: 9cce48c2dc88d109e7bf8ce95f88652be712e41a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}