Secure trading packet

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Deathek
New User
Posts: 5
Joined: Tue Nov 11, 2008 10:01 am

Secure trading packet

Post 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.
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Re: Secure trading packet

Post 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.
Post Reply