Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small bug in AddBeltItem Packet #2

Open
GoogleCodeExporter opened this issue Jun 23, 2015 · 0 comments
Open

Small bug in AddBeltItem Packet #2

GoogleCodeExporter opened this issue Jun 23, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

(Copied unedited from http://redvex.d2help.com/viewtopic.php?f=12&t=7952)


Small bug in AddBeltItem Packet
by BotterX on Sat Aug 02, 2008 3:01 pm 

Line 30-33 in GameClientPackets.cs

Is:


public static byte[] Build(uint uid, ushort x, ushort y)
{
return new byte[] { 0x23, ((byte) uid), ((byte) (uid >> 8)), ((byte) (uid
>> 0x10)), ((byte) (uid >> 0x18)), ((byte) x), ((byte) (x >> 8)), ((byte)
y), ((byte) (y >> 8)) };
}

Should be:

public static byte[] Build(uint uid, ushort x, ushort y)
{
return new byte[] { 0x23, ((byte) uid), ((byte) (uid >> 8)), ((byte) (uid
>> 0x10)), ((byte) (uid >> 0x18)), ((byte) 4 * y + x), 0, 0, 0 };
}

Original issue reported on code.google.com by michael....@gmail.com on 7 Aug 2008 at 5:51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant