# Stage: DESERT Level: LURKERS

**URL:** <https://discourse.codecombat.com/t/stage-desert-level-lurkers/2913>\
**Category:** Uncategorized\
**Created:** [February 28, 2015, 7:02pm UTC](https://discourse.codecombat.com/t/stage-desert-level-lurkers/2913 "2015-02-28T19:02:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fantailfishy](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@fantailfishy](https://discourse.codecombat.com/u/fantailfishy)\
**Post date:** [February 28, 2015, 7:02pm UTC](https://discourse.codecombat.com/t/stage-desert-level-lurkers/2913/1 "2015-02-28T19:02:52Z")

</div>

Continuing the discussion from [Help with my lurkers code: : -]([Help with my lurkers code: : -\](http://discourse.codecombat.com/t/help-with-my-lurkers-code/2336)):

> [@Help with my lurkers code: : -\\](https://discourse.codecombat.com/t/help-with-my-lurkers-code/2336/1):
>
> So I have been stuck on the lurkers level for to many hours to count. I have tried and lost so much code tinkering with it. So I would love to catch some advice and figure out where my code goes wrong.
> 
> * * *
> 
> ```python
> enemies = self.findEnemies()
> enemyIndex = 0
> 
> "#"Wrap this section in a while loop to iterate over all enemies.
> while enemyIndex &lt; 3:    
> enemy = enemies[enemyIndex]
> if enemy.type == 'shaman':
> while enemy.health &gt; 0:
> self.attack(enemy)   
>         
> else
> enemyIndex +=1 
> 
> ```
> 
> * * *
> 
> Can I get some advice friends?

---

<div class="post-metadata">

**Author:** ![fantailfishy](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@fantailfishy](https://discourse.codecombat.com/u/fantailfishy)\
**Post date:** [February 28, 2015, 7:03pm UTC](https://discourse.codecombat.com/t/stage-desert-level-lurkers/2913/2 "2015-02-28T19:03:10Z")

</div>

the code that I used was:

enemy = self.findEnemies()  
enemyIndex = 0

loop:  
if enemy:  
self.moveXY(45, 44)  
self.attack(“Ghuk”)  
self.attack(“Ghuk”)  
self.attack(“Ghuk”)  
self.moveXY(43, 23)  
self.attack(“Turann”)  
self.attack(“Turann”)  
self.attack(“Turann”)  
self.moveXY(25, 37)  
self.attack(“Nazgareth”)  
self.attack(“Nazgareth”)  
self.attack(“Nazgareth”)

---

<div class="post-metadata">

**Author:** ![Feinty](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/feinty/32/1869_2.png) [@Feinty](https://discourse.codecombat.com/u/Feinty)\
**Post date:** [February 28, 2015, 9:22pm UTC](https://discourse.codecombat.com/t/stage-desert-level-lurkers/2913/3 "2015-02-28T21:22:39Z")

</div>

First please read the FAQ on how to post your code correctly

* * *

OK other then that I see you are using python so you have to indent your code  
Besides this for us to diagnose your problem you have to tell us what the problem is

---

<div class="post-metadata">

**Author:** ![Vlevo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/vlevo/32/2074_2.png) [@Vlevo](https://discourse.codecombat.com/u/Vlevo)\
**Post date:** [March 1, 2015, 5:41am UTC](https://discourse.codecombat.com/t/stage-desert-level-lurkers/2913/4 "2015-03-01T05:41:57Z")

</div>

Yes, you can “use” any code you want but if you want to learn something it would probably be best to write the code the way the level suggests you write it. and if you don’t know what that is, then “reload” so you can get the original comments back, then do as they say…)
