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 06-10-2011, 01:59 AM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
Gui Help

I've been looking up on Google, the forum, wiki, and everything else that has to do with Graal for a solid Gui tutorial! I can not find any site AT ALL that even remotely has a solid tutorial.. Can someone please give me a solid template or something? I need a new one please or a link to a solid tutorial.
Thanks,
P@TR!CK
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
Reply With Quote
  #2  
Old 06-10-2011, 03:26 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Not a tutorial, just kind of help
http://www.graal.net/index.php/Creat...iControls_List
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #3  
Old 06-10-2011, 03:48 AM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
Thanks but as I mentioned I have looked at it... D: It tells you what to put, but what does it mean, where do I put the things? You know? It's as if you need a teacher, which I'm sure alot of scripters had.
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
Reply With Quote
  #4  
Old 06-10-2011, 04:06 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Most scripters learned from trial and error, the wiki, the forums, irc and asking other scripters advice.
Reply With Quote
  #5  
Old 06-10-2011, 08:20 AM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
I know D:
Care to help? (:
All I really need is a template.
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
Reply With Quote
  #6  
Old 06-10-2011, 09:14 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is just really niceTricxta is just really nice
Just use the in-game gui builder, F6 all the way lol. It gives you the source so you can see what it does then you just go from there. I used this along with a bit of help from the wiki and got guis under control in 1 and a bit hours lol =P gl dude
__________________
Quote:
Originally Posted by Crono View Post
No look at it, Stefan is totally trolling Thor. Calling Classic a "playerworld" (something it's not supposed to be) is the ultimate subtle insult to a true fan.

It's genius.
Reply With Quote
  #7  
Old 06-11-2011, 12:48 AM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
Thanks! That helped me a bunch XP. What do I put so it will show up to all players when they log on (It's basically a gui telling players about hirings and how to contact me).
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
Reply With Quote
  #8  
Old 06-11-2011, 03:57 AM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by patrickp2p View Post
Thanks! That helped me a bunch XP. What do I put so it will show up to all players when they log on (It's basically a gui telling players about hirings and how to contact me).
I suppose you could call a function inside the GUI script from the NPC-Control when the player logs in ie. this goes in the NPC-Control:

PHP Code:
function onActionPlayerOnline(){
 
findWeapon("your weapon name").Test();

Replace the function Test() with the function that shows/activates the GUI in the script, and make sure that the function in the GUI script is a public function so that other NPCs can access it.
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
  #9  
Old 06-11-2011, 04:12 AM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
*Gets confused* D:
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
Reply With Quote
  #10  
Old 06-11-2011, 04:20 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
Quote:
Originally Posted by patrickp2p View Post
Thanks! That helped me a bunch XP. What do I put so it will show up to all players when they log on (It's basically a gui telling players about hirings and how to contact me).
Add the weapon to players when they log on, and show the window in the onCreated event of the weapon on clientside.
__________________
Reply With Quote
  #11  
Old 06-11-2011, 05:01 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by iBeatz View Post
I suppose you could call a function inside the GUI script from the NPC-Control when the player logs in ie. this goes in the NPC-Control:

PHP Code:
function onActionPlayerOnline(){
 
findWeapon("your weapon name").Test();

Replace the function Test() with the function that shows/activates the GUI in the script, and make sure that the function in the GUI script is a public function so that other NPCs can access it.
excessively wasteful, should just be in a weapon players have upon login, and the showing of the GUI should be done in onCreated event clientside
Reply With Quote
  #12  
Old 06-11-2011, 01:19 PM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiWindowCtrl("MyGUI_Window4") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "320,240";

    
canmove false;
    
canresize false;
    
closequery false;
    
destroyonhide false;
    
text "UPDATE";
    
509;
    
203;

    new 
GuiTextCtrl("MyGUI_Text2") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "HIRINGS";
      
width 70;
      
7;
      
4;
    }
    new 
GuiTextCtrl("MyGUI_Text3") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "--------------------------------------";
      
width 380;
      
18;
    }
    new 
GuiTextCtrl("MyGUI_Text4") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "|";
      
width 10;
      
79;
    }
    new 
GuiTextCtrl("MyGUI_Text5") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "|";
      
width 10;
      
79;
      
11;
    }
    new 
GuiTextCtrl("MyGUI_Text6") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "BY: P@TR!CK (Owner)";
      
width 190;
      
105;
      
2;
    }
    new 
GuiTextCtrl("MyGUI_Text7") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "DATE:";
      
width 50;
      
12;
      
31;
    }
    new 
GuiTextCtrl("MyGUI_Text8") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "------------------------------------";
      
width 360;
      
45;
    }
    new 
GuiTextCtrl("MyGUI_Text9") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "|";
      
width 10;
      
79;
      
23;
    }
    new 
GuiTextCtrl("MyGUI_Text10") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "|";
      
width 10;
      
79;
      
36;
    }
    new 
GuiTextCtrl("MyGUI_Text11") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "June 10th 2011";
      
width 140;
      
110;
      
30;
    }
    new 
GuiScrollCtrl("MyGUI_MultiLine1_Scroll") {
      
profile GuiBlueScrollProfile;
      
height 171;
      
hscrollbar "dynamic";
      
vscrollbar "dynamic";
      
width 320;
      
67;

      new 
GuiMLTextCtrl("MyGUI_MultiLine1") {
        
profile GuiBlueMLTextProfile;
        
horizsizing "width";
        
text "Hello and welcome to Bellview! We are currently undergoing HEAVY cunstruction and we need a strong staff team. We are currently hiring all Development positions. Please contact P@TR!CK at [email][email protected][/email]. Thanks.";
        
width 295;
      }
    }
  }

__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:

Last edited by Tigairius; 06-11-2011 at 06:23 PM.. Reason: [php]text[/php]
Reply With Quote
  #13  
Old 06-11-2011, 01:19 PM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
Idk howto do the php tag thing so there it is, can someone please format it?
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
Reply With Quote
  #14  
Old 06-11-2011, 04:09 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
do [.PHP] [./PHP] without the dots.
Reply With Quote
  #15  
Old 06-11-2011, 07:52 PM
patrickp2p patrickp2p is offline
Registered User
patrickp2p's Avatar
Join Date: May 2011
Location: Maryland
Posts: 159
patrickp2p is an unknown quantity at this point
Oh thank you! (:
__________________
"If your bible got caught in a rain and thunderstorm, would it rip? My bible is the rain and the thunder."

Love me or hate me? O:

<--Are Questions Accepted Here? (:
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 01:05 AM.


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