(fixed) Spell Experience
Moderator: Sophia
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- TheMormegil
- Adept
- Posts: 213
- Joined: Thu Apr 10, 2003 10:23 am
- Location: Wales
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Oops!TheMormegil wrote:Do you get experience for casting spells yet?
Now you do. I calculated the xp but I forgot the line that actually gives it.
It's simple to add if you feel like it. Near the end of the function "sys_spell_cast" in system.lua, look for a block of code like:
Code: Select all
local itime = dsb_get_idle(ppos)
if (itime > 80) then itime = 80 end
dsb_set_idle(ppos, itime + spell[sr].idleness + ext_delay)
Code: Select all
xp_up(who, spell[sr].class, spell[sr].subskill, xp_gain)