[Src]->Friends List.

Codes submitted by developers and people of outpost. Come here to get codes for your client sources.
Post Reply
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

Why you ruined it? :blink:
Drajwer
<3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

i dont work on it cuz havent time and server goes down and now its playing 5-6 ppl.
<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)
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Drajwer wrote:
€M4NU€L wrote: I think why it doesn't work cuz Drajwer didn't post the Server Side codes...
cuz u stupid faggot didnt read all code.

its saved in contents/friendlist.txt.

I dont put all codes correctly, but make it work its just add/move one line and its working. Copy&Paste sux.
LOL ... lets prefer to say that your a fucking idiot that doesn't shared nothing
<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.
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

hahahha

lets see ur sharings.
<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)
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

void LoadFriendList();//drajwer -friendlist
void SaveFriendList();//drajewr -friendlist
void DrawDialogBox_FriendList(short msX, short msY);//43
void DlgBoxClick_FriendList(short msX, short msY); // 43 - drajwer


char m_cFriends[13][10];
int m_iTotalFriends;
int m_iFriendIndex;
int m_iFriendIndex2; //dunno about that but its work :)

I THINK THIS IS THE PROBLEM! drawjer can u plz explain me whats the problem whit thAT? :huh:

PD: i am ur FAN NUNBER ONEEEEEEEE


DRAWJER RULZZZZZZZZZZZZZZZZZZZZZ
"Prefiero morir de pie que vivir arrodillado"
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

put codes exacly and add loading on the updatescreen_loading... and there is no problem.
<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)
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

:( :confused:+15
"Prefiero morir de pie que vivir arrodillado"
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

€M4NU€L wrote:
Drajwer wrote:
€M4NU€L wrote: I think why it doesn't work cuz Drajwer didn't post the Server Side codes...
cuz u stupid faggot didnt read all code.

its saved in contents/friendlist.txt.

I dont put all codes correctly, but make it work its just add/move one line and its working. Copy&Paste sux.
LOL ... lets prefer to say that your a fucking idiot that doesn't shared nothing
you all need to lay the fuck off him
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

€M4NU€L wrote:
Drajwer wrote:
€M4NU€L wrote: I think why it doesn't work cuz Drajwer didn't post the Server Side codes...
cuz u stupid faggot didnt read all code.

its saved in contents/friendlist.txt.

I dont put all codes correctly, but make it work its just add/move one line and its working. Copy&Paste sux.
LOL ... lets prefer to say that your a fucking idiot that doesn't shared nothing
you're really much more an idiot... there is not any server-side code... everything is handled cliend-side damn noob !


The only server-side friendslist is mine, but it's not finished yet cuz i'm also working on new NPCs, Items and spells. I still have a huge amount of work before openning a server :(
<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 just worked a little bit more on the friends list, and the first features works :

- add a friend
- remove a friend
- Show friends list + status
- Show friend's infos when click on name
- Update friends list + status everytime a player logs in / out

I still have to add a new dialogbox to ask other peoples to become a friend and some GM stuff + buttons to add / remove / whisp / mail friends

Image
Image
<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 !
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

beautifull !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :blink:


i love this forum!
"Prefiero morir de pie que vivir arrodillado"
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

diuuude wrote: I just worked a little bit more on the friends list, and the first features works :

- add a friend
- remove a friend
- Show friends list + status
- Show friend's infos when click on name
- Update friends list + status everytime a player logs in / out

I still have to add a new dialogbox to ask other peoples to become a friend and some GM stuff + buttons to add / remove / whisp / mail friends

Image
Image
you work too hard diuuude
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

The list is a bit ugly but as i see its working as it should :P
<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)
Warlord
Regular
Posts: 34
Joined: Sun Dec 05, 2004 11:08 am

Post by Warlord »

Btw maybe someone could help me. I have studied only C programming language, but c++ is much different than c.

mkay - lets go to the point.

Can anyone help me a little bit..
I think that this code is just fucked up, and my brain doesn't take it anymore..So I ask help...

Code: Select all

void CGame::LoadFriendList() //some polish friends helped me.
{
  char buf[1024];
  int konieclinii;
  unsigned long linie=0;
  FILE* f=fopen("contents\\FriendList.txt","rt");
  m_iTotalFriends=0;
  while(fgets(buf,1024,f)){
    konieclinii=0;
    int i=strlen(buf);
    if(i>0 && buf[--i]=='\n'){
      buf[i]=0; // kasujemy znak konca linii
      konieclinii=1;
      linie++;
    }
   if (linie-1<13) {
   strcpy(m_cFriends[linie-1],buf);
   m_iTotalFriends++;
   }
  }
if (m_iTotalFriends>12) m_iTotalFriends=12;
  fclose(f);
I already solved my problem
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

darjwer HELP US! PLZ!
"Prefiero morir de pie que vivir arrodillado"
Post Reply