Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-12-2008, 02:07 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
[Help] Message to all players through GUI

What I'm trying to do here is make a chat system such as Maloria has. The box instead of the chat bar. I know I didn't disable the chat bar, there's a reason for that.

PHP Code:
//#CLIENTSIDE

function onCreated()
{
  new 
GuiWindowCtrl"Opening_Window1" )
  {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "909,145";
    
canmove false;
    
canresize false;
    
closequery false;
    
canclose false;
    
destroyonhide false;
    
canmaximize false;
    
canminimize false;
    
text "Chat Box";
    
535;
    
// Text Stuff
    
new GuiTextEditCtrl"Opening_TextEdit1" )
    {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 795;
      
125;
      
text "Enter your message here then press send";
    }
    
// Send Button
    
new GuiButtonCtrl"Opening_Button1" )
    {
      
profile GuiBlueButtonProfile;
      
text "Send";
      
width 54;
      
795;
      
115;
    }
    
// Clear Button
    
new GuiButtonCtrl"Opening_Button2" )
    {
      
profile GuiBlueButtonProfile;
      
text "Clear";
      
width 59;
      
849;
      
115;
    }
    
// Text Scroll
    
new GuiScrollCtrl"Opening_MultiLine1_Scroll" )
    {
      
profile GuiBlueScrollProfile;
      
height 113;
      
hscrollbar "dynamic";
      
vscrollbar "dynamic";
      
width 909;
      
// Text
      
new GuiMLTextCtrl"Opening_MultiLine1" )
      {
        
profile GuiBlueMLTextProfile;
        
height 16;
        
horizsizing "width";
        
text "";
        
width 884;
      }
    }
  }
}

// Send Button
function Opening_Button1.onAction()
{
  if ( 
Opening_MultiLine1.text == "" )
  {
    
Opening_MultiLine1.text player.account ":" SPC Opening_TextEdit1.text;
    
sleep0.05 );
    
Opening_TextEdit1.text "";
  }
    else
  {
    
Opening_MultiLine1.text Opening_MultiLine1.text NL player.account ":" SPC Opening_TextEdit1.text;
    
sleep0.05 );
    
Opening_TextEdit1.text "";
  }
}

// Clear Button
function Opening_Button2.onAction()
{
  
Opening_MultiLine1.text "";

If you can help out with this, thanks in advance.
Reply With Quote
  #2  
Old 10-12-2008, 02:47 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by devilsknite1 View Post
Great Wall of Text
uhm just wondering, i noticed that you won the VĂ*i, and in your signature u have "Nintendo Wii? Where? " so as we all thought, u dident get 1?
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #3  
Old 10-12-2008, 04:14 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
A bit off topic, but yes, I haven't received the Wii yet. I'm thinking about just trading it in for life time gold or something if I don't get it in another month z.z
Reply With Quote
  #4  
Old 10-12-2008, 04:24 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
What do you need help with?
__________________
Reply With Quote
  #5  
Old 10-12-2008, 04:44 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
I'm trying to change the player chat system into a GUI chat box system.
Reply With Quote
  #6  
Old 10-31-2008, 02:24 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Undeleted for reference.
Reply With Quote
Reply


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 11:13 AM.


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