Right guys maybe people have try to update ot the new swf
(RELEASE63-31605-31594-201102162307_676ce1dc5ef8871e16a3af28d7323892)
seems habbo change alot with the pets system to show the pets in the catalog use this for temp fix:
what we need to fix is
pet training panel DONE
pet in ur hand (Almost done) =]
pet buying DONE
so if people wanne help? post here ur fixes for pets :)
Thanks, and goodluck guys!
oeps forgot something
RequestHandlers[3007] = new RequestHandler(PetRaces);
Update Fully working Pet Command Panel:PHP Code:private void PetRaces()
{
int PetType = Request.PopWiredInt32();
Response.Init(827);
if (PetType == 0) // dogs
{
Response.AppendString("HQFSDQDRDSCPDQCRCSBPCQEPERESEPFKJRBIHSARAQAPAQBPB");
}
else if (PetType == 1) // cats
{
Response.AppendString("IQFSDQDRDSCPDQCRCSBPCQEPERESEPFKJRBIHSARAQAPAQBPB");
}
else if (PetType == 2) // croc
{
Response.AppendString("JPCHIJKPAQARASAPBQBRBSB");
}
else if (PetType == 3) // terreir
{
Response.AppendString("KSAHIJKPAQARA");
}
else if (PetType == 4) // bear
{
Response.AppendString("PAPAHIJK");
}
else if (PetType == 5) // pigs
{
Response.AppendString("QASAHIJKQASAPB");
}
else if (PetType == 6) // lion
{
Response.AppendString("RASAHIJKPAQASB");
}
else if (PetType == 7) // rhino
{
Response.AppendString("SASAHIJPAQARASA");
}
else if (PetType == 8) // spider
{
Response.AppendString("PBQCHIRBSBRCJKPAQARASAPBQB");
}
SendResponse();
}
fix from anthony93260 (Thanks!)PHP Code:private void CommandsPet()
{
//I]b\L^RDHIJKPAQDQARASAPBQBRBSBPCQCRCSCPDKHIJ{{1}}
uint PetID = Request.PopWiredUInt();
Room Room = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
RoomUser PetUser = Room.GetPet(PetID);
if (PetUser == null || PetUser.PetData == null)
return;
GetResponse().Init(605);
GetResponse().AppendUInt(PetID);
int level = PetUser.PetData.Level;
GetResponse().AppendInt32(18);
GetResponse().AppendInt32(0);
GetResponse().AppendInt32(1);
GetResponse().AppendInt32(2);
GetResponse().AppendInt32(3);
GetResponse().AppendInt32(4);
GetResponse().AppendInt32(17);
GetResponse().AppendInt32(5);
GetResponse().AppendInt32(6);
GetResponse().AppendInt32(7);
GetResponse().AppendInt32(8);
GetResponse().AppendInt32(9);
GetResponse().AppendInt32(10);
GetResponse().AppendInt32(11);
GetResponse().AppendInt32(12);
GetResponse().AppendInt32(13);
GetResponse().AppendInt32(14);
GetResponse().AppendInt32(15);
GetResponse().AppendInt32(16);
for (int i = 0; level > i;)
{
i++;
GetResponse().AppendInt32(i);
}
GetResponse().AppendInt32(0);
GetResponse().AppendInt32(1);
GetResponse().AppendInt32(2);
SendResponse();
}
for buying pets
search for in catalog.cs
and replacePHP Code:if (Race.Length != 3)
{
return;
}
PHP Code:if (Race.Length != 1)
{
return;
}






