walk packet - question about one variable

02/21/2018 21:16 xYahik#1
Hi, i have a little question about walk packet.
for example, there's a packet:
Code:
walk 60 71 0 12
so
Code:
walk <x> <y> <?> <speed>
But i don't know what's this "?", it's always 0 or 1.
Can u help me or give a hint? :D
02/21/2018 22:15 Bejine#2
if my friend recalls correctly, its
if ((x+y)%3)
arg = 1
else
arg = 0

just check the pattern with packetlogger in nosville, go to 0, 0 and check the arg, then move one to the right (to 1, 0), check it and so on. the pattern is always the same
02/22/2018 18:03 Asuramaru#3
Quote:
Originally Posted by Bejine View Post
if my friend recalls correctly, its
if ((x+y)%3)
arg = 1
else
arg = 0

just check the pattern with packetlogger in nosville, go to 0, 0 and check the arg, then move one to the right (to 1, 0), check it and so on. the pattern is always the same
Almost, its ((x+y)%3)%2
Otherwise you might get 2 (which isnt valid) instead of 0.
07/12/2019 19:03 IceTrailer#4
#closed