PenUltima Online

It is currently Sun Oct 12, 2008 1:43 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: character.ClearGottenItem() & v5 client (POL 097 2008-02
PostPosted: Thu Apr 24, 2008 7:01 am 
Offline
User avatar

Joined: Fri Feb 10, 2006 12:15 am
Posts: 223
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);


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: No registered users 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