View Single Post
  #4  
Old 05-09-2004, 09:33 AM
Jezebell
Discordant
 
Join Date: Feb 2004
Location: Florida
Posts: 441
Default

Is this whole part only for QST?

Code:
For QST: 
parser.cpp - around line 47, add to end of 'string cmds' line: 
Code: 

setskill 2|setlanguage 2|"); 
 


parser.cpp - around line 982, add: 
Code: 

else if (!strcmp(strlwr(command), "setlanguage")) { // bUsh 
   if (mob && mob->IsClient()) mob->CastToClient()->SetLanguage(atoi(arglist[0]), atoi(arglist[1])); 
} 
else if (!strcmp(strlwr(command),"setskill")) { // bUsh 
   if (mob && mob->IsClient()) mob->CastToClient()->SetSkill(atoi(arglist[0]), atoi(arglist[1])); 
} 
 


zone\client.cpp - around line 4273 (GetEquipmentColor, then end of file), add: 
Code: 

void Client::SetLanguage(int langid, int value) 
{ 
   if (langid > 26) 
      return; 
   if( value <= 100 ) 
   { 
      m_pp.languages[langid] = value; 

      Message_StringID( 270, 449 ); 
   } 
} 
 


Finally, in zone\client.h, around line 396, add these two lines: 
Code: 

void    SetLanguage(int langid, int value); // bUsh 
int     GetLanguage(int langid) { if (langid <= MAX_PP_LANGUAGE) { return m_pp.languages[langid]; } return 0; }
__________________
Eru, the Creator of Arda
ServerOwner for The First Age
An EQEMulator Roleplaying [Custom-Legit] Server
The First Age Website

Running on: Asus A7N8X-Deluxe, AMD Athlon XP 2100+, Geil 1024MB PC3200 Ultra DDR RAM,
WD 40GB 7200rpm ATA-100 HDD, Visiontek 128MB Geforce4 TI 4400, Windows XP Pro SP2
Reply With Quote