[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Class-Race combination
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Class-Race combination

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

Posted by Davidgan   Singapore  (5 posts)  [Biography] bio
Date Sat 10 Aug 2002 11:55 AM (UTC)

Amended on Sun 11 Aug 2002 06:40 AM (UTC) by Davidgan

How do I specify what classes a certain race can go?

Name _Vampire_~
Race 5
Classes 512
[Go to top] top

Posted by Nick Gammon   Australia  (21,562 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 16 Aug 2002 10:40 PM (UTC)
Looks like classes is a bitmap representing classes a race *cannot* be. Try making it zero to get all classes. Otherwise:

1 - omit class 1
2 - omit class 2
4 - omit class 3
8 - omit class 4

and so on.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Alkarindil   Brazil  (70 posts)  [Biography] bio
Date Reply #2 on Wed 06 Jun 2007 10:02 PM (UTC)

Amended on Wed 06 Jun 2007 10:06 PM (UTC) by Alkarindil

Ok, now another problem..

Those class numbers.. what's the meaning of 931???
It is on the halfling file, has a default value..


How to omit more than one class? Simple mix all the numbers?
for example:
I want to omit classes 3 and 5:
3 = 4
5 = 16

so I use 416? 164?

Thanks in advance! =D
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #3 on Wed 06 Jun 2007 10:37 PM (UTC)
If you're working with a bit table, you add the values.

Your omit 3 and 5 would be 20, 931 would be um.... lets have a chart for reference shall we?


931 - 512 = 419 - 256 = 163 - 128 = 35 - 32 = 3 - 2 = 1

So, 931 is 512, 256, 128, 32, 2 and 1. Whichever classes those correspond to on the table are what aren't available to that race.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]