[Help] about ReadUInt

11/19/2014 16:00 karemsa#1
Hello guys,

i want to read (03)
from
Quote:
[S -> C][B150]
01 ................
02 ................
01 ................
22 "...............
00 00 00 00 ................
4D 00 00 00 M...............
03 ................
00 00 00 00 00 00 00 00 ................
47 00 00 00 G...............
00 ................
01 ................
00 ................
02 ................
00
how i can read this with out read all lines
using C#

sorry my english is bad
11/19/2014 17:44 LastThief*#2
IF the packet is not dynamic it should be like that
packet.ReadUIntArray(12);
byte value = packet.ReadUInt8();
11/19/2014 18:53 karemsa#3
Quote:
Originally Posted by LastThief* View Post
IF the packet is not dynamic it should be like that
packet.ReadUIntArray(12);
byte value = packet.ReadUInt8();
i need to make max plus using packet filter ,what i need is to read the Plus of item using opcode B150.

edit

like
Quote:
if (packet.Opcode == 0xB150)
{
if (packet.ReadUInt8() =>12)
{
do something
}
}
11/22/2014 02:33 theking200051#4
from ur code u wana ur program to do ..... (what ever u want ) when the plus word >= 12 ,iam not c# programer put first u must convert word value from hex to dec

u will not get 12 in packet u will get 0C
11/22/2014 13:25 qqdev#5
Quote:
Originally Posted by theking200051 View Post
from ur code u wana ur program to do ..... (what ever u want ) when the plus word >= 12 ,iam not c# programer put first u must convert word value from hex to dec

u will not get 12 in packet u will get 0C
Its a single byte and you dont have to do that. Not in C# :)
11/22/2014 19:09 theking200051#6
Quote:
Originally Posted by qqdev View Post
Its a single byte and you dont have to do that. Not in C# :)
yea ,its a byte not word . (my mistake ,i using autoit so no need to declare variables any more in my tools ,i think its fine now if i forget it :D )

i make such thing in one of my tools in autoit , if it can help him i can give him the code lines (in autoit) of this function .
11/23/2014 13:24 karemsa#7
i got it already thank's guys .