[Question] 0x3f2, subfunction 0x51 (old 7E)

07/11/2006 19:27 WaRpEd#1
Ok so I'm trying to understand how to fix/add hotkey functions into a packetbased program using the actions, sit,lie etc...

The only code I have for reference is Q's so if u can help would appreciate...
The blue is my understanding of the code... correct if im wrong pls...

if(packetID(b)==0x3f2 && b[22]==(byte)(int)0x51)
//If packet 0x3f2, subfunction 51 (Gesture) then...
{
int ac=(b[20]&0xff) | ((b[21]&0xff)<<8) | ((b[22]&0xff)<<16) | ((b[23]&0xff)<<24); //<-- so its checking these bytes for the type of gesture?? 1. Is this correct or what? 2. Have these bytes changed like some x and y's did...?
if(ac==0x10e) //<-- Is this for the "LIE" action? If so how do I find the other actions ie. sit...
{ // do actions...

//and if this is how it works... I should be able to add..
if(ac==0x___) and do other functions etc...??


Hope you understand my questions, and im awaiting some help or answers o.o thx
07/11/2006 22:55 unknownone#2
First question.
int ac=(b[12]&0xff) | ((b[13]&0xff)<<8) | ((b[14]&0xff)<<16) | ((b[15]&0xff)<<24)

Second.
Code:
enum GESTURE {
  STAND=0,
  DANCE1,
  DANCE2,
  DANCE3,
  DANCE4,
  DANCE5,
  DANCE6,
  DANCE7,
  DANCE8,
  DANCE9,
  STAND_FROM_DANCE,
  HAPPY=150,
  STAND_FROM_HAPPY,
  ANGRY=160,
  STAND_FROM_ANGRY, 
  SAD=170,
  STAND_FROM_SAD,
  BOW=190,
  STAND_FROM_BOW,
  KNEEL=210,
  STAND_FROM_KNEEL,
  COOL=230,
  STAND_FROM_COOL,
  SIT=250,
  STAND_FROM_SIT,
  LIE=270,
  STAND_FROM_LIE
};
Third.
Yes.

PM me your msn addy if you want.
07/12/2006 00:33 WaRpEd#3
nice thanks alot +k

*Edit fuckin eh it worked too... unknownone you own!
08/05/2006 10:19 Mr Pooner#4
I benefited from this aswell +k
08/05/2006 12:39 Lateralus#5
God, I want to learn java or C# =(
08/05/2006 13:31 tsu#6
Quote:
Originally posted by Lateralus@Aug 5 2006, 12:39
God, I want to learn java or C# =(
Then start learning? :?
08/05/2006 13:36 Lateralus#7
Quote:
Originally posted by tsu+Aug 5 2006, 13:31--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (tsu @ Aug 5 2006, 13:31)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--Lateralus@Aug 5 2006, 12:39
God, I want to learn java or C# =(
Then start learning? :? [/b][/quote]
ZOMG! BEST IDEA!
08/05/2006 13:50 tsu#8
Quote:
Originally posted by Lateralus+Aug 5 2006, 13:36--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Lateralus @ Aug 5 2006, 13:36)</td></tr><tr><td id='QUOTE'>
Quote:
Originally posted by -tsu@Aug 5 2006, 13:31
<!--QuoteBegin--Lateralus
Quote:
@Aug 5 2006, 12:39
God, I want to learn java or C# =(

Then start learning? :?
ZOMG! BEST IDEA! [/b][/quote]
Now pay me :cool: