CURSED WONDERGLADE / Maybe bug?


#1

while True:
# Find the nearest item.
# Collect it (if it exists) only if its type isn’t “gem”.
enemy = hero.findNearestItem()
if enemy and enemy.type != “burl”:
hero.attack(enemy)
else:
pass
item = hero.findNearestItem()
if item and item.type != “gem”:
hero.moveXY(item.pos.x, item.pos.y)
# Find the nearest enemy.
# Attack it if it exists and its type isn’t “burl”.


#2

What the problem have you got? I see “Uploading…”, I suppose you tried to upload an image, did you?


#3

i posted photo. Help plz


#4

plz. Help Me. I have no Idea


#5

enemy = hero.findNearestItem()

I’m not sure what the effect when you attack an item.


#6

Thank you very much!!!