PenUltima Online

It is currently Sat Sep 06, 2008 8:28 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: CloseDialogGump( )
PostPosted: Mon Mar 03, 2008 10:23 pm 
Offline
User avatar

Joined: Fri Feb 10, 2006 12:15 am
Posts: 217
Check out packet 0xBF and it's subcommand 4: http://packets.polserver.com/index.php?op=showpacket&packet=0xBF.

What I'm asking for is core function to do the gump-closing trick. You see, when this packet is sent, client closes the gump, but never replies in any way. Thus process that sends the gump using SendGumpDialog() leaves hanging. There is really nothing you can do but .kill() it.

That would be fine, if it weren't the new (5.0.6c, at least) superb clients that remember where the user dragged the gump. Great feature if you happen to have a gump that is used often and a lot. Sadly this feature only works if the gumps id (which is the PID of the process that sends it!) remains the same. So, if process is killed, the actual location of gump gets lost.

While this problem could be solved, like, adding a new parameter to SendDialogGump(), which would of course be 'gump_id', I think that CloseDialogGump() (or CloseGump() if you want to be user friendly) would be more useful addon to core as overall.

So, to summarize the idea:
Add a function CloseDialogGump( character, gump_id ), which would send packet to player AND (this is THE FEATURE!) tell the process that sent the gump to stop waiting for it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl