Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   [normal gui disable] (https://forums.graalonline.com/forums/showthread.php?t=80659)

GULTHEX 07-20-2008 10:45 PM

[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);



Deas_Voice 07-20-2008 10:48 PM

graal wiki

LoneAngelIbesu 07-20-2008 10:54 PM

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

cbk1994 07-21-2008 02:27 AM

Quote:

Originally Posted by LoneAngelIbesu (Post 1406004)
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.

Zanzel 07-21-2008 03:11 AM

Quote:

Originally Posted by cbk1994 (Post 1406074)
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.

The_Kez 07-21-2008 03:22 AM

Quote:

Originally Posted by Zanzel (Post 1406087)
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.


All times are GMT +2. The time now is 03:31 AM.

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