![]() |
alllplayers
After talking to someone about one of my scripts, it got me to thinking about allplayers.
Why does it return the NPC server, why does it return IRC bots, why does it return players from other servers if they are on your buddylist? From a scripting perspective, I don't think we really need all that information, who uses allplayers for IRC bots and players from other servers? I think allplayers should be reserved strictly for players on the server, and maybe another variable to get all the other info. |
Atrius uses allplayers.
|
Ya, but do you use it to get info on IRC bots?
Anytime I use it, I had to add more just to filter out the NPC server, IRC bots and players from other servers. What's the point when you can't even have scripts interact with them? |
-Playerlist does.
|
Quote:
Make a function like getRealPlayers() that filters it for you. |
Ya, but I think that's the only script that'd ever have to use it, don't you think? Maybe there should be a variable getplayerlist or something that returns all players shown in the playerlist(as it seems that's exactly what allplayers does), and just leave allplayers reserved for actual players on the server.
|
PHP Code:
|
why dont you just do
realplayer= find(allplayers); i am on my psp so i couldnt put the script in php |
allplayers[] always included all players: normal clients and RCs etc. I am not sure where the problem is.
|
Quote:
|
I wouldn't consider it being lazy, I just don't see the point. The only thing that really has a use for it is the -playerlist, which we can't really do anything with, so why should we have to filter out all the other stuff? You'd think allplayers would be for just actual players, and there'd be another variable for all clients.
|
Quote:
|
Quote:
#2. I believe using that triggers a separate function for the information you're receiving, which is not ideal. #3. I thought requesttext() and sendtext() were disabled for all but the login server. |
Quote:
#2. Yes. #3. You forgot IRC bots. Only the client-rc stuff was made exclusive. |
Quote:
#2. Not everything have to be ideal as long as it works the way its supposed too. #3. Like Zero said, only the client rc related stuff. Next time you try smartmouthing me, get your facts straight. |
Quote:
Quote:
Stop being a jackass. You were asking for a response to your statement so I decided to point out why I wouldn't do it that way. Negative Reputation for that one. Anyhow, if Stefan wants to add another variable (allrealplayers?) then that would be nice, but I don't think its necessary as I don't really mind adding a line for filtering it. The only difference it would make is that the new variable would filter allplayers on each player login/logout rather than each time you execute the script, and save you a line of typing :rolleyes: |
PHP Code:
|
Quote:
|
Quote:
I don't mind using allplayers. |
| All times are GMT +2. The time now is 06:32 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.