Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   gatherBuddylist (https://forums.graalonline.com/forums/showthread.php?t=70381)

xAndrewx 11-25-2006 08:35 PM

gatherBuddylist
 
Could you make a function to gather all of the people's accounts in your buddy list? That'd be cool ^^

Yen 11-25-2006 09:39 PM

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);



xAndrewx 11-25-2006 09:47 PM

Quote:

Originally Posted by Yen (Post 1247132)
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

Skyld 11-25-2006 11:59 PM

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.

Yen 11-26-2006 12:01 AM

O_o That file only has one person, but I have ~12 people on my buddy list.

Skyld 11-26-2006 12:04 AM

Quote:

Originally Posted by Yen (Post 1247170)
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.

excaliber7388 11-26-2006 08:01 AM

Quote:

Originally Posted by Skyld (Post 1247172)
Hm, maybe this is something only used by the scripted playerlist on Mac/Linux then.

So we have an advantage on Graal?!
EAT IT! :p

ryu_no_bishie 11-26-2006 08:15 AM

Quote:

Originally Posted by excaliber7388 (Post 1247312)
So we have an advantage on Graal?!
EAT IT! :p


not that it matters to me. im going to try to eliminate the player list on my server,

Gambet 11-27-2006 10:42 PM

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.

Chompy 11-27-2006 11:50 PM

rawr, would be more easy if we could load:

graal/buddyaccounts.txt

xAndrewx 11-28-2006 08:59 AM

Quote:

Originally Posted by Chompy (Post 1247838)
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

Andy0687 11-28-2006 10:44 AM

Quote:

Originally Posted by Chompy (Post 1247838)
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?


All times are GMT +2. The time now is 03:44 PM.

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