# \[Solved\] Teleport Lasso Help

**URL:** <https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293>\
**Category:** Solved\
**Created:** [March 28, 2018, 12:35pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293 "2018-03-28T12:35:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![harmony](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@harmony](https://discourse.codecombat.com/u/harmony)\
**Post date:** [March 28, 2018, 12:35pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/1 "2018-03-28T12:35:43Z")

</div>

Can’t defeat 4 ogres…

 ![01](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/aa6805c56b259b0b354390efc826189ab65800a8.jpg)

---

<div class="post-metadata">

**Author:** ![MunkeyShynes](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/munkeyshynes/32/9277_2.png) [@MunkeyShynes](https://discourse.codecombat.com/u/MunkeyShynes)\
**Post date:** [March 28, 2018, 12:58pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/2 "2018-03-28T12:58:11Z")

</div>

Your code is fine. You need a faster sword. Not necessarily a more powerful one, you need a faster one.

---

<div class="post-metadata">

**Author:** ![harmony](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@harmony](https://discourse.codecombat.com/u/harmony)\
**Post date:** [March 28, 2018, 3:34pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/3 "2018-03-28T15:34:11Z")

</div>

Sloved~ Thanks. I always choose the wrong gear… have no sense… haha

---

<div class="post-metadata">

**Author:** ![bennypr0fane](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bennypr0fane/32/8337_2.png) [@bennypr0fane](https://discourse.codecombat.com/u/bennypr0fane)\
**Post date:** [May 5, 2018, 11:39pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/4 "2018-05-05T23:39:50Z")

</div>

I’m using the same code:

```python
while True:
    enemy = hero.findNearestEnemy()
    distance = hero.distanceTo(enemy)
    # If enemy.type is "munchkin"
    # AND the distance to it is less than 20m
    if enemy.type == "munchkin" and distance < 20:
        # Then attack it.
        hero.attack(enemy)

```

AND the **rune sword,** but goals are still incomplete. Is the rune sword still not fast enough?  
How do I know which is fast enough? @MunkeyShynes, And how did _you_ find out that speed was of the essence (it’s not really mentioned anywhere)?

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [May 6, 2018, 1:04am UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/5 "2018-05-06T01:04:20Z")

</div>

Rune sword is one of the slowest weapons in the game, use weapons like the sword of the forgotten.

---

<div class="post-metadata">

**Author:** ![bennypr0fane](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bennypr0fane/32/8337_2.png) [@bennypr0fane](https://discourse.codecombat.com/u/bennypr0fane)\
**Post date:** [May 6, 2018, 11:21pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/6 "2018-05-06T23:21:18Z")

</div>

Of the weapons I can currently buy, there are eleven (11) that have less DPS than the rune sword and only two have more.  
Rune sword has 192.2 DPS! How on earth is that still too slow? Is this level maybe ridiculously over-the-top difficult?

---

<div class="post-metadata">

**Author:** ![Seojin\_Roy\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/seojin_roy_lee/32/23539_2.png) [@Seojin\_Roy\_Lee](https://discourse.codecombat.com/u/Seojin_Roy_Lee)\
**Post date:** [May 6, 2018, 11:52pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/7 "2018-05-06T23:52:25Z")

</div>

And it’s attack points is higher. when it attacks, it takes more than 1 second. I don’t see any slower sword

---

<div class="post-metadata">

**Author:** ![bennypr0fane](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bennypr0fane/32/8337_2.png) [@bennypr0fane](https://discourse.codecombat.com/u/bennypr0fane)\
**Post date:** [May 7, 2018, 9:35am UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/8 "2018-05-07T09:35:48Z")

</div>

I don’t get it. Swords have three values, right (I can see only two of them in the gear shop)?  
Damage, damage per second (DPS) and range?  
Is attack points equivalent to damage (and if not, how do you know it?)?  
So the more powerful a sword, the slower it is? I thought the speed of a sword was measured by its DPS…

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [May 7, 2018, 9:44am UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/9 "2018-05-07T09:44:04Z")

</div>

No, to calculate the # of hits in a second, the formula is this, `DPS/Attack damage per hit` so for the runesword, the calculation will be, `192.2/228.57` which equals to `0.840880255501597...` so the runesword has an attack cooldown of more than one seconds which is generally very slow. Try using weapons that have a `hits per second` of at least 2. Use the formula above to calculate `hits per second` DPS just means damage per second and it will not affect the speed of the sword. Or if you try to think it more simpler, if the damage is larger than DPS, that means it has a cooldown of more than a second. If DPS is more than double the damage, it means that it can hit at least 2 times in a second which is relatively fast. Hope this helps @bennypr0fane!

---

<div class="post-metadata">

**Author:** ![Seojin\_Roy\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/seojin_roy_lee/32/23539_2.png) [@Seojin\_Roy\_Lee](https://discourse.codecombat.com/u/Seojin_Roy_Lee)\
**Post date:** [May 7, 2018, 11:01pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/10 "2018-05-07T23:01:51Z")

</div>

To calculate how long it takes to attack, you need `Attack/DPS` and in this case, it would be 1.18990634755 seconds delay for each attack.

---

<div class="post-metadata">

**Author:** ![Seojin\_Roy\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/seojin_roy_lee/32/23539_2.png) [@Seojin\_Roy\_Lee](https://discourse.codecombat.com/u/Seojin_Roy_Lee)\
**Post date:** [May 7, 2018, 11:02pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/11 "2018-05-07T23:02:35Z")

</div>

also, sword of temple guard is good, or sword of forgotten.

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [May 7, 2018, 11:08pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/12 "2018-05-07T23:08:11Z")

</div>

Those are pretty expensive

---

<div class="post-metadata">

**Author:** ![Seojin\_Roy\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/seojin_roy_lee/32/23539_2.png) [@Seojin\_Roy\_Lee](https://discourse.codecombat.com/u/Seojin_Roy_Lee)\
**Post date:** [May 7, 2018, 11:09pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/13 "2018-05-07T23:09:22Z")

</div>

I know but I got the sword of forgotten before I finished forest.

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [May 7, 2018, 11:15pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/14 "2018-05-07T23:15:21Z")

</div>

I got the temple guard before finishing forest.

---

<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:** [May 8, 2018, 12:07am UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/15 "2018-05-08T00:07:44Z")

</div>

Short Sword seems nice, probably made for munchkin slaying.

---

<div class="post-metadata">

**Author:** ![Seojin\_Roy\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/seojin_roy_lee/32/23539_2.png) [@Seojin\_Roy\_Lee](https://discourse.codecombat.com/u/Seojin_Roy_Lee)\
**Post date:** [May 8, 2018, 12:41am UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/16 "2018-05-08T00:41:10Z")

</div>

kithsteel blade is better than edge of darkness in damage per second and range, but the difference in gems is 4000, and edge of darkness is more expensive

---

<div class="post-metadata">

**Author:** ![bennypr0fane](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bennypr0fane/32/8337_2.png) [@bennypr0fane](https://discourse.codecombat.com/u/bennypr0fane)\
**Post date:** [May 9, 2018, 8:12pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/17 "2018-05-09T20:12:57Z")

</div>

> [@Chaboi\_3000](#):
>
> No, to calculate the # of hits in a second, the formula is this, `DPS/Attack damage per hit` so for the runesword, the calculation will be, `192.2/228.57` which equals to `0.840880255501597...` so the runesword has an attack cooldown of more than one seconds which is generally very slow. Try using weapons that have a `hits per second` of at least 2. Use the formula above to calculate `hits per second` DPS just means damage per second and it will not affect the speed of the sword.

Thanks for these hints. How did you find out these things?

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [May 9, 2018, 9:07pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/18 "2018-05-09T21:07:44Z")

</div>

Um… I guess my math.

---

<div class="post-metadata">

**Author:** ![bennypr0fane](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bennypr0fane/32/8337_2.png) [@bennypr0fane](https://discourse.codecombat.com/u/bennypr0fane)\
**Post date:** [May 9, 2018, 9:44pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/19 "2018-05-09T21:44:25Z")

</div>

> [@Chaboi\_3000](#):
>
> to calculate the # of hits in a second, the formula is this, `DPS/Attack damage per hit` so for the runesword, the calculation will be, `192.2/228.57` which equals to `0.840880255501597...`

Good point… 😅  
It’s weird though that “speed” of a weapon is defined as number of hits per second.

> [@bennypr0fane](#):
>
> I thought the speed of a sword was measured by its DPS…

, also because it’s the metric mentioned in the shop, not hits per second (but why not, if hits per second determines the outcome of a battle?).

---

<div class="post-metadata">

**Author:** ![Yule\_Le](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/yule_le/32/22674_2.png) [@Yule\_Le](https://discourse.codecombat.com/u/Yule_Le)\
**Post date:** [August 22, 2018, 3:05pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293/20 "2018-08-22T15:05:31Z")

</div>

And now we need a gun not a sword i passed.

 ![QQ%E5%9B%BE%E7%89%8720180822231016](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/d/d61237e341b9723a2bc362702a4820c1c0f6ddb6.png)

[Next page](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293.md?page=2)
