Pets Wont Dry Up Fix

Results 1 to 12 of 12
  1. #1
    RaGEZONER maxcloud is offline
    MemberRank
    Feb 2009 Join Date
    312Posts

    Pets Wont Dry Up Fix

    I'm sure some of you have noticed that most of the v83 sources don't have Item Expiration except Moople. Here is a quick fix so the pet's do not dry up anymore.

    Replace your updatePet with this one.

    Code:
    public static MaplePacket updatePet(MaplePet pet) {
            MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
            mplew.writeShort(SendPacketOpcode.MODIFY_INVENTORY_ITEM.getValue());
            mplew.write(0);
            mplew.write(2);
            mplew.write(3);
            mplew.write(5);
            mplew.write(pet.getPosition());
            mplew.writeShort(0);
            mplew.write(5);
            mplew.write(pet.getPosition());
            mplew.write(0);
            mplew.write(3);
            mplew.writeInt(pet.getItemId());
            mplew.write(1);
            mplew.writeInt(pet.getUniqueId());
            mplew.writeInt(0);
            mplew.write(HexTool.getByteArrayFromHexString("00 40 6F E5 0F E7 17 02"));
            String petname = pet.getName();
            if (petname.length() > 13) {
                petname = petname.substring(0, 13);
            }
            mplew.writeAsciiString(petname);
            for (int i = petname.length(); i < 13; ++i) {
                mplew.write(0);
            }
            mplew.write(pet.getLevel());
            mplew.writeShort(pet.getCloseness());
            mplew.write(pet.getFullness());
            mplew.write(0);
            mplew.write(ITEM_MAGIC);
            mplew.writeInt(getItemTimestamp(System.currentTimeMillis()));
            mplew.write(1);
            mplew.writeInt(0);
            mplew.write(HexTool.getByteArrayFromHexString("50 46 00 00 00 00"));
            return mplew.getPacket();
        }
    Special Thanks to Generic for helping me understand packets a little better.
    Last edited by maxcloud; 25-09-10 at 12:07 PM. Reason: Spelling mistake


  2. #2
    Proficient Member xGiL is offline
    MemberRank
    Aug 2009 Join Date
    167Posts

    Re: Pets Wont Dry Up Fix

    Nice fix :).

  3. #3
    Infraction Banned rice is offline
    MemberRank
    Nov 2009 Join Date
    2,905Posts

    Re: Pets Wont Dry Up Fix

    just writing time?

  4. #4
    while(true) spam(); kevintjuh93 is offline
    MemberRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,119Posts

    Re: Pets Wont Dry Up Fix

    So you got this from my source? lolwut

  5. #5
    RaGEZONER maxcloud is offline
    MemberRank
    Feb 2009 Join Date
    312Posts

    Re: Pets Wont Dry Up Fix

    Quote Originally Posted by kevintjuh93 View Post
    So you got this from my source? lolwut
    Actually, No. If this is in your source, I must apologize. I'm not trying to take credit for anyone's work.

  6. #6
    I'm sexy and I know it :) Deagan ツ is offline
    MemberRank
    Oct 2008 Join Date
    clubs ;\Location
    1,317Posts

    Re: Pets Wont Dry Up Fix

    Quote Originally Posted by maxcloud View Post
    Actually, No. If this is in your source, I must apologize. I'm not trying to take credit for anyone's work.
    asl?

  7. #7
    Member SeanDev is offline
    MemberRank
    Jun 2010 Join Date
    wizet.orgLocation
    92Posts

    Re: Pets Wont Dry Up Fix

    When you buy a pet, it comes out as dried up, but you can still use it.

  8. #8
    RaGEZONER maxcloud is offline
    MemberRank
    Feb 2009 Join Date
    312Posts

    Re: Pets Wont Dry Up Fix

    Quote Originally Posted by deagan View Post
    asl?
    LOL 92, Yes please, Your basement. You fat?

    Quote Originally Posted by SeanDev View Post
    When you buy a pet, it comes out as dried up, but you can still use it.
    Yes, but after awhile it dries up, and You cannot put the pet away.

  9. #9
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: Pets Wont Dry Up Fix

    Quote Originally Posted by maxcloud View Post
    LOL 92, Yes please, Your basement. You fat?



    Yes, but after awhile it dries up, and You cannot put the pet away.
    The 'sex' in ASL pertains to gender...

  10. #10
    while(true) spam(); kevintjuh93 is offline
    MemberRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,119Posts

    Re: Pets Wont Dry Up Fix

    Quote Originally Posted by SeanDev View Post
    When you buy a pet, it comes out as dried up, but you can still use it.
    What? The client isn't even sending a packet when it is dried up (spawn packet).

  11. #11
    Member BillowThisMe is offline
    MemberRank
    Nov 2012 Join Date
    92Posts

    Re: Pets Wont Dry Up Fix

    This working on v97 too?

  12. #12
    Account Upgraded | Title Enabled! AristoCat is offline
    MemberRank
    Apr 2012 Join Date
    947Posts

    Re: Pets Wont Dry Up Fix

    Quote Originally Posted by BillowThisMe View Post
    This working on v97 too?
    Can't you read he just said V83? It won't help on V97 because the few source that are released for that version don't have pets working.



Advertisement