# Dungeon - Cupboards Of Kithgard

**URL:** <https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145>\
**Category:** Bugs\
**Created:** [January 1, 2017, 1:01am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145 "2017-01-01T01:01:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeroslasherX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/heroslasherx/32/5136_2.png) [@HeroslasherX](https://discourse.codecombat.com/u/HeroslasherX)\
**Post date:** [January 1, 2017, 1:01am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/1 "2017-01-01T01:01:30Z")

</div>

Hi Code Combat Support!

Here’s another bug!  
If you can take look at the below picture, there will be an problem after the execution of my last bit of code.

 ![](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/f/fa503ffc588352b1def0e06d2e305a952e99b6c8.png)

Now I was thinking I would stay in the room with the cupboard.  
If you are wondering if the hero got pushed into the hallway by the skeleton, then I’d have to say that’s not the case.  
My hero literally walked into the hallway yet I don’t see in the code how the hero would want to go there.

 ![](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/1/1d4d4b02421af914677d17c88cf9b399e5c2e16e.png)

I have even tried not using the while loop and still same results.  
Now the… What do you call those blue guys again??? XD  
They didn’t attack so probably anyone newcomer might survive.  
Except if they get hit by spikes… I know I did.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![RenziYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/renziyt/32/5374_2.png) [@RenziYT](https://discourse.codecombat.com/u/RenziYT)\
**Post date:** [January 1, 2017, 2:07am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/2 "2017-01-01T02:07:45Z")

</div>

You have to put the attack in the while loop, so it means when an enemy is around your hero will attack it, and everything else it outside of the loop. so if you did that, it’s right.

---

<div class="post-metadata">

**Author:** ![HeroslasherX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/heroslasherx/32/5136_2.png) [@HeroslasherX](https://discourse.codecombat.com/u/HeroslasherX)\
**Post date:** [January 1, 2017, 2:26am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/3 "2017-01-01T02:26:16Z")

</div>

I guess it’s a bug then XD

---

<div class="post-metadata">

**Author:** ![RenziYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/renziyt/32/5374_2.png) [@RenziYT](https://discourse.codecombat.com/u/RenziYT)\
**Post date:** [January 1, 2017, 2:34am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/4 "2017-01-01T02:34:01Z")

</div>

It’s not a bug, your hero is supposed to be like that, so when you broke that cup, right after that you were supposed to do nothing, so skeleton attacks the ogres.

---

<div class="post-metadata">

**Author:** ![HeroslasherX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/heroslasherx/32/5136_2.png) [@HeroslasherX](https://discourse.codecombat.com/u/HeroslasherX)\
**Post date:** [January 1, 2017, 2:37am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/5 "2017-01-01T02:37:44Z")

</div>

Really? Let me try to specify. If you take a look at the last picture there is a target mark where the hero is heading towards to. I do believe there is no such code that commanded that hero to move there.

---

<div class="post-metadata">

**Author:** ![RenziYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/renziyt/32/5374_2.png) [@RenziYT](https://discourse.codecombat.com/u/RenziYT)\
**Post date:** [January 1, 2017, 2:39am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/6 "2017-01-01T02:39:13Z")

</div>

You moved down two times to the mark.

---

<div class="post-metadata">

**Author:** ![HeroslasherX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/heroslasherx/32/5136_2.png) [@HeroslasherX](https://discourse.codecombat.com/u/HeroslasherX)\
**Post date:** [January 1, 2017, 2:49am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/7 "2017-01-01T02:49:53Z")

</div>

![](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/f/fdea2d2301d61e878a733a768af030c3c714aaa4.png)  
 ![](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/3/33791dca2d06e8041a443c2385e2b3ba52b44cee.png)  
If I move three times I’ll walk into a wall and if I walk once I’ll attack the cupboard from the hallway.  
So if you mean that I would return to the original spot before the hero.attack(cupboard); , that does not seem to be the case.

---

<div class="post-metadata">

**Author:** ![taylerzy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/taylerzy/32/5214_2.png) [@taylerzy](https://discourse.codecombat.com/u/taylerzy)\
**Post date:** [January 1, 2017, 3:27am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/8 "2017-01-01T03:27:11Z")

</div>

Hey, just wanted to let you know that you can use `hero.moveDown(2);` to move down two spaces instead of just one. I think this is a new thing that was released while you were gone.

The correct amount of moveDown is 2. Not sure why it would move back up (yep, sounds like a glitch), but as long as it’s setting the goal to success, probably not a big deal. When I use the exact same gear, my hero doesn’t move up after attacking the Cupboard. This usually indicates that it’s something having to do with your gear.

---

<div class="post-metadata">

**Author:** ![HeroslasherX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/heroslasherx/32/5136_2.png) [@HeroslasherX](https://discourse.codecombat.com/u/HeroslasherX)\
**Post date:** [January 1, 2017, 4:14am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/9 "2017-01-01T04:14:56Z")

</div>

Nice investigation skills man XD.

---

<div class="post-metadata">

**Author:** ![Ty\_Ler](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ty_ler/32/5322_2.png) [@Ty\_Ler](https://discourse.codecombat.com/u/Ty_Ler)\
**Post date:** [January 1, 2017, 12:26pm UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/10 "2017-01-01T12:26:37Z")

</div>

I dont really know if its a glitch but I replayed one of these levels with my current gear. When I first did these levels I had to use the attack method twice on an enemy. When I used my current sword that can now one hit an enemy he also tried walking into the wall.

You have to realize these levels were made with the intentions of new players and weak gear. As you move on to the forest you will soon have to start using algorithms to check and see if their are any enemies before you attack.

```python
if Enemy:
   hero.attack(Enemy)

```

If you dont like that your hero is walking into the wall. Look to see if their is even a “Cupboard” before attacking.

---

<div class="post-metadata">

**Author:** ![HeroslasherX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/heroslasherx/32/5136_2.png) [@HeroslasherX](https://discourse.codecombat.com/u/HeroslasherX)\
**Post date:** [January 1, 2017, 4:25pm UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/11 "2017-01-01T16:25:27Z")

</div>

@Ty_Ler Looks like your right!!!

 ![](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/6/62369950c94c88f20180bd5dbc2566eb88003769.png)

I used all low level equipmet!!!  
Except for the other equipment types people would get at higher levels XD

---

<div class="post-metadata">

**Author:** ![CHECHA1232](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@CHECHA1232](https://discourse.codecombat.com/u/CHECHA1232)\
**Post date:** [April 29, 2017, 4:54am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/12 "2017-04-29T04:54:32Z")

</div>

you could do it with ashort sword

---

<div class="post-metadata">

**Author:** ![CHECHA1232](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@CHECHA1232](https://discourse.codecombat.com/u/CHECHA1232)\
**Post date:** [April 29, 2017, 4:55am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/13 "2017-04-29T04:55:04Z")

</div>

you could also do it with a boss star

---

<div class="post-metadata">

**Author:** ![Hellenar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/hellenar/32/9100_2.png) [@Hellenar](https://discourse.codecombat.com/u/Hellenar)\
**Post date:** [April 29, 2017, 5:10am UTC](https://discourse.codecombat.com/t/dungeon-cupboards-of-kithgard/10145/14 "2017-04-29T05:10:51Z")

</div>

Not sure what this has to do with this topic.  
Also try not to revive dead threads 🙂
