Page 1 of 1

Gump - page 2 how to show it ??

Posted: Tue Aug 12, 2008 2:34 am
by coltain
I have defined 2 pages of some gump.
I have looped my script

var a:=1;
while(a>0)

var ret:=show_gump(who);

if(ret[0]==0) a:=0; endif

case(ret[0])
something: do_something();
endcase

endwhile

Player has shown page 2. Pressing the button makes a gump close and a new one show. Is there a way to show Page 2 od this gump at first???

Posted: Tue Aug 12, 2008 4:31 am
by CWO
You can make page 2 show while the gump remains open (this will return nothing to your scripts as page flipping using the client way will wait until an actual button other than a page button is hit or the gump is closed) but I don't believe that you can make page 2 show first when sending a gump unless you script it to shift the page numbers and put everything thats supposed to be on page 2 on page 1.