[Src]->Friends List.

Codes submitted by developers and people of outpost. Come here to get codes for your client sources.
Post Reply
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Nice code Drajwer :P

Just 1 question...the PointCommandHandler addon will be ok to add right just b4 the last } of the function...right b4 it ends right?
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>
tester
Outpost bitch
Posts: 544
Joined: Wed Jan 07, 2004 8:58 pm

Post by tester »

SlammeR wrote: <3 Drajwer

Awesome! great job ^^
You just made my day when I saw your signature.
And thx for contributing Drajwer

Thanx alot


Cheers Tester
I support a woman's right to choose<br><br>- In the Mouth?<br>- In the Ass ?<br>- In the Vagina?<br>- Between the Tits?
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

yep, loco, b4 end.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

Drajwer wrote: guild member list is cool but simple imposible without main login src(possible if you host logins and all hgs).
do we even have main/world log src? and if so can i be pointed towards it?
-><-
maku
Regular
Posts: 42
Joined: Sat Dec 11, 2004 5:10 am

Post by maku »

how add friends??? :unsure: :unsure:
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

€M4NU€L wrote: I don't understand a shit about where to add the codes :lol:
you're a noob...

you wouldn't try to code. Noobs like you must leave hb!
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

i think it would be far better is the list is stored server side. Why don't add a struct in the CClient class to store all the friends ? Then add some netmessages like "DEF_REQUEST_FRIENDLIST" and "DEF_REPLY_FRIENDLIST", and send status of your friends (online / offline) ;).

I'll work on it this weekend !

Anyways Nice job Drajwer !!!
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
romax
Member
Posts: 149
Joined: Sat Nov 01, 2003 10:42 am

Post by romax »

diuuude wrote:
€M4NU€L wrote: I don't understand a shit about where to add the codes  :lol:
you're a noob...

you wouldn't try to code. Noobs like you must leave hb!
lol.... than you so bad to ppl some times hehehe .."Noobs like you must leave hb!" thets why i leaved HB for atm :unsure: :rolleyes: :P
<img src='http://img357.imageshack.us/img357/505/eyecopy7ng.gif' border='0' alt='user posted image' />
maku
Regular
Posts: 42
Joined: Sat Dec 11, 2004 5:10 am

Post by maku »

Image


:blink: :unsure: How add friends???
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

"Click the character which you want to add.",10); //pointing mode


Nice drajwer.
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

diuuude wrote:
€M4NU€L wrote: I don't understand a shit about where to add the codes  :lol:
you're a noob...

you wouldn't try to code. Noobs like you must leave hb!
Why you insult me ? No reason to ... i just don't know where to add codes :angry:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

How u dont know :D? -.- that that game.h thing put in GAME.h there where u want to ...
in game.cpp thing is the same ... out it there where u want ... then the cas things ... there are the things what u need named (these are in game.cpp) and add them after the last case ... ...
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Finally could put codes :D but now i dunno where to put this code:

Where do i put that ?

Pointing Command Handler:

Code: Select all

else if (m_iPointCommandType == 250) 
{ if ((strlen(m_cMCName) == 0) || (strcmp(m_cMCName, m_cPlayerName) == 0) || (m_cMCName[0] == '_')) {
  PlaySound('E', 14, 5);
 }else 
 {
  PlaySound('E', 14, 5);
  memcpy(m_cFriends[m_iTotalFriends],m_cMCName,10);
  m_iTotalFriends++;
  m_stDialogBoxInfo[43].sV1=0;
  SaveFriendList();
  return;
} }
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

when i added that i got error i would of helped u but i donno where to put it i was about to ask the same question :P
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

search ::PointCommandHandler then there is

Code: Select all

	}else if (m_iPointCommandType == 200)
	{	if ((strlen(m_cMCName) == 0) || (strcmp(m_cMCName, m_cPlayerName) == 0) || (m_cMCName[0] == '_')) {
  	m_stDialogBoxInfo[32].cMode = 0;
  	PlaySound('E', 14, 5);
  	AddEventList(POINT_COMMAND_HANDLER1, 10);
  }else
  {	m_stDialogBoxInfo[32].cMode = 3;
  	PlaySound('E', 14, 5);
  	ZeroMemory(m_stDialogBoxInfo[32].cStr, sizeof(m_stDialogBoxInfo[32].cStr));
  	strcpy(m_stDialogBoxInfo[32].cStr, m_cMCName);
  	bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQUEST_JOINPARTY, NULL, 1, NULL, NULL, m_cMCName);
  	return;
  }	

	}
}
change it to

Code: Select all

}else if (m_iPointCommandType == 250)
{ if ((strlen(m_cMCName) == 0) || (strcmp(m_cMCName, m_cPlayerName) == 0) || (m_cMCName[0] == '_')) {
 PlaySound('E', 14, 5);
}else
{
 PlaySound('E', 14, 5);
 memcpy(m_cFriends[m_iTotalFriends],m_cMCName,10);
 m_iTotalFriends++;
 m_stDialogBoxInfo[43].sV1=0;
 SaveFriendList();
 return;
} }
Post Reply