Gump - page 2 how to show it ??

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
coltain
Grandmaster Poster
Posts: 159
Joined: Tue Mar 20, 2007 7:17 am

Gump - page 2 how to show it ??

Post 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???
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post 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.
Post Reply