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 07-20-2008, 10:45 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Unhappy [normal gui disable]

my friend made this. and he dont know where to put this
PHP Code:
showstats1024 ); 
at on the script . the script deletes the normal gui right?
heres the gui script
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.gx 0;
  
this.gy 0;
  
onTimeout();
}
function 
onTimeout() {
  
this.stats = {client.hp.substring(-1,2),"/",clientr.hpmax,player.rupees,clientr.wantedlvl};
  
this.posx = {31,44,48,22,27};
  
this.posy = {10,10,10,41,76};
  
showimg(201,"dg_gui_health.png",this.gx,this.gy);
  
changeimgpart(201,0,0,145,100);
  
changeimgvis(201,5);
  
showimg(202,"dg_gui_health.png",screenwidth-85,screenheight-52);
  
changeimgpart(202,210,135,85,52);
  
changeimgvis(202,4);
  
showimg(203,player.weapon.image,screenwidth-40,screenheight-40);
  
changeimgvis(203,5);
  for(
i=0;i<this.stats.size();i++){
    
showtext(1000+i,this.posx[i],this.posy[i],"Arial","",this.stats[i]);
    
changeimgvis(1000+i,5);
    
changeimgzoom(1000+i,.6);
    
changeimgcolors(1000,0,1,0,1);
    
changeimgcolors(1001,0,1,0,1);
    
changeimgcolors(1002,0,1,0,1);
    
changeimgcolors(1003,.4,.7,.4,1);
    
changeimgcolors(1004,.6,.2,.2,1);
  }
  if (
client.hp/clientr.hpmax <= .33changeimgcolors(1000,1,0,0,1);
  else if (
client.hp/clientr.hpmax <= .50changeimgcolors(1000,0.9,0.9,0,1);
  else if (
client.hp/clientr.hpmax >= .66changeimgcolors(1000,0,1,0,1);
  
setTimer(0.05);

Reply With Quote
  #2  
Old 07-20-2008, 10:48 PM
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
graal wiki
__________________
.
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 07-20-2008, 10:54 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Since the wiki doesn't give any examples of custom GUIs, I'll be nice and answer your question. I believe showstats(1024); would go in the onCreated() part of the script.

As many people have told you, the GraalBible is an excellent source of information. Before asking questions on the forums, you should search the GraalBible for information regarding your problem. The GScript information section is at this URL: http://graal.net/index.php/Creation/Dev/GScript
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #4  
Old 07-21-2008, 02:27 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 LoneAngelIbesu View Post
Since the wiki doesn't give any examples of custom GUIs, I'll be nice and answer your question. I believe showstats(1024); would go in the onCreated() part of the script.

As many people have told you, the GraalBible is an excellent source of information. Before asking questions on the forums, you should search the GraalBible for information regarding your problem. The GScript information section is at this URL: http://graal.net/index.php/Creation/Dev/GScript
I already explained almost exactly what to do. He's not interested in learning, but in leeching.
__________________
Reply With Quote
  #5  
Old 07-21-2008, 03:11 AM
Zanzel Zanzel is offline
<insert title here>
Zanzel's Avatar
Join Date: Dec 2006
Posts: 35
Zanzel is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
I already explained almost exactly what to do. He's not interested in learning, but in leeching.
His server is going to die... of lacking the knowledge to produce, At this rate.
This would be another of his many, many threads asking for easy to learn things.
__________________
  • N-Pulse / N-Pulse Reborn Scripter
  • Graal Kingdoms Player
  • N-Pulse Player
Reply With Quote
  #6  
Old 07-21-2008, 03:22 AM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Quote:
Originally Posted by Zanzel View Post
His server is going to die... of lacking the knowledge to produce, At this rate.
This would be another of his many, many threads asking for easy to learn things.
Development can be a fun thing to do, if it wasn't fun I wouldn't do it; but if you're doing it this way with no interest to actually learn then it's more of a chore then an activity.
If I was just starting out and had a gold account, I would spend plenty of time on someone's private server helping them out and at the same time helping myself out by learning some sort of trade like scripting or LAT. But doing this sort of thing doesn't seem like much fun to me.
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 06:14 PM.


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