[Help] Spawn Packet

01/19/2014 15:53 littlechris95#1
Hello! I created a command so I can change my first reborn class, but when I use the command, the class does not change the status. I wonder what I did wrong? Photo below:

Code:

Game example:

Obs: Version 5765, FirstRebornClass SpawnPacket: 221.
01/19/2014 15:58 teroareboss1#2
Uint16_FirstRebornClass = 225,
Uint16_SecondRebornClass = 227,
Uint16_Class = 229,
01/19/2014 16:08 littlechris95#3
Quote:
Originally Posted by teroareboss1 View Post
Uint16_FirstRebornClass = 225,
Uint16_SecondRebornClass = 227,
Uint16_Class = 229,
I changed to 225, but only updates the status to other players, for me does not change.
01/20/2014 21:57 abdoumatrix#4
packet 1006 characterinfo i think
01/21/2014 21:56 Super Aids#5
Quote:
Originally Posted by abdoumatrix View Post
packet 1006 characterinfo i think
No. That is for login only.


@OP You have to use the update packet, same packet you use to update money, cps, level, experience etc. with.

The spawnpacket is only for surroundings, ALWAYS.

Quote:
Originally Posted by teroareboss1 View Post
Uint16_FirstRebornClass = 225,
Uint16_SecondRebornClass = 227,
Uint16_Class = 229,
Well that was some ugly naming convention.
01/21/2014 22:21 littlechris95#6
Quote:
Originally Posted by Super Aids View Post
No. That is for login only.


@OP You have to use the update packet, same packet you use to update money, cps, level, experience etc. with.

The spawnpacket is only for surroundings, ALWAYS.



Well that was some ugly naming convention.
For update money is used:
Code:
Update(number, value, false);
I tried numbers 0-255 in number to first reborn class and had no results :/
01/21/2014 22:45 Super Aids#7
Or wait my bad. I thought it was the reborn count. Read count instead of class.

It could be wrong offsets of your packet.

Make sure that you send the spawnpacket to yourself when you update it.

Try change:
Code:
client.SendScreen(client.Entity.SpawnPacket, false);
To:
Code:
client.SendScreen(client.Entity.SpawnPacket, true);
01/21/2014 23:28 teroareboss1#8
Ah, i'm not read right

in update packet is:
CurrentClass = 7,
FirstClass = 50,
SecoundClass = 51,
01/22/2014 00:53 littlechris95#9
Quote:
Originally Posted by teroareboss1 View Post
Ah, i'm not read right

in update packet is:
CurrentClass = 7,
FirstClass = 50,
SecoundClass = 51,
Omg! Thanks a lot!!! :handsdown:

Code:
CurrentClass = 7,
FirsRebornClass = 51,
SecondRebornClass = 50,
#Closed