diff --git a/igor.lua b/igor.lua index dbdecb7..a1b6bce 100644 --- a/igor.lua +++ b/igor.lua @@ -106,6 +106,7 @@ mobs:register_mob("mobs_npc:igor", { end end + mobs:protect(self, clicker) mobs:capture_mob(self, clicker, 0, 5, 80, false, nil) end, }) diff --git a/npc.lua b/npc.lua index 4921fee..9d1556a 100644 --- a/npc.lua +++ b/npc.lua @@ -93,6 +93,9 @@ mobs:register_mob("mobs_npc:npc", { -- capture npc with net or lasso mobs:capture_mob(self, clicker, 0, 5, 80, false, nil) + -- protect npc with mobs:protector + mobs:protect(self, clicker) + -- by right-clicking owner can switch npc between follow and stand if self.owner and self.owner == name then