Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-30-2012, 09:58 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Playerlist Changes

As most of you would of noticed (probably) the playerlist subheadings have changed from eg "Admins" to "--- Staff ---".
Now if you are like me and don't like the change you may use this script on your server.
PHP Code:
//#CLIENTSIDE
function onCreated(){
  
//Defines the names to replace.
  //If you are going to change it it works like this:
  // "before name", "after name".
  
temp.replace = {
    {
"--- Staff ---",    "Staff"},
    {
"--- Buddies ---""Buddies"},
    {
"--- Guild ---",   "Guild"},
    {
"--- Players ---""Players"},
    {
"--- Ignore ---",  "Ignore"},
    {
"--- Offline ---""Offline"},
  };
  
//Sleeps for two seconds so when the actual
  //player list script is initialized it doesn't replace
  //what we are going to change; with what it wants.
  
sleep(2);
  
//Loops through all the names to replace and replaces them.
  
for(temp.0temp.replace.size(); temp.++){
    
temp.PlayerList_List.findtext(replace[i][0]);
    
PlayerList_List.rows[temp.r].text replace[i][1];
  }
  
//Focuses on the playerlist then graal to make the changes
  //come into effect.
  
PlayerList_List.MakeFirstResponder(true);
  
GraalControl.MakeFirstResponder(true);

__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 04-30-2012 at 10:09 AM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:19 PM.


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