Thread: Hydrix Pet Interface

Results 1 to 7 of 7
  1. #1 Hydrix Pet Interface 
    Donator

    Join Date
    Nov 2017
    Posts
    268
    Thanks given
    37
    Thanks received
    18
    Rep Power
    19
    I've almost got it fully functional. But am trying to sort one more issue.

    There's a couple pets that are giving me shit. When the pet data is like this;
    SKOTOS(1, 29320, 29320, -1, 38671, 38671, -1, 0.0, 1, -1, -1),

    It says a game message saying "you have no pet selected"

    & when it's like this;
    SKOTOS(1, 29320, 29320, -1, 38671, 38671, -1, 0.0, 1),

    It will spawn the previous pet you had out. Goal here is to get skotos to come out when called, instead of being told I have no pet selected or spawning last previous pet.

    private Pets(int type, int babyItemId, int grownItemId, int overgrownItemId, int babyNpcId, int grownNpcId, int overgrownNpcId, double growthRate, int summoningLevel, int... food) {
    this.petType = type;
    this.babyItemId = babyItemId;
    this.grownItemId = grownItemId;
    this.overgrownItemId = overgrownItemId;
    this.babyNpcId = babyNpcId;
    this.grownNpcId = grownNpcId;
    this.overgrownNpcId = overgrownNpcId;
    this.growthRate = growthRate;
    this.summoningLevel = summoningLevel;
    this.food = food;
    }
    Attached image
    Reply With Quote  
     

  2. #2  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Code:
    private Pets(int type, int babyItemId, int grownItemId, int overgrownItemId, int babyNpcId, int grownNpcId, int overgrownNpcId, double growthRate, int summoningLevel, int... food) {
    this.petType = type;
    this.babyItemId = babyItemId;
    this.grownItemId = grownItemId;
    this.overgrownItemId = overgrownItemId;
    this.babyNpcId = babyNpcId;
    this.grownNpcId = grownNpcId;
    this.overgrownNpcId = overgrownNpcId;
    this.growthRate = growthRate;
    this.summoningLevel = summoningLevel;
    this.food = food;
    }
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Nov 2017
    Posts
    268
    Thanks given
    37
    Thanks received
    18
    Rep Power
    19
    Quote Originally Posted by The Plateau View Post
    Code:
    private Pets(int type, int babyItemId, int grownItemId, int overgrownItemId, int babyNpcId, int grownNpcId, int overgrownNpcId, double growthRate, int summoningLevel, int... food) {
    this.petType = type;
    this.babyItemId = babyItemId;
    this.grownItemId = grownItemId;
    this.overgrownItemId = overgrownItemId;
    this.babyNpcId = babyNpcId;
    this.grownNpcId = grownNpcId;
    this.overgrownNpcId = overgrownNpcId;
    this.growthRate = growthRate;
    this.summoningLevel = summoningLevel;
    this.food = food;
    }
    Can you elaborate?
    Attached image
    Reply With Quote  
     

  4. #4  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Code:
    private Pets(int type, int babyItemId, int grownItemId, int overgrownItemId, int babyNpcId, int grownNpcId, int overgrownNpcId, double growthRate, int summoningLevel, int... food) {
        this.petType = type;
        this.babyItemId = babyItemId;
        this.grownItemId = grownItemId;
        this.overgrownItemId = overgrownItemId;
        this.babyNpcId = babyNpcId;
        this.grownNpcId = grownNpcId;
        this.overgrownNpcId = overgrownNpcId;
        this.growthRate = growthRate;
        this.summoningLevel = summoningLevel;
        if (food.length > 0) {
            this.food = food;
        } else {
            this.food = new int[] {-1};
        }
    }
    Try that
    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    Nov 2017
    Posts
    268
    Thanks given
    37
    Thanks received
    18
    Rep Power
    19
    Quote Originally Posted by Armo View Post
    Code:
    private Pets(int type, int babyItemId, int grownItemId, int overgrownItemId, int babyNpcId, int grownNpcId, int overgrownNpcId, double growthRate, int summoningLevel, int... food) {
        this.petType = type;
        this.babyItemId = babyItemId;
        this.grownItemId = grownItemId;
        this.overgrownItemId = overgrownItemId;
        this.babyNpcId = babyNpcId;
        this.grownNpcId = grownNpcId;
        this.overgrownNpcId = overgrownNpcId;
        this.growthRate = growthRate;
        this.summoningLevel = summoningLevel;
        if (food.length > 0) {
            this.food = food;
        } else {
            this.food = new int[] {-1};
        }
    }
    Try that
    Still says same thing.
    Attached image
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Nov 2017
    Posts
    268
    Thanks given
    37
    Thanks received
    18
    Rep Power
    19
    Bump
    Attached image
    Reply With Quote  
     

  7. #7  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    You may want to investigate first why is there 11 parameters right here when the function only has 10


    Code:
     SKOTOS(1, 29320, 29320, -1, 38671, 38671, -1, 0.0, 1, -1, -1)
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Boss Pets: NPC, Drop & Interface [718]
    By zabix18 in forum Snippets
    Replies: 30
    Last Post: 01-11-2020, 10:04 PM
  2. Summoning pets w/ an Interface
    By StrongSide in forum Help
    Replies: 4
    Last Post: 06-22-2015, 04:28 AM
  3. Replies: 135
    Last Post: 08-13-2012, 02:39 AM
  4. Pet Interfaces
    By Nomac in forum Requests
    Replies: 4
    Last Post: 03-24-2012, 09:18 PM
  5. Summoning pet controll interface
    By Snow Cat123 in forum Graphics
    Replies: 3
    Last Post: 08-25-2009, 12:39 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •