Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ New classes dont have skills or spells

New classes dont have skills or spells

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Iamauser   (12 posts)  Bio
Date Sun 24 Jun 2001 08:01 PM (UTC)
Message
I made some new classes and when I make a new character and don't customize, the character has every skill and spell at 1% when I do the practice command but it says I have no spells or skills when I try to see them with the spell and skill command. How would I fix that in the code?

I also have no clue as to how to set what weapons they can choose from when creating a new character.

Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 26 Jun 2001 12:26 PM (UTC)
Message
I'm not a big expert on ROM and can't answer your first question.

As for the weapons, I found this in const.c:


/* weapon selection table */
const struct weapon_type weapon_table [] =
{
{ "sword", OBJ_VNUM_SCHOOL_SWORD, WEAPON_SWORD, &gsn_sword },
{ "mace", OBJ_VNUM_SCHOOL_MACE, WEAPON_MACE, &gsn_mace },
{ "dagger", OBJ_VNUM_SCHOOL_DAGGER, WEAPON_DAGGER, &gsn_dagger },
{ "axe", OBJ_VNUM_SCHOOL_AXE, WEAPON_AXE, &gsn_axe },
{ "staff", OBJ_VNUM_SCHOOL_STAFF, WEAPON_SPEAR, &gsn_spear },
{ "flail", OBJ_VNUM_SCHOOL_FLAIL, WEAPON_FLAIL, &gsn_flail },
{ "whip", OBJ_VNUM_SCHOOL_WHIP, WEAPON_WHIP, &gsn_whip },
{ "polearm", OBJ_VNUM_SCHOOL_POLEARM,WEAPON_POLEARM, &gsn_polearm },
{ NULL, 0, 0, NULL }
};

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 26 Jun 2001 12:31 PM (UTC)
Message
You might find more information in the help file doc/class.txt that came with ROM. Here is what it has to say about adding a new class:

Adding a new class

Here's how to add a new class:


  1. Increment 'MAX_CLASS' in 'merc.h'

  2. Add a new entry to 'class_table' in 'const.c'.

  3. Add sn level numbers to 'skill_table' in 'const.c' for the new class. Set the level to 37 for all skills or spells which the class is unable to use.

  4. Add an entire new block of titles to 'title_table' in 'const.c'.

  5. Add new lines to 'pose_table' in act_comm.c. You need two lines at each level for that class. To keep the 'pose' messages from looking like 'emote' messages, avoid putting the name of the character (the '$n' construct) at the beginning of the line.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,966 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.