[src] special status

Codes submitted by developers and people of outpost. Come here to get codes for your client sources.
Post Reply
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

so ace asked that code on msn?
i havent tested it ... but on build it dont make any error and it seems work :)

Search

Code: Select all

if( bCitizen == FALSE )	strcpy(cTxt, DRAW_OBJECT_NAME60);
	else
	{
  if( bAresden )
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ARECIVIL);
  	else strcpy(cTxt, DEF_MSG_ARESOLDIER);
  }
  else
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ELVCIVIL);
  	else strcpy(cTxt, DEF_MSG_ELVSOLDIER);
  }
	}
replace whit

Code: Select all

if( bCitizen == FALSE )	strcpy(cTxt, DRAW_OBJECT_NAME60);
	else if(m_cPlayerName == "GM1" || m_cPlayerName == "GM2" || m_cPlayerName == "GM3") strcat(G_cTxt, DEF_MSG_ADMIN);
	else
	{
  if( bAresden )
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ARECIVIL);
  	else strcpy(cTxt, DEF_MSG_ARESOLDIER);
  }
  else
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ELVCIVIL);
  	else strcpy(cTxt, DEF_MSG_ELVSOLDIER);
  }
	}
then search

Code: Select all

if( m_bCitizen == FALSE ) strcpy( G_cTxt, DRAW_DIALOGBOX_CHARACTER7);
	
	else
	{	if(m_bHunter)
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARECIVIL);
  	else strcat(G_cTxt, DEF_MSG_ELVCIVIL);
  }else
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARESOLDIER);
  	else strcat(G_cTxt, DEF_MSG_ELVSOLDIER);
  }
  if( m_iGuildRank >= 0 )
  {	strcat( G_cTxt, "(" );
  	strcat( G_cTxt, m_cGuildName );
  	if( m_iGuildRank == 0 ) strcat( G_cTxt, DEF_MSG_GUILDMASTER1 );
  	else strcat( G_cTxt, DEF_MSG_GUILDSMAN1 );
	}	}
replace whit

Code: Select all

if( m_bCitizen == FALSE ) strcpy( G_cTxt, DRAW_DIALOGBOX_CHARACTER7);
	else if(m_cPlayerName == "GM1" || m_cPlayerName == "GM2" || m_cPlayerName == "GM3") strcat(G_cTxt, DEF_MSG_ADMIN);
	else
	{	if(m_bHunter)
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARECIVIL);
  	else strcat(G_cTxt, DEF_MSG_ELVCIVIL);
  }else
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARESOLDIER);
  	else strcat(G_cTxt, DEF_MSG_ELVSOLDIER);
  }
  if( m_iGuildRank >= 0 )
  {	strcat( G_cTxt, "(" );
  	strcat( G_cTxt, m_cGuildName );
  	if( m_iGuildRank == 0 ) strcat( G_cTxt, DEF_MSG_GUILDMASTER1 );
  	else strcat( G_cTxt, DEF_MSG_GUILDSMAN1 );
	}	}
now add in lan_eng.h

Code: Select all

#define DEF_MSG_ADMIN  	"Admin"
probably that status will be removed if u create guild or kill somebody
but i dunno :)
ADDKiD
<3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Mind telling us what the fuck its for? I'm guessing GameMaster Name tags...
Pener
Member
Posts: 110
Joined: Fri Feb 27, 2004 3:57 pm
Location: Czech Republic

Post by Pener »

not works for me :blink:
<img src='http://i19.photobucket.com/albums/b153/s00pr/Pener.jpg' border='0' alt='user posted image' /><br><img src='http://i19.photobucket.com/albums/b153/ ... anner3.jpg' border='0' alt='user posted image' />
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

no work? :o

ok ill test at home ...
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

I'll test it too... I might need your help with something Treax...
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Treax2 wrote: so ace asked that code on msn?
i havent tested it ... but on build it dont make any error and it seems work :)

Search

Code: Select all

if( bCitizen == FALSE )	strcpy(cTxt, DRAW_OBJECT_NAME60);
	else
	{
  if( bAresden )
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ARECIVIL);
  	else strcpy(cTxt, DEF_MSG_ARESOLDIER);
  }
  else
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ELVCIVIL);
  	else strcpy(cTxt, DEF_MSG_ELVSOLDIER);
  }
	}
replace whit

Code: Select all

if( bCitizen == FALSE )	strcpy(cTxt, DRAW_OBJECT_NAME60);
	else if(m_cPlayerName == "GM1" || m_cPlayerName == "GM2" || m_cPlayerName == "GM3") strcat(G_cTxt, DEF_MSG_ADMIN);
	else
	{
  if( bAresden )
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ARECIVIL);
  	else strcpy(cTxt, DEF_MSG_ARESOLDIER);
  }
  else
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ELVCIVIL);
  	else strcpy(cTxt, DEF_MSG_ELVSOLDIER);
  }
	}
then search

Code: Select all

if( m_bCitizen == FALSE ) strcpy( G_cTxt, DRAW_DIALOGBOX_CHARACTER7);
	
	else
	{	if(m_bHunter)
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARECIVIL);
  	else strcat(G_cTxt, DEF_MSG_ELVCIVIL);
  }else
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARESOLDIER);
  	else strcat(G_cTxt, DEF_MSG_ELVSOLDIER);
  }
  if( m_iGuildRank >= 0 )
  {	strcat( G_cTxt, "(" );
  	strcat( G_cTxt, m_cGuildName );
  	if( m_iGuildRank == 0 ) strcat( G_cTxt, DEF_MSG_GUILDMASTER1 );
  	else strcat( G_cTxt, DEF_MSG_GUILDSMAN1 );
	}	}
replace whit

Code: Select all

if( m_bCitizen == FALSE ) strcpy( G_cTxt, DRAW_DIALOGBOX_CHARACTER7);
	else if(m_cPlayerName == "GM1" || m_cPlayerName == "GM2" || m_cPlayerName == "GM3") strcat(G_cTxt, DEF_MSG_ADMIN);
	else
	{	if(m_bHunter)
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARECIVIL);
  	else strcat(G_cTxt, DEF_MSG_ELVCIVIL);
  }else
  {	if (m_bAresden)
     strcat(G_cTxt, DEF_MSG_ARESOLDIER);
  	else strcat(G_cTxt, DEF_MSG_ELVSOLDIER);
  }
  if( m_iGuildRank >= 0 )
  {	strcat( G_cTxt, "(" );
  	strcat( G_cTxt, m_cGuildName );
  	if( m_iGuildRank == 0 ) strcat( G_cTxt, DEF_MSG_GUILDMASTER1 );
  	else strcat( G_cTxt, DEF_MSG_GUILDSMAN1 );
	}	}
now add in lan_eng.h

Code: Select all

#define DEF_MSG_ADMIN  	"Admin"
probably that status will be removed if u create guild or kill somebody
but i dunno :)
I think what you were trying to do was this:

Code: Select all

	// NEW
	if((strcmp(m_cPlayerName, "GM1") == 0)  || 
    (strcmp(m_cPlayerName, "GM2") == 0) || 
    (strcmp(m_cPlayerName, "GM3") == 0) ) 
  strcpy(cTxt, "Admin");
	else if( bCitizen == FALSE ) strcpy(cTxt, DRAW_OBJECT_NAME60);
	else
	{
  if( bAresden )
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ARECIVIL);
  	else strcpy(cTxt, DEF_MSG_ARESOLDIER);
  }
  else
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ELVCIVIL);
  	else strcpy(cTxt, DEF_MSG_ELVSOLDIER);
  }
	}
But I wouldnt do it there if i was you.. And it would be a little different lol..
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

yes like that ...
i made that code there by remembering but i remembered false :)

thank you :)
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Treax2 wrote: yes like that ...
i made that code there by remembering but i remembered false :)

thank you :)
No problem.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Couldn't this part be a switch :rolleyes:
if((strcmp(m_cPlayerName, "GM1") == 0)  ||
  (strcmp(m_cPlayerName, "GM2") == 0) ||
  (strcmp(m_cPlayerName, "GM3") == 0) )
Just asking ^_^
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

locobans wrote: Couldn't this part be a switch :rolleyes:
if((strcmp(m_cPlayerName, "GM1") == 0)  ||
   (strcmp(m_cPlayerName, "GM2") == 0) ||
   (strcmp(m_cPlayerName, "GM3") == 0) )
Just asking ^_^
Short answer, no.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Post Reply