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 08-03-2011, 10:09 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Custom Chat System

Come on guys, you know the good old online rpg games!
anyway basically iv got a script where when the player chats it shows all players chat in a window. the only problem is it only will show one players chat then when another player chats it disappears.
how would i make this so when you chat it shows it and when someone else chats your chat gets pushed up and theirs goes where yours was?

PHP Code:
//#CLIENTSIDE
function onPlayerChats(){
server.chat player.chat;
}
function 
onCreated() {
ChatBar.width 600;
ChatBar.alpha 0.6;
ChatBar.useownprofile true;
ChatBar.profile.bitmap "Test_textedit.png";
ChatBar.height 25;
ChatBar.783;
ChatBar.0;
 new 
GuiWindowCtrl("MyGUI_Window1") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "588,100";

    
canclose false;
    
canmaximize false;
    
canminimize false;
    
canmove false;
    
canresize false;
    
closequery false;
    
destroyonhide false;
    
alpha 0.6;
    
0;
    
653;
  }
    
setTimer(0.05);
}
function 
onTimeout() {
  for (
temp.pplayers) {
    
temp.player_chat temp.p.chat.trim();
    if (
temp.p.chat != "") {
      new 
GuiTextCtrl("PlayersChat") {
      
profile GuiBlueTextProfile;
      
height 20;
      
width 600;
      
text temp.p.nick@": "@server.chat;
      
width 200;
      
7;
      
757;
    }
    }
  }
  
setTimer(0.05);

Just wondering if its even possible?
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
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 03:13 PM.


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