Pets

Do you want a pet? This plugin is for you!

Total Downloads: 12,250 - First Release: Mar 22, 2015 - Last Update: Jun 11, 2018

4.63636/5, 44 likes
  1. hi Wulf.
    used you attachment, the NPC activation is working but not the "E" part when you get the Pet.
    im getting this error when pressing "E" on the animal:
    Code:
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.Pets+NpcControl.TryGetNewPet (.BaseNPC npcPet) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Pets+NpcControl.UpdateAction () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Pets+NpcControl.FixedUpdate () [0x00000] in <filename unknown>:0
    (Filename: Line: -1)
     
    Last edited by a moderator: Aug 10, 2015
  2. Code:
    [Oxide] 5:35 AM [Error] Pets plugin failed to compile!
    [Oxide] 5:35 AM [Error] Pets.cs(173,89): error CS1061: Type `BaseNPC' does not contain a definition for `modelPrefab' and no extension method `modelPrefab' of type `BaseNPC' could be found. Are you missing an assembly reference?
     
  3. I have the same error even with newest version from Wulf =((. Don`t want to tame and posts same error to console(.
     
  4. hi !

    >NullReferenceException: Object reference not set to an instance of an object
    >Alway the same with this one :/

    I found that UnityEngine GameObject's ToBaseEntity is null.

    You should change code the 173th line.
    Get().ToBaseEntity().LookupShortPrefabName().Replace("_skin", ""))

    Get().name.Replace("_skin", ""))

    Maybe.
     
    Last edited by a moderator: Aug 11, 2015
  5. just tried the fix asigaru777 said and it does fix the plugin, now it works fine, thanks!!
     
  6. Wulf

    Wulf Community Admin

    Great! Thanks for the fix.
     

    Attached Files:

    • Pets.cs
      File size:
      26.4 KB
      Views:
      68
  7. is this going to be the same command as godmode
     
  8. Wulf

    Wulf Community Admin

    For permissions? No, it uses different permissions, but the base commands are the same, they are Oxide commands.
     
  9. How do you get the needed skill and levels of the skill for each animal also how do you make the pet follow you all the time
     
    Last edited by a moderator: Aug 12, 2015
  10. ok were do I set the permissions?
     
  11. Wulf

    Wulf Community Admin

  12. Its a pity each member needs to be in a group to use this is there no way to say make a default group that auto puts all members into it once they join the server or get rid of that part and just allow member to use it
     
  13. Wulf

    Wulf Community Admin

    The default group for all players is "player", just assign the permissions to it and all players will get it.
     
  14. anyone have the code to get pets working it tells me that the command in game is not there
     
  15. Code:
    NullReferenceException: Object reference not set to an instance of an object
    Oxide.Plugins.Pets+NpcAI.Attack (.BaseCombatEntity ent, Act act)
    Oxide.Plugins.Pets+NpcControl.UpdateAction ()
    Oxide.Plugins.Pets+NpcControl.FixedUpdate ()
     
  16. this isnt working? is it because the update? please advise, i really want this for my server. thanks!
     
  17. Wulf

    Wulf Community Admin

    http://oxidemod.org/threads/pets.7368/page-15#post-119015

    Try the above link, you likely don't have a working version.
     
  18. Wulf

    Wulf Community Admin

    Last edited: Aug 17, 2015
  19. so much to remember... lol.
    ty!
    [DOUBLEPOST=1439788139,1439780263][/DOUBLEPOST]my permission system isnt working on this one... im batting about 60/40 tonight :(

    i typed oxide.grant user BeautyKilled canhorse
    what am i doing wrong???