Page 1 of 1

Secure trading packet

Posted: Mon Feb 23, 2009 3:29 am
by Deathek
Hi ya. One (maybe simple?;]) question.
How can I get the trading characters references from secure trading packet?
Packet Build
BYTE[1] cmd
BYTE[2] blockSize
BYTE[1] action
BYTE[4] id1
BYTE[4] id2
BYTE[4] id3
BYTE[1] nameFollowing (0 or 1)
If (nameFollowing = 1)
BYTE[?] charName
Should I take id1 and id2? And how should I get these references from the packet? Simply using var chars:=array{getInt32(4),getInt32(8)}; ? Thanks for any help.

Re: Secure trading packet

Posted: Mon Feb 23, 2009 4:05 am
by ncrsn
You have to use packet object methods. Like this:

Code: Select all

exported function example( who, byref packet )
    var serial := packet.GetInt32(4);
    var mobile := SystemFindObjectBySerial(serial);
    // ...
This information will hopefully ease the testing you'll do.