PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
CloseDialogGump( )

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 183

PostPosted: Tue Mar 04, 2008 2:23 am    Post subject: CloseDialogGump( ) Reply with quote

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!

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty