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)

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
-
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?
-
-
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 -
just tried the fix asigaru777 said and it does fix the plugin, now it works fine, thanks!!
-
Wulf Community Admin
Attached Files:
-
-
is this going to be the same command as godmode
-
Wulf Community Admin
-
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 -
ok were do I set the permissions?
-
Wulf Community Admin
-
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
-
Wulf Community Admin
-
anyone have the code to get pets working it tells me that the command in game is not there
-
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 ()
-
this isnt working? is it because the update? please advise, i really want this for my server. thanks!
-
Wulf Community Admin
-
[DOUBLEPOST=1439779325][/DOUBLEPOST]where do i enter the permissions? -
Wulf Community Admin
Last edited: Aug 17, 2015 -
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???