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 ➜ Compiling the server ➜ Class-Race combination

Class-Race combination

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


Posted by Davidgan   Singapore  (5 posts)  Bio
Date Sat 10 Aug 2002 11:55 AM (UTC)

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

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

Name _Vampire_~
Race 5
Classes 512
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 16 Aug 2002 10:40 PM (UTC)
Message
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
Top

Posted by Alkarindil   Brazil  (70 posts)  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

Message
Ok, now another problem..

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

And:

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
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Wed 06 Jun 2007 10:37 PM (UTC)
Message
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?

1
2
4
8
16
32
64
128
256
512

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
storm-bringer.org:4500
www.storm-bringer.org
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.


17,556 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.