Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2007, 04:18 AM
Dionysus Dionysus is offline
RTK| God of Wine
Dionysus's Avatar
Join Date: Apr 2007
Location: United States
Posts: 14
Dionysus is on a distinguished road
Send a message via AIM to Dionysus
GS2: Client-RC Questions (this time all Client-RC's Questions will be in here)

Ok so far i got three more questions about scripting an Client-RC (the main frame). First is the text bar where you type your messages. In normal rc you can use arrow keys to flip to old typed messages. What GS2 Gui for edit text gui's can i use to get that same effect?

Next when typed "/help" in normal RC it displays the commands and w\e command you use in that commands display help, it triggers the rc commands. How do i get Client-RC to trigger the /help and all the other commands RC gives without scripting one by one???

Also how do you use the GS2 Gui Tabs??? xD
__________________


Reply With Quote
  #2  
Old 04-21-2007, 04:21 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Use a GuiTextEditCtrl and then set historySize to 100, so you can view up to 100 old messages that you sent, and im not sure about this but I think typing /help will return the help message
Reply With Quote
  #3  
Old 04-21-2007, 04:24 AM
Dionysus Dionysus is offline
RTK| God of Wine
Dionysus's Avatar
Join Date: Apr 2007
Location: United States
Posts: 14
Dionysus is on a distinguished road
Send a message via AIM to Dionysus
Ok cool thanks for the "historySize" command i didnt even know that existed :P.

Now i need to figure out or get help on the other two questions.
__________________


Reply With Quote
  #4  
Old 04-21-2007, 04:30 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Dionysus View Post
Ok cool thanks for the "historySize" command i didnt even know that existed :P.

Now i need to figure out or get help on the other two questions.
Check the wiki for help. There are examples on how to use all GUI types.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 04-21-2007, 04:31 AM
Dionysus Dionysus is offline
RTK| God of Wine
Dionysus's Avatar
Join Date: Apr 2007
Location: United States
Posts: 14
Dionysus is on a distinguished road
Send a message via AIM to Dionysus
thats what i do when i need help with anything... i check graal's wiki. So if i dont get something i ask some one so thats not really an option to me, but thanks for trying to help
__________________


Reply With Quote
  #6  
Old 04-21-2007, 11:54 AM
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
Moving this thread to the GS2 forum. Please create future GS2 posts there.
__________________
Skyld
Reply With Quote
  #7  
Old 04-22-2007, 01:21 AM
Dionysus Dionysus is offline
RTK| God of Wine
Dionysus's Avatar
Join Date: Apr 2007
Location: United States
Posts: 14
Dionysus is on a distinguished road
Send a message via AIM to Dionysus
How do i make my chat bar for Client-RC when type "/help", it displays the commands like normal RC and w\e command you use in that commands display help, it triggers the rc commands. How do i get Client-RC to trigger the /help and all the other commands RC gives without scripting one by one???

Also how do you use the GS2 Gui Tabs??? xD
__________________


Reply With Quote
  #8  
Old 04-22-2007, 01:24 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
PHP Code:
function Chatbar.onAction()
  {
  
doStuff();
  } 
Check wiki for GUI Tabs -- There is an example there.
Reply With Quote
  #9  
Old 04-22-2007, 01:27 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Nice wiki site for gui controls here:

http://wiki.graal.net/index.php/Crea...iControls_List
__________________
Reply With Quote
  #10  
Old 04-22-2007, 02:02 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by Dionysus View Post
...
Also how do you use the GS2 Gui Tabs??? xD
PHP Code:
new GuiTabCtrl("Tabs")
{
     
profile "GuiBlueTabProfile";
     
position = { 0};
     
extent = { 20024 };

     
tabwidth 75;
     
     
clearrows();
     
addrow(0"Hello");

... Would create a tab called 'Hello'.
__________________
What signature? I see no signature?
Reply With Quote
  #11  
Old 04-22-2007, 04:29 AM
Dionysus Dionysus is offline
RTK| God of Wine
Dionysus's Avatar
Join Date: Apr 2007
Location: United States
Posts: 14
Dionysus is on a distinguished road
Send a message via AIM to Dionysus
ok do you guys not understand what im trying to get in return of my question......

I need a way to make my Client-RC trigger an action to Normal-RC to do the /help and all of those other commands by NOT scripting each god dame command in my Client-RC......

Than for tabs i need to know how to make them do stuff like load diffrent displacements.....

I dont need no god dame wiki site i need help from someone who knows it ok because if i am asking on here that means i dont get it on the god dame wiki site..........
__________________


Reply With Quote
  #12  
Old 04-22-2007, 08:20 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
so nasty.

I think you need to make your own.

Quote:
Next when typed "/help" in normal RC it displays the commands and w\e command you use in that commands display help, it triggers the rc commands. How do i get Client-RC to trigger the /help and all the other commands RC gives without scripting one by one???
Reply With Quote
  #13  
Old 04-22-2007, 03:01 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Take a chill pill man. If you want help, you shouldn't be acting so mean. What they said is right, almost all of your questions asked so far could be answered if you just studied the wiki well enough.

As for your /help question, I don't quite know what you mean...the Client RC should send you back the stuff when you do things like /help automatically. Are you use sendtext() and stuff or did you make your clientrc using sendtorc()? o_o;

The wiki has a wonderful guide on how clientrc (and sendtext()/onRecieveText()) works. I really urge you to study it a little more
__________________
Do it with a DON!
Reply With Quote
  #14  
Old 04-22-2007, 03:19 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by Dionysus View Post
ok do you guys not understand what im trying to get in return of my question......

I need a way to make my Client-RC trigger an action to Normal-RC to do the /help and all of those other commands by NOT scripting each god dame command in my Client-RC......

Than for tabs i need to know how to make them do stuff like load diffrent displacements.....

I dont need no god dame wiki site i need help from someone who knows it ok because if i am asking on here that means i dont get it on the god dame wiki site..........
1.) Stop being an ass.
2.) I gave you the ideas of tabs. Use the following function to do different things:

PHP Code:
// Previous code...
function Tabs.onSelect(temp.tObjecttemp.tIdtemp.tTexttemp.tIndex)

     echo(
temp.tText);

Which you should be able to figure out yourself.

3.) For your help command, You need to script it yourself.

4.) You can't make a Client-RC until you've read the Wiki. It is full of information that would of saved us alot of time instead of answering your dumb questions here. http://wiki.graal.net/
__________________
What signature? I see no signature?

Last edited by godofwarares; 04-22-2007 at 03:20 PM.. Reason: Added Wiki comment.
Reply With Quote
  #15  
Old 04-22-2007, 05:01 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
I released a mostly complete Client-RC script a while back. Perhaps it will serve as inspiration: http://forums.graalonline.com/forums...5&d=1170584991.

As for the various request types for requesttext or sendtext, please see http://skyld.vip.graal.net/wikka.php...verRequestData. Many of these are related to Client-RC functionality.
__________________
Skyld
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 03:40 AM.


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