I suggest you learn the basics of variables and classes. I don't know what packet you mean, but most of them have a field "pos". Also you should learn how to study error messages.
Lets take the NEW_TICK packet for example:
Code:
NEW_TICK
int tickId
int tickTime
Status[] statuses
So the packet has:
Code:
packet.tickId // int
packet.tickTime // int
packet.statuses // an array which holds the class Status
So the tickId and tickTime do not seem very interesting at the moment, lets take a look at the Status class:
Code:
Status
int objectId
Location pos
StatData[] data
Aha! The Status class has a field called "pos". That seems promising. Now we see that "pos" is a Location. Lets see what it looks like.
Code:
Location
float x
float y
float distanceSquaredTo(Location location)
float distanceTo(Location location)
Heureka! The Location class has the fields "x" and "y". These are what we are looking for!
So to sum up:
1. NEW_TICK has an array full of Status called "statuses"
2. Status holds a Location called "pos"
3. Location has fields called "x" and "y"
I'll help you a bit more:
Code:
for (i in packet.statuses) {
$.echo("X: " + i.pos.x + " Y: " + i.pos.y)
}