Alist and Slist

Posted by USER007 on Sat 04 Oct 2003 09:15 PM — 9 posts, 29,288 views.

#0
How do I remove the skills and abilities off the slist and alist and add my custom skills/abilities?
USA #1
Yo Anavel. :P
Well, Smaug doesn't come with alist, but doing through slist. Slist shows all the skills that certain class can learn, so by editing the class files in /classes folder, you can change the skills shown on slist. Here's an example:

Name        Warrior~
Class       3
Attrprime   1
Weapon      10313
Guild       3022
Skilladept  85
Thac0       18
Thac32      6
Hpmin       11
Hpmax       15
Mana        0
Expbase     1150
Skill 'aggressive style' 1 95
Skill 'aid' 6 80
Skill 'bash' 30 85
Skill 'berserk style' 10 95
Skill 'blitz' 28 80
Skill 'climb' 2 85
Skill 'cook' 1 95

As you can tell, those Skills will be shown on slist, but if you change it as

Name        Warrior~
Class       3
Attrprime   1
Weapon      10313
Guild       3022
Skilladept  85
Thac0       18
Thac32      6
Hpmin       11
Hpmax       15
Mana        0
Expbase     1150
Skill 'aid' 6 80

Then it will only have the skill aid, in slist. Gotta change all the classes though.
#2
Ok :D So its all in the race files? Ok now how do you open them? What program do I need? And whats the difference between a C file and a CPP file? :P
USA #3
I believe he said class files, so I wound't go messing with the races :P Umm, for programs, depending on your box, you can use pico, emacs, vi, or notepad, wordpad, or something else related. A C file is just an extention that says the file is a C file, meaning its coded on C. A CPP file is one that is coded in C++, or thats how I understand it at least. Good luck, hope that was some help.
USA #4
I think Anavel is using Windows. Open the files in notepad, or something. If your using Linux, I'd use pico.
#5
Yeah but don't I neeed to recompile them if I change them? If so I don't have the program to do it. :P
USA #6
Hrm... I don't think you need to. I'm not 100% sure though.
Canada #7
You shouldn't need to recompile after changing the class files, just reboot/copyover. The only time you need to recompile is if you change something in one of the .c or .h files. The rest are read in, and are semi-independant.
#8
Oh ok thanks. :)