Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

[Adventurer] Arrowproof Wolf


Hi! Here is the new level about pets and also it’s a mastery level about collecting items: Arrowproof Wolf

arrow in back

The wolf cub is one of the free pets and it can catch arrows or spears (wolves love catch sticks too). This ability works “passively” – the pet catches near arrows if it has not been commanded before.


Good level but sometime the pet doesn’t catch the arrow and I die and is the pet ment to follow my hero because in this level the pet doesn’t follow my hero.


Have you woken up the pet?


Cool ability!

Can we get some more info in the descriptions of the pet abilities? For example, form testing I think the cougar’s chase ability has a cool down of 15 seconds but I’m not sure if it has a range.

Also when I try to use it with a specific name like"Mog")

It doesn’t work, it gievs a refeance error saying chase is not defined.

Also, it doesn’t seem to work on some enemies that I think it should. Headhunters seem to ignore it even though my hero has more than 10 times as much health as them.


Doesn’t work for me at all. I wake him up and he starts following me around, but he just ignores the arrows. I even switched to Tharin with no Ring of Speed.

hero.moveXY(12, 34)
    item = hero.findNearestItem()


My case is the same as Dwhittaker. I even tried the hint to make the wolf actively catch the arrows but that didn’t work either. He doesn’t catch the first one that he’s awake and following me for so i don’t think it’s a cool down issue.


Try to use moveXY.


The problem can be with the range - try to use moveXY instead move. What the problem with the active usage of the ability?


OK, so I switched to moveXY. He catches most arrows now. I got hit once, and another time the arrow missed me because I changed direction at just the right time. But I was able to complete the level now.

Would be cool if there was some type of animation of the wolf leaping to catch the arrow rather than it just vanishing.


It could be a problem.


Yes I have.


It possible to past this level without pets help

    item = hero.findNearestItem()
    hero.moveXY(item.pos.x, item.pos.y)


Yep, I know. Also mushrooms are carryable :wink:


hm, could you show your code?



# Collect mushrooms.
# First, come to the wolf pet and wake up it (say).
hero.moveXY(pet.pos.x, pet.pos.y)
pet.say("Hi little wolf")
# Next collect mushrooms just usual items.
    pet.moveXY(hero.pos.x, hero.pos.y)
    item = hero.findNearestItem()
    if item:

I put pet.moveXY(hero.pos.x, hero.pos.y) because my pet won’t follow me.


she can’t wake up herself :slight_smile: maybe try

hero.say("Hi little wolf")

oh, and about the pet.moveXY(), once you give commands to your pet it will stop its default behavior of catching arrows or whatever and do what you told it to do (move to a spot)


Better to use pet.on(‘hear’, onHear)

And in the onHear function write pets actions


I’ve added some fixes. I hope it will help.


It was working perfect before for me, still seems good.


Thank guy. Sorry I haven’t been on Codecombat Discourse for a long time.