Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-26-2004, 03:36 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Question Hiding gui

Ok here's the thing. This gui is scripted just fine, but if you try lowering the timeout or having something that disrypts tiomeout loops go, the gui either flashes or hides. There is nothing in it telling it to hide, so why does it? Please look over it. Note that it works fine if nothing disrupts the timeout loop, which says that the gui hides if it isnt constantly told to show for some reason.


PHP Code:
if (actionserverside) {
setstring clientr.#s(client.element)power,#s(server.#s(client.element)power);
setstring clientr.#s(client.element)size,#s(server.#s(client.element)size);
setstring clientr.#s(client.element)allies,#s(server.#s(client.element)allies);
setstring clientr.#s(client.element)enemies,#s(server.#s(client.element)enemies);




}
//#CLIENTSIDE
if (created||playerenters||keypressed) {triggeraction 0,0,serverside,-GUI;this.alpha=1;}
//NORMAL GUI//
while (isweapon) {
  
showstats 1024;
  
showimg 250,cythusgui.gif,0,0;
    
changeimgvis 250,6;
  
changeimgcolors 250,1,1,1,this.alpha;
  
showimg 251,@TimesRoman@@#s(client.hp) / #s(client.maxhp),38.5,10;
  
changeimgvis 251,7;
  
changeimgcolors 251,0,0,0,1;
  
changeimgzoom 251,.6;
showimg 252,@TimesRoman@@#v(playermp) / 100 ,36.4,25.9;
  
changeimgvis 252,8;
  
changeimgcolors 252,0,0,0,1;
  
changeimgzoom 252,.6;
showimg 253,#W,149,5;
  
changeimgpart 253,0,0,270,160;
  
changeimgvis 253,7;
showtext 254,63,82,verdana,l,#w;
  
changeimgvis 254,8;
  
changeimgcolors 254,.1,.1,.1,1;
  
changeimgzoom 254,.55;
showimg 255,@TimesRoman@@#v(strtofloat(#s(client.tokens))),38.5,40.3;
  
changeimgvis 255,8;
  
changeimgcolors 255,.1,.1,.1,1;
  
changeimgzoom 255,.6;
showtext 259,5.4,55.3,verdana,b,Exp:   #v(strtofloat(#s(client.playerexp)));
  
changeimgvis 259,9;
  
changeimgcolors 259,0,0,0,1;
  
changeimgzoom 259,.6;
showtext 301,6,67.1,arial,bPwr#v(strtofloat(#s(client.playerpower)));
  
changeimgvis 301,9;
  
changeimgcolors 301,0,0,0,1;
  
changeimgzoom 301,.65;
showtext 8675309,79,115,timesRoman,c,x  #v(playerrupees);
changeimgvis 8675309,8;
  
changeimgcolors 8675309,0,1,0,1;
  
changeimgzoom 8675309,.9;
  
showimg 86753010,greenrupee.png,20,105;
  
changeimgvis 86753010,8;
showpoly 79999,{148,5,193,5};
  
changeimgcolors 79999,0,0,0,1;
  
changeimgvis 79999,14;
showpoly 79998,{148,5,148,45};
  
changeimgcolors 79998,0,0,0,1;
  
changeimgvis 79998,15;
showpoly 79997,{148,45,193,45};
  
changeimgcolors 79997,0,0,0,1;
  
changeimgvis 79997,16;
showpoly 79996,{193,5,193,45};
  
changeimgcolors 79996,0,0,0,1;
  
changeimgvis 79996,17;
showimg 79995,@Verdana@@Drop,160,52;
  
changeimgvis 79995,18;
  
changeimgcolors 79995,0,0,0,1;
  
changeimgzoom 79995,.5;
//bleh//
//Kingdom info//

showpoly 9999,{screenwidth-110,screenheight*0,screenwidth-1,screenheight*0,screenwidth-1,(screenheight*0)+100,screenwidth-110,(screenheight*0)+100};
changeimgvis 9999,4;
changeimgcolors 9999,.5,.5,.5,this.alpha;
showpoly 9998,{screenwidth-105,(screenheight-=1)+5,screenwidth-6,(screenheight-=1)+5,screenwidth-6,(screenheight-=1)+95,screenwidth-105,(screenheight-=1)+95};
changeimgvis 9998,6;
changeimgcolors 9998,.6,.6,.6,this.alpha;
showpoly 10009,{screenwidth-107.5,(screenheight-=1)+3,screenwidth-3.5,(screenheight-=1)+3,screenwidth-3.5,(screenheight-=1)+97.5,screenwidth-107.5,(screenheight-=1)+97.5};
changeimgvis 10009,5;
changeimgcolors 10009,.55,.55,.55,this.alpha;
showtext 9997,screenwidth-104,15,Verdana,l,Your Kingdom:#s(client.element);
changeimgvis 9997,7;
changeimgcolors 9997,0,0,0,this.alpha;
changeimgzoom 9997,.5;
showtext 9996,screenwidth-104,25,Verdana,l,Kingdom Power:#s(clientr.#s(client.element)power);
changeimgvis 9996,7;
changeimgcolors 9996,0,0,0,this.alpha;
changeimgzoom 9996,.5;
showtext 9995,screenwidth-104,35,Verdana,l,Kingdom Size:#s(clientr.#s(client.element)size);
changeimgvis 9995,7;
changeimgcolors 9995,0,0,0,this.alpha;
changeimgzoom 9995,.5;
showtext 9994,screenwidth-55,50,Verdana,c,=Allies=;
changeimgvis 9994,7;
changeimgcolors 9994,0,0,0,this.alpha;
changeimgzoom 9994,.5;
showtext 9993,screenwidth-55,60,Verdana,c,#s(clientr.#s(client.element)allies);
changeimgvis 9993,7;
changeimgcolors 9993,0,0,0,this.alpha;
changeimgzoom 9993,.5;
showtext 9992,screenwidth-55,70,Verdana,c,=Enemies=;
changeimgvis 9992,7;
changeimgcolors 9992,0,0,0,this.alpha;
changeimgzoom 9992,.5;
showtext 9991,screenwidth-55,80,Verdana,c,#s(clientr.#s(client.element)enemies);
changeimgvis 9991,7;
changeimgcolors 9991,0,0,0,this.alpha;
changeimgzoom 9991,.5;

//blah//
sleep .05;



__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!

Last edited by falco10291029; 09-27-2004 at 02:24 AM..
 

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 04:09 AM.


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