Hello Ragezone! Todayi packetlogged and coded these code for people who wanted the pets code!
FIRST UPDATE YOUR CATALOGUE IF YOU DIDNT!
http://forum.ragezone.com/f353/show-...nt-r63-729441/
ProofPic:
http://i761.photobucket.com/albums/x...wl/petsfix.png
Open Pet.cs
Search for the following void:
Replace the whole void with:
Code:
public ServerMessage SerializeInfo()
{
ServerMessage Nfo = new ServerMessage(601);
Nfo.AppendUInt(PetId);
Nfo.AppendStringWithBreak(Name);
Nfo.AppendInt32(Level);
Nfo.AppendInt32(MaxLevel);
Nfo.AppendInt32(Expirience);
Nfo.AppendInt32(ExpirienceGoal);
Nfo.AppendInt32(Energy);
Nfo.AppendInt32(MaxEnergy);
Nfo.AppendInt32(Nutrition);
Nfo.AppendInt32(MaxNutrition);
Nfo.AppendStringWithBreak(Color.ToLower());
Nfo.AppendInt32(Respect);
Nfo.AppendUInt(OwnerId);
Nfo.AppendInt32(Age);
Nfo.AppendStringWithBreak(OwnerName);
return Nfo;
}
Search for the following void:
Code:
SerializeInventory(ServerMessage Message)
Replace the whole void with:
Code:
public void SerializeInventory(ServerMessage Message)
{
Message.AppendUInt(PetId);
Message.AppendStringWithBreak(Name);
Message.AppendUInt(Type);
Message.AppendInt32(int.Parse(Race));
Message.AppendString(Color.ToLower());
}
Dont forget to push the tanks button!