# Help with AutoTP

**URL:** <https://blizzhackers.discourse.group/t/help-with-autotp/345>\
**Category:** Support\
**Created:** [July 13, 2019, 8:35pm UTC](https://blizzhackers.discourse.group/t/help-with-autotp/345 "2019-07-13T20:35:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike1234](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mike1234](https://blizzhackers.discourse.group/u/mike1234)\
**Post date:** [July 13, 2019, 8:35pm UTC](https://blizzhackers.discourse.group/t/help-with-autotp/345/1 "2019-07-13T20:35:36Z")

</div>

I am looking for help or advice on getting autotp

Currently I do some 1/8 runs an it would speed up a lot if the sorceress could instantly make a town portal an go back to town rather then fighting off units.

---

<div class="post-metadata">

**Author:** ![mf22](https://yyz2.discourse-cdn.com/free1/user_avatar/blizzhackers.discourse.group/mf22/32/18_2.png) [@mf22](https://blizzhackers.discourse.group/u/mf22)\
**Post date:** [July 13, 2019, 10:17pm UTC](https://blizzhackers.discourse.group/t/help-with-autotp/345/2 "2019-07-13T22:17:22Z")

</div>

which scripts are you trying to use for leader/leechers?

---

<div class="post-metadata">

**Author:** ![mike1234](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mike1234](https://blizzhackers.discourse.group/u/mike1234)\
**Post date:** [July 13, 2019, 11:28pm UTC](https://blizzhackers.discourse.group/t/help-with-autotp/345/3 "2019-07-13T23:28:00Z")

</div>

Sorry for my lack of clarity. I would actually like to run it as a manual an just be able to hit a “hot key” that would make the character insta-town.

---

<div class="post-metadata">

**Author:** ![5noop](https://avatars.discourse-cdn.com/v4/letter/5/258eb7/32.png) [@5noop](https://blizzhackers.discourse.group/u/5noop)\
**Post date:** [July 14, 2019, 1:26pm UTC](https://blizzhackers.discourse.group/t/help-with-autotp/345/4 "2019-07-14T13:26:18Z")

</div>

In tools/ToolsThead.js you have a function keyEvent, add the following case:

> ```
> case 116: //f5
> Pather.makePortal(true);
> break;
> 
> ```

Then when you press f5 your char will make a tp and take it. You can obviously change the key code (116) by any other key.

---

<div class="post-metadata">

**Author:** ![mike1234](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mike1234](https://blizzhackers.discourse.group/u/mike1234)\
**Post date:** [December 14, 2019, 5:47pm UTC](https://blizzhackers.discourse.group/t/help-with-autotp/345/5 "2019-12-14T17:47:51Z")

</div>

So expanding on this, how can I make it so the character automatically makes the tp when I hit “f5”, but I don’t want them to actually take the tp, just to create the tp?

---

<div class="post-metadata">

**Author:** ![mf22](https://yyz2.discourse-cdn.com/free1/user_avatar/blizzhackers.discourse.group/mf22/32/18_2.png) [@mf22](https://blizzhackers.discourse.group/u/mf22)\
**Post date:** [December 16, 2019, 9:35am UTC](https://blizzhackers.discourse.group/t/help-with-autotp/345/6 "2019-12-16T09:35:57Z")

</div>

> [@mike1234](#):
>
> how can I make it so the character automatically makes the tp when I hit “f5”, but I don’t want them to actually take the tp, just to create the tp?

```auto
Pather.makePortal();

```

or

```auto
Pather.makePortal(false);

```

Did you try to check the description of the **makePortal** function from **Pather.js**?  
[https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/libs/common/Pather.js#L1024-L1025](https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/libs/common/Pather.js#L1024-L1025)
