scriptsdk / CSharp-ScriptSDK-Legacy

ScriptSDK is an advanced extension written in .NET. The framework is based on a local tcp socket protocol library written by maxwell and extend the provided architecture by additional methods and handlers.
GNU General Public License v3.0
9 stars 11 forks source link

Solution for GetPathArray function to return correct data #8

Closed drabadan closed 8 years ago

drabadan commented 8 years ago

namespace StealthAPI { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct MyPoint { public ushort X; public ushort Y; public sbyte Z; } }

StealthClient from 299 line else { uint itemCount; switch (type) { case PacketType.SCReadStaticsXY: case PacketType.SCGetBuffBarInfo: itemCount = barray[0]; barray = barray.Skip(1).ToArray(); break; case PacketType.SCGetPathArray: itemCount = barray[0]; //barray = barray.Skip(2).ToArray(); break; default: itemCount = BitConverter.ToUInt32(barray, 0); barray = barray.Skip(4).ToArray(); break; }

Crome696 commented 8 years ago

Please make a pull request then i gladly will add it to our source :)

Crome696 commented 8 years ago

Request has been pulled! Thanks for your support!