The Daily Click ::. Forums ::. Klik Coding Help ::. Moo2
 

Post Reply  Post Oekaki 
 

Posted By Message

En



Registered
  16/07/2003
Points
  10
19th July, 2003 at 17:44:00 -

How do you make a buddy list with moo 2?

 
eat food

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
19th July, 2003 at 18:42:08 -

I dunno about moo2, but in mooclick/game there is a condition if someone leaves or enters, so:

If player joins: Add a line (if you are using a list) - PCU_GetuserID("Mooclick")

O, wait sorry, that's a who's online list. For a buddy list just use an ini and whenever a new player joins run a loop to see if any of the people that joined are buddies from your ini. But of course that would only work if the people used the same username everytime.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

En



Registered
  16/07/2003
Points
  10
19th July, 2003 at 19:34:08 -

thats, i'll try it, so basicly I make an Add Friend button and when I click it I type in their name and then save it to an ini? is there anyway to make it so when a friend comes online then it will play a sound or anything?

 
eat food

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
20th July, 2003 at 04:16:11 -

Yeah, that's easy. One way you can do it at the start of the frame, run a loop that adds all the people from the ini to a list (invisible) then you can use this code:

oPlayer joined
+Searchlist$("Buddies", PCU_Getname$(Mooclick)) = PCU_Getname$(mooclick) -

Play join sound.

Those expressions are real, but don't copy and paste them because i don't know if that is how you write them.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

En



Registered
  16/07/2003
Points
  10
20th July, 2003 at 14:20:40 -

k well, I got the list to save and stuff, but sadly, I dont have moo click so is there a way to do it in moo 2 or do I need to go buy moo click/game?

 
eat food

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
21st July, 2003 at 04:25:46 -

Just find the event that has joining/leaving. I am pretty sure Moo2 will have that.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click