Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-16-2007, 07:34 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Gui Profiles

Having a problem while creating my own, here's what I have so far:

The inventory:
HTML Code:
  getProfiles();
  
  if (inventoryOpen)
  {
    core.updateItems(); 
    new GuiControl("inventory_Main") 
    {
      profile = "guiMenu";
      position = {temp.inventoryPosition[0], temp.inventoryPosition[1]};
      extent = {temp.inventorySize[0], temp.inventorySize[1]};
    }
  }
He's the class that finds the profile "guiMenu", however it isn't using that as a profile.

HTML Code:
//#CLIENTSIDE
function getProfiles()
{
  echo("DRAWING");
  new GuiControlProfile("guiMenu")
  {
    fillColor = {255, 0, 0};
    fontColor = {255, 255, 255};
  
    bitmap = "block.png";
  
    opaque = false;
    transparency = 0.5;
  }
}
I am receiving the "DRAWING" in my Console Log, however, It's not using it!
Reply With Quote
  #2  
Old 04-16-2007, 08:07 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
You called the function getProfiles(); and in that function it says echo("DRAWING"); I don't see why you shouldn't be getting that message
Reply With Quote
  #3  
Old 04-16-2007, 08:08 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
It's not using the profile, It's displaying the message. [Sorry, if that wasn't clear]
Reply With Quote
  #4  
Old 05-14-2007, 06:03 PM
sam_is_me sam_is_me is offline
Registered User
Join Date: Sep 2004
Posts: 195
sam_is_me is on a distinguished road
Oh i see the problem.
Once it calls the profile, it updates the items, which calls the echo command into effect, where it triggers the rc to send the "DRAWING" onto the GUI of your Q.
To fix it simply get rid of the echo command, and you should be set!
Glad I could help.
__________________
Aim: xxspazmxx929


Reply With Quote
  #5  
Old 05-14-2007, 06:22 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Woah, thanks!!
Reply With Quote
  #6  
Old 05-15-2007, 02:19 AM
sam_is_me sam_is_me is offline
Registered User
Join Date: Sep 2004
Posts: 195
sam_is_me is on a distinguished road
i try, i try
<3
__________________
Aim: xxspazmxx929


Reply With Quote
  #7  
Old 05-15-2007, 02:28 AM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
Quote:
Originally Posted by sam_is_me View Post
Oh i see the problem.
Once it calls the profile, it updates the items, which calls the echo command into effect, where it triggers the rc to send the "DRAWING" onto the GUI of your Q.
To fix it simply get rid of the echo command, and you should be set!
Glad I could help.
what the hell
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #8  
Old 05-15-2007, 03:29 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 the hell are you talking about, not to sound like the person above me. Echo won't stop the script x.x
__________________
Reply With Quote
  #9  
Old 05-15-2007, 06:42 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Indeed. It's not like an echo() is a return statement: what the hell?
Reply With Quote
  #10  
Old 05-15-2007, 07:44 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
It was a joke, it was spam, it was retarded.
__________________
- Zidane / Zidaya
Reply With Quote
  #11  
Old 05-15-2007, 09:13 PM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
Quote:
Originally Posted by cbkbud View Post
What the hell are you talking about, not to sound like the person above me. Echo won't stop the script x.x
it's not that. I never knew Sam knew anything about gscript, lol (sam_is_me, GP from Era)
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #12  
Old 05-16-2007, 06:43 PM
sam_is_me sam_is_me is offline
Registered User
Join Date: Sep 2004
Posts: 195
sam_is_me is on a distinguished road
Its a joke, you *****s. Chandler got it, thats all I was aiming for.
__________________
Aim: xxspazmxx929


Reply With Quote
  #13  
Old 05-18-2007, 06:43 AM
TheJames TheJames is offline
Atrius Manager
TheJames's Avatar
Join Date: Dec 2004
Posts: 581
TheJames can only hope to improve
For a minute I was speechless.... LOL
__________________
Contact me on Skype: "skype.sam.lorenz"

James,
Manager of Atrius
Reply With Quote
  #14  
Old 05-18-2007, 02:39 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
I found that funny ^-^
__________________
Reply With Quote
  #15  
Old 05-18-2007, 10:58 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I'm sorry to say that wasn't a very good joke, well more like I didn't think it was X_X, especially since some people actually are that bad at GScript =(
__________________
Reply With Quote
  #16  
Old 05-18-2007, 11:00 PM
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
Wow, I was actually fooled by it. Probably because I didn't bother to look at the script, I was like "Wtf, it worked? Oh well, what's for dinner?"
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #17  
Old 05-22-2007, 09:54 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
You're so illegal! Don't give up your day job.
__________________
Reply With Quote
  #18  
Old 05-23-2007, 03:06 AM
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
Quote:
Originally Posted by xXziroXx View Post
Wow, I was actually fooled by it. Probably because I didn't bother to look at the script, I was like "Wtf, it worked? Oh well, what's for dinner?"
My situation unfolded quite the same!
Beef Stew.
__________________
Do it with a DON!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:54 PM.


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