I was going through debugging and testing and I ran into an error. I typed in the command "practice" and this occurred:
refresh 100% remove curse 100% remove invis 100% remove trap 100%
----------------------------------[Spells]----------------------------------
reserved 100% sanctuary 100% scry 100%
shadowform 100% shield 100%
I noticed that the spells header had occured about halfway done the list. SO I looked further into this problem. I noticed that the original SMAUG code had the Reserved skill on the top of the skills.dat list and I guess the check for the Spells head occurs after the spell reserved.
I believe that when I used the area editor it set my spells in alphabetical order, disrupting this. How would I go about fixing this?
-Toy
refresh 100% remove curse 100% remove invis 100% remove trap 100%
----------------------------------[Spells]----------------------------------
reserved 100% sanctuary 100% scry 100%
shadowform 100% shield 100%
I noticed that the spells header had occured about halfway done the list. SO I looked further into this problem. I noticed that the original SMAUG code had the Reserved skill on the top of the skills.dat list and I guess the check for the Spells head occurs after the spell reserved.
if ( argument[0] == '\0' )
{
int col;
sh_int lasttype, cnt;
col = cnt = 0;
lasttype = SKILL_SPELL;
set_pager_color( AT_MAGIC, ch );
for ( sn = 0; sn < top_sn; sn++ )
{
if ( !skill_table[sn]->name )
break;
if ( strcmp(skill_table[sn]->name, "reserved") == 0 && ( IS_IMMORTAL(ch) || DUAL_SKILL(ch, sn) ) )
{
if ( col % 3 != 0 )
send_to_pager( "\n\r", ch );
set_pager_color( AT_MAGIC, ch );
send_to_pager_color( " ----------------------------------[&CSpells&B]----------------------------------\n\r", ch);
col = 0;
}I believe that when I used the area editor it set my spells in alphabetical order, disrupting this. How would I go about fixing this?
-Toy