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.
Secure trading packet
Re: Secure trading packet
You have to use packet object methods. Like this:
This information will hopefully ease the testing you'll do.
Code: Select all
exported function example( who, byref packet )
var serial := packet.GetInt32(4);
var mobile := SystemFindObjectBySerial(serial);
// ...