Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Reading buddyaccounts.txt (https://forums.graalonline.com/forums/showthread.php?t=81397)

Crow 08-23-2008 08:13 PM

Reading buddyaccounts.txt
 
Well, I tried to read buddyaccounts.txt clientside, since I want to highlight your buddies in my new nickname system, and it doesn't work. Or at least a simple loadLines() won't do it. If it's possible, could somebody tell me how? If it's not, I think there should be a special function added to the shared function pack maybe :)

xXziroXx 08-23-2008 08:28 PM

PHP Code:

TServerPlayer.isbuddy boolean 

:confused:

LoneAngelIbesu 08-23-2008 08:31 PM

Why not do something like this?
PHP Code:

//#CLIENTSIDE
function onCreated() {
  for(
temp.iallplayers) {
    if(
temp.i.isbuddy) {
      
temp.out.add(temp.i);
    }
  }


>:[ Ziro beat me to it.

Crow 08-23-2008 08:50 PM

Ahh, I didn't know that one. Thanks to you two guys. Gotta wait a bit, I already repped somebody today :p

xXziroXx 08-23-2008 09:13 PM

Quote:

Originally Posted by Crow (Post 1416837)
Ahh, I didn't know that one. Thanks to you two guys. Gotta wait a bit, I already repped somebody today :p

There's also:

PHP Code:

TServerPlayer.isignored
TServerPlayer
.isadmin 

:)

Crow 08-23-2008 09:41 PM

Quote:

Originally Posted by xXziroXx (Post 1416841)
There's also:

PHP Code:

TServerPlayer.isignored
TServerPlayer
.isadmin 

:)

Yea, I know, I checked afterwards, hehe.

cbk1994 08-23-2008 11:50 PM

Please make a different system for it ... my Era "buddies" aren't necessarily on my buddies list, and I'd rather they not be.

Crow 08-23-2008 11:57 PM

Quote:

Originally Posted by cbk1994 (Post 1416877)
Please make a different system for it ... my Era "buddies" aren't necessarily on my buddies list, and I'd rather they not be.

Naw, just makes it complicated. I will add an option to disable the buddy highlight though.

cbk1994 08-24-2008 01:05 AM

Quote:

Originally Posted by Crow (Post 1416879)
Naw, just makes it complicated. I will add an option to disable the buddy highlight though.

There's a difference between extra work and complicated.

There used to be a system where you just double clicked a player and added them as a buddy, and you could see their name. I would like to see something like this, rather than going by playerlist buddies >_<

Rufus 08-24-2008 05:57 AM

Quote:

Originally Posted by cbk1994 (Post 1416889)
There used to be a system where you just double clicked a player and added them as a buddy, and you could see their name. I would like to see something like this, rather than going by playerlist buddies >_<

How would you remove them from your buddies?

LoneAngelIbesu 08-24-2008 06:19 AM

Quote:

Originally Posted by Rufus (Post 1416948)
How would you remove them from your buddies?

The account would probably be in some array. Perhaps double-clicking them again would remove them from the array?

cbk1994 08-24-2008 06:35 AM

Quote:

Originally Posted by Rufus (Post 1416948)
How would you remove them from your buddies?

I don't recall how it used to work, but I would assume a list in the options window which allows you to click & remove them.

Before, the buddy system was the only way for you to see someone's name (keep in mind, this system lasted about 4 days before it was removed). Both players had to agree to be buddies, but that isn't necessary for this.

Demisis_P2P 08-24-2008 07:04 AM

Quote:

Originally Posted by cbk1994 (Post 1416962)
I don't recall how it used to work, but I would assume a list in the options window which allows you to click & remove them.

Before, the buddy system was the only way for you to see someone's name (keep in mind, this system lasted about 4 days before it was removed). Both players had to agree to be buddies, but that isn't necessary for this.

It lasted 4 day because it was frigging annoying as hell.

Just add them to your normal buddy list and turn off 'Show buddies from other servers' if you don't want to see them when you're not playing Era.

cbk1994 08-24-2008 08:18 AM

Quote:

Originally Posted by Demisis_P2P (Post 1416971)
It lasted 4 day because it was frigging annoying as hell.

Just add them to your normal buddy list and turn off 'Show buddies from other servers' if you don't want to see them when you're not playing Era.

No, because I want to see when others are on.

There is no excuse for being lazy here. This isn't overly-complicated.

Crow 08-24-2008 12:46 PM

It is complicated, when being a player. Why have two buddy lists? That's not even necessary.


All times are GMT +2. The time now is 04:01 PM.

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