Aller au contenu

Photo

Locking certain classes?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Who said that I

Who said that I
  • Members
  • 492 messages

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?

 



#2
The Mad Poet

The Mad Poet
  • Members
  • 425 messages

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.



#3
Shadooow

Shadooow
  • Members
  • 4 465 messages

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.



#4
Who said that I

Who said that I
  • Members
  • 492 messages

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 :) 

 

but thanks for the input people! :D



#5
The Mad Poet

The Mad Poet
  • Members
  • 425 messages

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. 


  • Who said that I aime ceci

#6
Who said that I

Who said that I
  • Members
  • 492 messages

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  ^_^