Author Topic: Locking certain classes?  (Read 898 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Locking certain classes?
« on: August 22, 2015, 09:11:10 pm »


               

okay perhaps this does not belong in this section but I was wondering if anyone knew if you could lock certain classes? If yes then is it also possible to lock them for a certain Race/Subrace? For example lock paladin from the vampire subrace?


 



               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Locking certain classes?
« Reply #1 on: August 23, 2015, 02:11:39 am »


               

In the classes.2da you can find a column that says 'PlayerClass'. Set that to '0', that should disable it.


 


I'm not positive, but I think that for a servervault players will still have access to the default classes until they actually log in, and not the custom 2da. I've come across this problem in my own server because I've customized many of the classes with more than standard HP and some with higher Skill points. Players are unable to gain that extra bonus without either an override classes.2da, or using NWNCX. I don't know another way around that.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Locking certain classes?
« Reply #2 on: August 23, 2015, 09:55:08 am »


               


okay perhaps this does not belong in this section but I was wondering if anyone knew if you could lock certain classes? If yes then is it also possible to lock them for a certain Race/Subrace? For example lock paladin from the vampire subrace?




Mad Poets solution wont work for you since you need to do this dynamically


 


Link- with 1.71 you can do this via setting local variable in OnClientEnter, of course, player will be able to pick paladin with that subrace in character creation, BUT in that case you can simply choose not to apply subrace because he is a wrong class. Even if you apply it,, with this solution such player won't be allowed to levelup as paladin further anyway.


               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Locking certain classes?
« Reply #3 on: August 23, 2015, 10:02:38 am »


               

ah! Well already found a way around it, created a simply script that checks that IF the player chooses a certain class that does not match the subrace the character will not be allowed to transport into the game '<img'> 


 


but thanks for the input people! '<img'>


               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Locking certain classes?
« Reply #4 on: August 23, 2015, 03:07:59 pm »


               

Sorry, didn't notice the part where you needed it restricted to subrace.


 


On my server male characters aren't allowed to be witches. I just boot players that log in as witches after 1 minute unless a DM approves them while they are on. Seems you found a similar method. 



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Locking certain classes?
« Reply #5 on: August 23, 2015, 07:57:44 pm »


               


Sorry, didn't notice the part where you needed it restricted to subrace.


 


On my server male characters aren't allowed to be witches. I just boot players that log in as witches after 1 minute unless a DM approves them while they are on. Seems you found a similar method. 




Yeah, well they will just be stuck in the OOC room, looking rather stupid while all the other players go in and have fun.  rather proud of myself  '^_^'