# Listen to the paladin and fetch the right key.
def onHear(event):
# The pet can find the paladin and keys.
paladinUnit = pet.findNearestByType("paladin")
goldKey = pet.findNearestByType("gold-key")
silverKey = pet.findNearestByType("silver-key")
bronzeKey = pet.findNearestByType("bronze-key")
# If event.speaker is paladinUnit:
if event.speaker == paladinUnit:
# If event.message is "Gold":
if event.message == "Gold":
# The pet should fetch the gold key.
pet.fetch("gold-key")
# If event.message is "Silver":
if event.message == "Silver":
# The pet should fetch the silver key.
pet.fetch("silver-key")
# If event.message is "Bronze":
if event.message == "Bronze":
# The pet should fetch the bronze key.
pet.fetch("bronze-key")
pet.on("hear", onHear)
Use a pet that is on the ground
why?
20 characterssssss
I don’t know just use one on the ground then it should work. Your code is fine
No it doesn’t work.
20 chars
I don’t know then. it should work
What pet did you use @Archion
Where is the level? can you post a link
I used a griffin baby pet
Ok
2000000 characters
Did you win?
Yea 20000000000000000 chars
Could you help me
20000000 character
maybe this is a bug for you. You should report it
oh no a bug!
this is a #bugs 200000000000000000 chars