Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-25-2006, 08:35 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
gatherBuddylist

Could you make a function to gather all of the people's accounts in your buddy list? That'd be cool
__________________
Reply With Quote
  #2  
Old 11-25-2006, 09:39 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Yeah, it'd be cool.
You can currently find any buddies that are online, but that's the extent of it.

PHP Code:
for (pallplayers) {
  if (
p.isbuddythis.buddies.add(p.account);

Reply With Quote
  #3  
Old 11-25-2006, 09:47 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Yen View Post
Yeah, it'd be cool.
You can currently find any buddies that are online, but that's the extent of it.

PHP Code:
for (pallplayers) {
  if (
p.isbuddythis.buddies.add(p.account);

Oh woah, I could use this though =]
thanks yenni
__________________
Reply With Quote
  #4  
Old 11-25-2006, 11:59 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
PHP Code:
temp.buddies.loadlines("scriptfiles/groupBuddy.txt"); 
... clientside, should make temp.buddies an array of accounts in your buddy list. I am not sure if editing it will cause trouble, whether it will synchronise properly with the serverside buddylist or just be overwritten, but you will be able to read it without problem.
__________________
Skyld
Reply With Quote
  #5  
Old 11-26-2006, 12:01 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
O_o That file only has one person, but I have ~12 people on my buddy list.
Reply With Quote
  #6  
Old 11-26-2006, 12:04 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Yen View Post
O_o That file only has one person, but I have ~12 people on my buddy list.
Hm, maybe this is something only used by the scripted playerlist on Mac/Linux then.
__________________
Skyld
Reply With Quote
  #7  
Old 11-26-2006, 08:01 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by Skyld View Post
Hm, maybe this is something only used by the scripted playerlist on Mac/Linux then.
So we have an advantage on Graal?!
EAT IT!
Reply With Quote
  #8  
Old 11-26-2006, 08:15 AM
ryu_no_bishie ryu_no_bishie is offline
I know japanese l33t
ryu_no_bishie's Avatar
Join Date: Aug 2006
Posts: 256
ryu_no_bishie is an unknown quantity at this point
Quote:
Originally Posted by excaliber7388 View Post
So we have an advantage on Graal?!
EAT IT!

not that it matters to me. im going to try to eliminate the player list on my server,
__________________
Rockman Akane FTW
Reply With Quote
  #9  
Old 11-27-2006, 10:42 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
You can always manipulate this, though. As programmers, you must work with the flexibility of the language.


Run a check for a players buddies, and have it save in a DB or a txt file or however you want to set it up. Since isbuddy only reads online buddies, you can have the place that you're storing a certain players buddies change when a buddy that is not already on the list triggers whatever it is that you're using to check for buddies. Eventually, a persons buddy list would have been saved anew wherever you wanted it stored, unless of course they never logged on the server at the same time as the person, in which case it shouldn't really matter since they're not active around the same time, so they shouldn't be counted in the data anyways.

It really depends on what you would want it for.
Reply With Quote
  #10  
Old 11-27-2006, 11:50 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
rawr, would be more easy if we could load:

graal/buddyaccounts.txt
__________________
Reply With Quote
  #11  
Old 11-28-2006, 08:59 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Chompy View Post
rawr, would be more easy if we could load:

graal/buddyaccounts.txt
Yeah, or get a global link to the document that stores the ones online
__________________
Reply With Quote
  #12  
Old 11-28-2006, 10:44 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by Chompy View Post
rawr, would be more easy if we could load:

graal/buddyaccounts.txt
Its a little crude, but whats stopping you from copying the file into the scriptfiles directory of the server you wish to access it on?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.