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 ➜ SMAUG ➜ Running the server ➜ New class

New class

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


Posted by Malti   USA  (55 posts)  Bio
Date Tue 02 May 2006 03:17 AM (UTC)
Message
I added a new class and I am trying to update the race files..I am assuming the classes use the following bit layout


1 1 1 1 1 1 1 1 1 1 1
- - - - - - - - - - -
1 5 2 1 6 3 1 8 4 2 1
0 1 5 2 4 2 6
2 2 6 8
4

10 9 8 7 6 5 4 3 2 1 0 - Classes


so if I wanted class 0, 9, and 10...the number I would put would be 1537? is this correct? and would all the classes be 2047? and does the first class (class 0) start at the second bit(2) or first (1)?

I know this is all covered in the forum, but i still don't understand.



Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #1 on Tue 02 May 2006 03:22 AM (UTC)
Message
That sounds reasonably close to right, but I always just use the setrace command online to adjust that.. that way I don't have to do the bit value math.. it's not straight binary, it's bit values, btw, so mage is (by default) 1, then cleric is 2, thief is 4, warrior is 8, etc, so a race that could be just those four would be 15, but if you get enough classes and only want certain ones the math can be a pain in the rear.

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Malti   USA  (55 posts)  Bio
Date Reply #2 on Tue 02 May 2006 03:30 AM (UTC)
Message
ok then, I will do it online since i am not really getting the bitvalue math. When you use the setrace <race> classes <class> does that overwrite what is already there? or does it add that class to the list of accepted classes?
Top

Posted by Malti   USA  (55 posts)  Bio
Date Reply #3 on Tue 02 May 2006 03:55 AM (UTC)
Message
I dont understand how any of this works. I am very very confused. When I use setrace <half-elf> classes <bard> then it automatically makes every class available. I have 10 classes (0 through 9) and bard is my 9th class (all the others are the standard classes). Can anyone explain how to do this bit math?


Top

Posted by Malti   USA  (55 posts)  Bio
Date Reply #4 on Tue 02 May 2006 04:08 AM (UTC)
Message
Haha, this was kind of a wasted post because I figured it out. Here is the answer and I think this can help anyone who doesn't understand the other posts...


1 1 1 1 1 1 1 1 1 1
- - - - - - - - - -
5 2 1 6 3 1 8 4 2 1
1 5 2 4 2 6
2 6 8

9 8 7 6 5 4 3 2 1 0


This is a bit table for a standard 9 class system. The class numbers are in bold. If you wanted every class except class 0, then you make the class line in the file like so:

Classes 1

If you wanted every class except for 0 and 4 then you would do the following:

Classes 17

using 513 or 0 will allow all classes since they are both beyond the bit range. I could be wrong about this, but I am pretty sure I am not since this worked for me.

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.


20,145 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.