Author Topic: ID Lookup  (Read 8454 times)

How do you do this?

You weren't using TCPObjects before..?

You weren't using TCPObjects before..?
Of course it uses TCPObjects. But the form is actually an HTML <form>, not "index.php?search=Badspot"

Of course it uses TCPObjects. But the form is actually an HTML <form>, not "index.php?search=Badspot"

Then POST the form data?




i want a username to blid

i want a username to blid
it's coming once somebody answers my question

You're so dumb


function lookUpBL_ID(%b)
{
   if(!isInt(%b))
      return;
   if(!isObject(RTBCC_Socket))
      return;
   $RTBWhois::ID[%b]=1;
   RTBCC_Socket.getUserInfo(%b);
}
function onRTBWhois(%bl_id,%name,%status,%online)
{
   $RTBWhois::ID[%bl_id]=0;
   echo(%name@" | "@%bl_id@" | "@%status@" | "@%online);
}
package RTBWhois
{
   function RTBCC_Socket::onPlayerInfoResponse(%this,%parser,%packet)
   {
      
      %id = %packet.find("id").cData;
      %name = %packet.find("name").cData;
      %status = %packet.find("status").cData;
      %lastOnline = (%packet.find("last_online").cData $= "-1") ? "Unknown" : timeDiffString(%packet.find("last_online").cData,0) SPC "ago";
      if(!$RTBWhois::ID[%id])
      {
         parent::onPlayerInfoResponse(%this,%parser,%packet);
         return;
      }
      switch(%status)
      {
         case 0:
            %textStatus = "Online";
         case 1:
            %textStatus = "Singleplayer";
         case 2:
            %textStatus = "Hosting LAN";
         case 3:
            %textStatus = "Hosting";
         case 4:
            %textStatus = "Playing LAN";
         case 5:
            %textStatus = "Playing";
         default:
            %textStatus = "Offline";
      }
      onRTBWhois(%id,%name,%textStatus,%lastOnline);
   }
};
activatepackage(RTBwhois);

requires RTB, but so much less code ;-;

Also, if you make something like you did, include name history and name lookup
« Last Edit: August 29, 2013, 12:32:52 AM by MARBLE MAN »

You're so dumb
That's a little rude.
requires RTB, but so much less code ;-;
And? That's exactly why I used this method.
RTB hates add-ons that require it to work.

Also, that only looks up players who have had RTB installed at one point.

That's a little rude.
Not really...

And? That's exactly why I used this method.
RTB hates add-ons that require it to work.
Also, that only looks up players who have had RTB installed at one point.
No, it looks up anyone who has either been on an RTB enabled server, or who has connected to the RTB Connect client

Which is just as many as what you have :/
Mine also provides more information as to what the user is doing

Edit:
don't use a single image to make your table



The only reasons I can see someone being resistant to using RTB are:
-Wanting to be a hipster
-Banned from the service
-Some pointless grudge against Ephi or his admins.
« Last Edit: August 29, 2013, 12:51:01 AM by MARBLE MAN »

requires RTB, but so much less code ;-;
It's junk if it requires RTB. Not all of us have it.


It's junk if it requires RTB. Not all of us have it.
So, If I made a mod specifically for RTB, it's junk because you don't have it.

Might as well make an RTB ID Lookup mod

So, If I made a mod specifically for RTB, it's junk because you don't have it.

Might as well make an RTB ID Lookup mod

Not everyone has RTB because of the limitations that they are greeted with upon their OS. Jes only doesn't use RTB because of some limitation with Mac OSX, right?

This add-on should be independent within itself and shouldn't be grasped along side with RTB. Not everyone wants to use RTB.