Ok a day or so ago I got the drive to add a skeditor to my mud. Everything
went smothly except for one thing. The gsns are all screwy. Every singgle
spell/skill has the same gsn, gsn_blindness, which is the first in my newly
created gsn table. eg of entry
"{ "gsn_blindness", &gsn_blindness },"
Now, when I use my skeditor to set the gsn. It says "Gsn set to gsn_blah" so
that part works. But when I use skedit show, it still says gsn_blindness.
How it returns that is my function fing_gsn
int find_gsn(sh_int *gsn)
{
int i;
for(i = 0 ; gsn_table[i].name != NULL ; i++ )
{
if(&gsn_table[i].gsn == &gsn)
return i;
}
return 0;
}
Its used like gsn_table[gsn_lookup(skill->pgsn)].gsn.
If you need more info, just ask.
So, now, when I use a skill like circle, it it shows up "Your misses
soandso (0)" which isn't right :)
Davion.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail