Author Topic: Restricting classes  (Read 322 times)

Legacy_Surek

  • Full Member
  • ***
  • Posts: 169
  • Karma: +0/-0
Restricting classes
« on: January 05, 2014, 10:26:23 pm »


               Is there any way to boot a player through scripting if they
are a certain class trying to join a server?



 Normal
 0
 
 
 
 
 false
 false
 false
 
 EN-US
 X-NONE
 X-NONE
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



/* Style Definitions */
table.MsoNormalTable
   {mso-style-name:"Table Normal";
   mso-tstyle-rowband-size:0;
   mso-tstyle-colband-size:0;
   mso-style-noshow:yes;
   mso-style-priority:99;
   mso-style-parent:"";
   mso-padding-alt:0in 5.4pt 0in 5.4pt;
   mso-para-margin-top:0in;
   mso-para-margin-right:0in;
   mso-para-margin-bottom:10.0pt;
   mso-para-margin-left:0in;
   line-height:115%;
   mso-pagination:widow-orphan;
   font-size:11.0pt;
   font-family:"Calibri","sans-serif";
   mso-ascii-font-family:Calibri;
   mso-ascii-theme-font:minor-latin;
   mso-hansi-font-family:Calibri;
   mso-hansi-theme-font:minor-latin;}
               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Restricting classes
« Reply #1 on: January 06, 2014, 04:53:36 am »


               Of course.....
               
               

               
            

Legacy_MrZork

  • Hero Member
  • *****
  • Posts: 1643
  • Karma: +0/-0
Restricting classes
« Reply #2 on: January 06, 2014, 05:30:12 am »


               Not sure if there is more to the question, but it seems that something like

    object oPC = GetEnteringObject();
    // boot them stinkin' barbarians
    if ( (GetIsObjectValid(oPC)) && (GetLevelByClass(oPC, CLASS_TYPE_BARBARIAN) > 0) ) {
        BootPC(oPC);
        }

in the OnClientEnter script would do the job.