![]() |
Spell Levels - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Spell Levels (/showthread.php?tid=893) |
Spell Levels - Rezeyu - 22-04-2007 Well, I was writing a small packet edit to the spells packets so that I could display some info in the client's lstSpell, and for 2 hours (Took a pizza break too) I couldn't get it to work, I tried a number of things, then I figured I should check at how Mirage loaded the LevelReq for spells, and then I noticed this: Code: Sub LoadSpells() So yeah, It doesn't load said spells. then I scrolled up, and realized it doesn't save them either. So, I added this to Sub LoadSpells(): Code: Spell(i).LevelReq = Val(GetVar(FileName, "SPELL" & i, "LevelReq")) And this to Sub SaveSpell(ByVal SpellNum As Long): Code: Call PutVar(FileName, "SPELL" & SpellNum, "LevelReq", Trim(Spell(SpellNum).LevelReq)) And that -should- fix it.. I think. Unless I'm just retarded. - Da Undead - 22-04-2007 I think this is right, good find ![]() |