[Question] Sending job info to server.

08/17/2009 14:46 flaMe~#1
Hey,

Using hybrid's rev 3:

Code:
                    case "@job":
                        {
                            byte NewJob = byte.Parse(args[1]);
                            Client.Job = NewJob;
                            Client.Send(PacketBuilder.CharacterInfo(Client));
                            break;
                        }

that's my command to change jobs.

It works fine, except I thought there might be a better way to update the character's job than;

Code:
Client.Send(PacketBuilder.CharacterInfo(Client));
Just wondering if there was, thanks.

Peace.
08/17/2009 15:22 © Haydz#2
Quote:
Originally Posted by flaMe~ View Post
Hey,

Using hybrid's rev 3:

Code:
                    case "@job":
                        {
                            byte NewJob = byte.Parse(args[1]);
                            Client.Job = NewJob;
                            Client.Send(PacketBuilder.CharacterInfo(Client));
                            break;
                        }

that's my command to change jobs.

It works fine, except I thought there might be a better way to update the character's job than;

Code:
Client.Send(PacketBuilder.CharacterInfo(Client));
Just wondering if there was, thanks.

Peace.
Yeah send the SyncPacket (0x3F7 i think), with the type to update job.
08/18/2009 08:24 flaMe~#3
Thanks, got it all working nicely. :)