about maj points

All Helbreath Server Source Discussion here.
Post Reply
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

Well.. I use sources 2.24d and the config of the maj points are in the MajesticSettings.cfg right? but when i am on game, i cant get more maj points than 28.. why? :S majestic code is wrong? help plis :unsure:
ADDKiD
<3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Whats the maximum Maj pts you put? On my server I put max to 10k, because I know someone won't get 10k unless I manually give it to them...
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

i have

majestic-points-per-level = 1
majestic-min-level = 310
majestic-points-max = 999


but i get just 28 points and plap exp bug :s

is this the code for the maj points of 2.24d?

Code: Select all

// Majestic Code by Diuuude
void CGame::ReadMajesticSettings() 
{ 
   FILE * pFile; 
   HANDLE hFile; 
   DWORD  dwFileSize; 
   char * cp, * token, cReadMode;
   char cFn[120]; 
   char seps[] = "= \t\n"; 
   class CStrTok * pStrTok; 

   cReadMode = 0; 

   strcpy (cFn,"..\\GameConfigs\\MajesticSettings.cfg");

   hFile = CreateFile(cFn, GENERIC_READ, NULL, NULL, OPEN_EXISTING, NULL, NULL); 
   dwFileSize = GetFileSize(hFile, NULL); 
   if (hFile != INVALID_HANDLE_VALUE) CloseHandle(hFile); 

   pFile = fopen(cFn, "rt"); 
   if (pFile == NULL) {  
      return; 
   } 
   else { 
      cp = new char[dwFileSize+2]; 
      ZeroMemory(cp, dwFileSize+2); 
      fread(cp, dwFileSize, 1, pFile); 

      pStrTok = new class CStrTok(cp, seps); 
      token = pStrTok->pGet(); 
      //token = strtok( cp, seps );    
      while( token != NULL )   { 

         if (cReadMode != 0) { 
            switch (cReadMode) { 

            case 1: 
               if ((strlen(token) != 0) && (strlen(token) <= 10000) && (strlen(token) >= 1)) 
               { 
                  m_iMajesticPointsPerLevel = atoi(token); 
               } 
               cReadMode = 0; 
               break; 
  	case 2: 
               if ((strlen(token) != 0) && (strlen(token) <= 10000) && (strlen(token) >= 1)) 
               { 
                  m_iMajesticMinLevel = atoi(token); 
               } 
               cReadMode = 0; 
               break;
  	case 3: 
               if ((strlen(token) != 0) && (strlen(token) <= 10000) && (strlen(token) >= 1)) 
               { 
                  m_iMajesticPointsMax = atoi(token); 
               } 
               cReadMode = 0; 
               break;
              }
         } 
         else { 
            if (memcmp(token, "majestic-points-per-level"  , 25) == 0)   cReadMode = 1;
            if (memcmp(token, "majestic-min-level"  , 18) == 0)   cReadMode = 2;
            if (memcmp(token, "majestic-points-max"  , 19) == 0)   cReadMode = 3;
         } 

         token = pStrTok->pGet(); 
         //token = strtok( NULL, seps ); 
      } 

      delete pStrTok; 
      delete cp; 
   } 
   if (pFile != NULL) fclose(pFile); 
 
   PutLogList("(*) Loaded Majestic Config");

   return; 
} 
the code is good? or bad? :S
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Personally, I suggest using the v3.02 by Diuuude, Theres certain things you have to change but it works.
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

can you post me the code of the maj points? please? ty

//edit: yes no yes no yes no yes no :o :rolleyes:
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

help pls :rolleyes:
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

what fucking code for majestic points?
You somekind of an idiot?
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

if u got my source u thats one its has it in it just take it out it work buts when u put in the world.cfg 1 mj point per lvl shti its woudl realy be 2 so yea :P
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Post Reply