Page 1 of 1

Gump Question

Posted: Wed Mar 17, 2010 11:09 am
by Pachacuti
Is there any way for me to track a gumps position in the screen?

I mean, I have a custom cartography sistem, and there's a gump for the map. When you click in a marked position of the map, a button in the gump, another gump, a king of tooltip appears right over the marked position, bringing information about it. The problem is: id the player moves the gump, the tooltip wont appear right over the marked position. I would like to track the new gump position, so, that way I could make the tooltip appear right over the button.

Any way of doing that? I know they're totally different, but some day I saw something like this in a sphere server....

Thanks...

Re: Gump Question

Posted: Thu Mar 18, 2010 7:34 am
by Tomi
Answer to your question is no..

That is handled fully clientside, only way to accomplish that would be with a custom client or a gump locked to some coordinates and not let the players move it.

Re: Gump Question

Posted: Thu Mar 18, 2010 9:19 pm
by Austin
If you can close a gump in a looping script.. that maintains the script PID, newer clients will save the location... during that login session.
Once the client is closed, itll reset.

Re: Gump Question

Posted: Sun Mar 21, 2010 6:36 am
by Pachacuti
So, lets recycle the topic and make another question.

Can I force a gump to close, or know if it is closed or not? And could I do the same with container gumps?

Re: Gump Question

Posted: Sun Mar 21, 2010 7:39 am
by Tomi
check uo.em functions

CloseGump( character, pid, response := 0 );

and

CloseWindow( character, type, object );

Re: Gump Question

Posted: Tue Apr 06, 2010 7:53 am
by babybasher
Austin wrote:If you can close a gump in a looping script.. that maintains the script PID, newer clients will save the location... during that login session.
Once the client is closed, itll reset.
Sorry to ressurect an old topic. But how would you go about doing this?