Author Topic: New player list  (Read 3762 times)

that not full code, just simple code.
Code: [Select]
package Fancy_Badges
{
function NPL_List::addRow(%this, %row, %text, %index)
{
if(%row == 0)
if(%text $= "A")
%text = "<bitmap:....>";
else if(%text $= "S")
%text = "<bitmap:....>";

return parent::addRow(%this, %row, %text, %index);
     NPL_Scroll.add(bitmap);

}
};
activatePackage(Fancy_Badges);
%bitmap = new GuiBitmapCtrl()
{
    position = "";
    extent = "16 16";
    bitmap = %text;
};
NPL_Scroll.add(%b);

Position will have to be calculated, based on its position in the list.

%bitmap = new GuiBitmapCtrl()
{
    position = "";
    extent = "16 16";
    bitmap = %text;
};
NPL_Scroll.add(%b);

Position will have to be calculated, based on its position in the list.

Code: [Select]
package Shield_PlayerList
{
function NPL_List::addRow(%this, %row, %text, %index)
{
if(%row == 0)
if(%text $= "H")
%text = "<bitmap:add-ons/script_InformationPlayer/icon_hostshield.png>";
else if(%text $= "SA")
%text = "<bitmap:add-ons/script_InformationPlayer/icon_superadminshield.png>";
else if(%text $= "S")
%text = "<bitmap:bitmap:add-ons/script_InformationPlayer/icon_adminshield.png>";
                        else if(%text $= "-")
%text = "<bitmap:bitmap:add-ons/script_InformationPlayer/icon_playershield.png>";

return parent::addRow(%this, %row, %text, %index);
     %bitmap = new GuiBitmapCtrl()
{
    position = "";
    extent = "16 16";
    bitmap = %text;
};
NPL_Scroll.add(%b);


}
};
activatePackage(Shield_PlayerList);



Correct? and create folder client_name? and client notepad too, I want make sure it will work. aslo what about  icon name? Not forget I will give you a credit for this. I am part of it too.

You just have to figure out the position, and check %text, what if it's not H, S, or A?

You just have to figure out the position, and check %text, what if it's not H, S, or A?

gui name is NPL_List and Position is 0 0, that all I got this.

But Ephialtes wrote this script:
Code: [Select]
function RTBSI_onServerInfo(%tcp,%line,%type,%data)
{
   if(%type $= "PLIST")
   {
      %players = strReplace(%data,"~","\t");
      for(%i=0;%i<getFieldCount(%players);%i++)
      {
         %player = strReplace(getField(%players,%i),";","\t");

         %status = getField(%player,2);
         if(%status $= 3)
            %status = "H";
         else if(%status $= 2)
            %status = "S";
         else if(%status $= 1)
            %status = "A";
         else
            %status = "-";
         
         RTBSI_PlayerList.addRow(getField(%player,2),getField(%player,2) TAB %status TAB getField(%player,0) TAB getField(%player,3) TAB getField(%player,1),0);
      }
   }


Oh right, Furling requested I make this for him a while ago.
I guess I could go ahead and make it tomorrow, along with a few extra features.

Oh right, Furling requested I make this for him a while ago.
I guess I could go ahead and make it tomorrow, along with a few extra features.
wait ! Why add with your mod features?  I has my own plan ideas features for player list.

wait ! Why add with your mod features?  I has my own plan ideas features for player list.

Why would I add extra features?
Because quite frankly you seem to be incapable of creating a functioning script.
Don't get too offended, it's just the truth, and as such, I will create your add-on for you because you requested it, but I might just add in some other features. Like the possibility of the server to display other variables alongside the "score" variable on the player's list, for example.

Why would I add extra features?
Because quite frankly you seem to be incapable of creating a functioning script.
Don't get too offended, it's just the truth, and as such, I will create your add-on for you because you requested it, but I might just add in some other features. Like the possibility of the server to display other variables alongside the "score" variable on the player's list, for example.
allright...


Host
SuperAdmin
Admin
Player

Who doing active as busy or play whatever.../ not active as blank
Selection Brick
IRC
Wrench/Events
Minigame
Ctrl and K/ killed in mingame.
save image icons
Not forget, I made these icons and my idea. you make script I get that credit and DrenDran  too.

when finish mod, Do not release in public. only post RTB add-ons. Thanks.

EDIT: Add AFK and type icon later.
« Last Edit: March 02, 2011, 11:55:53 PM by Furling »

Code: [Select]
function clientCmdInfoListProfile(%status, %name, %BL_ID)
{
        $status = %status;
$name = %name;
$BL_ID = %BL_ID;


InfoList.addRow(InfoList.rowCount(), $status TAB $name TAB $BL_ID);
}

         %status = getField(%player,2);
         if(%status $= 3)
            %status = "<bitmap:add-ons/script_InformationPlayer/icon_hostshield.png>";
         else if(%status $= 2)
            %status = "<bitmap:add-ons/script_InformationPlayer/icon_superadminshield.png>";
         else if(%status $= 1)
            %status = "<bitmap:add-ons/script_InformationPlayer/icon_adminshield.png>";
         else
            %status = "<bitmap:add-ons/script_InformationPlayer/icon_playershield.png>";
      }
   }
function clientCmdInfoListProfile

This wouldn't work in the first place, guiTextListCtrl doesn't support Torque Markup Language.

This wouldn't work in the first place, guiTextListCtrl doesn't support Torque Markup Language.
excuse me, sir

what the hell are you talking about

Tom

excuse me, sir

what the hell are you talking about
Look who's wrong now.

Oh, that's what he meant by "Torque Markup Language."

My bad, lol.

But this is still doable, you just have to be clever.

I love how furling belives he should get credit for an addon just because he thought of it.

Oh, that's what he meant by "Torque Markup Language."

My bad, lol.

But this is still doable, you just have to be clever.
"durr you made mistake"
You see how I'm playing your game, Iban?

This wouldn't work in the first place, guiTextListCtrl doesn't support Torque Markup Language.
He's doing it quite wrong, this is how it's supposed to be:
    bitmap = %text;
%text is the direct path to an image, it's not markup.