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
character.ClearGottenItem() & v5 client (POL 097 2008-02

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 189

PostPosted: Thu Apr 24, 2008 11:01 am    Post subject: character.ClearGottenItem() & v5 client (POL 097 2008-02 Reply with quote

When using ClearGottenItem method a minor client bug occurs: while dragged item is physically cleared serverside, to the player it will look like item is still in the cursor. It vanishes after client drops the item somewhere. This happens at least in v5 clients - I didn't test other clients.

--

In order to get around this, one could use at least the following code snippet (better ways may exist, please tell if you know any).

Code:

// Clear item.
var item := who.GetGottenItem();
who.ClearGottenItem();

// "Remove Move Item Request"
var packet := CreatePacket(0x27, 2);
packet.SendPacket(who);

// "Destroy Object"
packet := CreatePacket(0x1D, 5);
packet.SetInt32(1, item.serial);
packet.SendPacket(who);

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

 




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