Structure SerializePetInCatalogue

Results 1 to 8 of 8
  1. #1
    Enthusiast xLiionel is offline
    MemberRank
    Sep 2010 Join Date
    36Posts

    Structure SerializePetInCatalogue

    Hello guys

    Tired of error occurred when you went to see this pet, report it to an administrator!?

    easy!

    search void PetRaces() in catalog.cs (requests) and replace with

    Code:
    internal void PetRaces()
            {
                string PetType = Request.PopFixedString();
    
                int PetRaces = 0, Pet = 0;
                GetResponse().Init(Outgoing.PetRace);
                GetResponse().AppendStringWithBreak(PetType);
                switch (PetType)
                {
                    case "a0 pet0":
                        PetRaces = 25;
                        Pet = 0;
                        break;
    
                    case "a0 pet1":
                        PetRaces = 25;
                        Pet = 1;
                        break;
    
                    case "a0 pet2":
                        PetRaces = 12;
                        Pet = 2;
                        break;
    
                    case "a0 pet3":
                        PetRaces = 7;
                        Pet = 3;
                        break;
    
                    case "a0 pet4":
                        PetRaces = 4;
                        Pet = 4;
                        break;
    
                    case "a0 pet5":
                        PetRaces = 7;
                        Pet = 5;
                        break;
    
                    case "a0 pet6":
                        PetRaces = 13;
                        Pet = 6;
                        break;
    
                    case "a0 pet7":
                        PetRaces = 8;
                        Pet = 7;
                        break;
    
                    case "a0 pet8":
                        PetRaces = 13;
                        Pet = 8;
                        break;
    
                    case "a0 pet9":
                        PetRaces = 14;
                        Pet = 9;
                        break;
    
                    case "a0 pet10":
                        PetRaces = 1;
                        Pet = 10;
                        break;
    
                    case "a0 pet11":
                        PetRaces = 14;
                        Pet = 11;
                        break;
    
                    case "a0 pet12":
                        PetRaces = 8;
                        Pet = 12;
                        break;
    
                    case "a0 pet13": // Caballo - Horse
                        PetRaces = 17;
                        Pet = 13;
                        break;
    
    
                    case "a0 pet14":
                        PetRaces = 9;
                        Pet = 14;
                        break;
    
                    case "a0 pet15":
                        PetRaces = 16;
                        Pet = 15;
                        break;
    
                    case "a0 pet16": // MosterPlant
                        PetRaces = 18;
                        Pet = 16;
                        break;
    
                    case "a0 pet17": // bunnyeaster
                        PetRaces = 19;
                        Pet = 17;
                        break;
    
                    case "a0 pet18": // bunnydepressed
                        PetRaces = 20;
                        Pet = 18;
                        break;
    
                    case "a0 pet19": // bunnylove
                        PetRaces = 21;
                        Pet = 19;
                        break;
    
                    case "a0 pet20": // MosterPlant
                        PetRaces = 22;
                        Pet = 20;
                        break;
    
                    case "a0 pet21": // pigeonevil
                        PetRaces = 23;
                        Pet = 21;
                        break;
    
                    case "a0 pet22": //pigeongood
                        PetRaces = 24;
                        Pet = 22;
                        break;
                    case "a0 pet23":
                        PetRaces = 25;
                        Pet = 23;
                        break;
                }
                GetResponse().AppendInt32(PetRaces);
                for (int i = 0; i < PetRaces; i++)
                {
                    GetResponse().AppendInt32(Pet);
                    GetResponse().AppendInt32(i);
                    GetResponse().AppendInt32(i);
                    GetResponse().AppendBoolean(true);
                    GetResponse().AppendBoolean(false);
                }
                /*if (PetRace.RaceGotRaces(petid))
                {
                    List<PetRace> Races = PetRace.GetRacesForRaceId(petid);
                    GetResponse().AppendInt32(Races.Count);
                    foreach (PetRace r in Races)
                    {
                        GetResponse().AppendInt32(petid); // pet id
                        GetResponse().AppendInt32(r.Color1); // color1
                        GetResponse().AppendInt32(r.Color2); // color2
                        GetResponse().AppendBoolean(r.Has1Color); // has1color
                        GetResponse().AppendBoolean(r.Has2Color); // has2color
                    }
                }
                else
                {
                    Session.SendNotif("¡Ha ocurrido un error cuando ibas a ver esta mascota, repórtalo a un administrador!");
                    GetResponse().AppendInt32(0);
                }*/
                SendResponse();
            }

    Pictures?

    here..
    here.png


    Sorry for my bad english i'm mexicanow:3


  2. #2
    Eye Eye Capt'n Spheral is offline
    MemberRank
    May 2010 Join Date
    TumptonshireLocation
    2,488Posts

    Re: Structure SerializePetInCatalogue

    Tell me how to get the thing in the left with your username please x]
    (does it got something to do with adding packets and structure?)
    // Awesome release x]

  3. #3
    i am a person Riley H is offline
    MemberRank
    Mar 2010 Join Date
    United StatesLocation
    203Posts

    Re: Structure SerializePetInCatalogue

    Great release. Myself and and some friends of mine have been looking for this fix.

  4. #4
    Enthusiast xLiionel is offline
    MemberRank
    Sep 2010 Join Date
    36Posts

    Re: Structure SerializePetInCatalogue

    is a packet that is sent to start the SendCampaingData () my holo is Haddoz

  5. #5
    Eye Eye Capt'n Spheral is offline
    MemberRank
    May 2010 Join Date
    TumptonshireLocation
    2,488Posts

    Re: Structure SerializePetInCatalogue

    Quote Originally Posted by xLiionel View Post
    is a packet that is sent to start the SendCampaingData () my holo is Haddoz
    Can you explain please?

  6. #6
    Enthusiast xLiionel is offline
    MemberRank
    Sep 2010 Join Date
    36Posts

    Re: Structure SerializePetInCatalogue

    Is Here..

    Response.Init(Outgoing.LastLogin);
    Response.AppendInt32(0);
    SendResponse();

  7. #7
    Eye Eye Capt'n Spheral is offline
    MemberRank
    May 2010 Join Date
    TumptonshireLocation
    2,488Posts

    Re: Structure SerializePetInCatalogue

    Not at all, lol. I need to know more on how to add it dude x]
    Last edited by Spheral; 10-03-13 at 09:14 PM.

  8. #8
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: Structure SerializePetInCatalogue

    Ow, AWESOME!!!
    Thanks man, I'm very apreciated.




Advertisement