# Script Assistance for d2botmap.dbj or d2botblank.dbj

**URL:** <https://blizzhackers.discourse.group/t/script-assistance-for-d2botmap-dbj-or-d2botblank-dbj/1024>\
**Category:** Support\
**Created:** [December 9, 2020, 12:05am UTC](https://blizzhackers.discourse.group/t/script-assistance-for-d2botmap-dbj-or-d2botblank-dbj/1024 "2020-12-09T00:05:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YGM](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@YGM](https://blizzhackers.discourse.group/u/YGM)\
**Post date:** [December 9, 2020, 12:05am UTC](https://blizzhackers.discourse.group/t/script-assistance-for-d2botmap-dbj-or-d2botblank-dbj/1024/1 "2020-12-09T00:05:37Z")

</div>

Hi,

I’ve not played with D2BS for a long while and as such am very rusty, I’ve tried to setup a few little tweaks for myself but I cannot get them to work at all…

I want to be able to use the d2botblank.dbj or d2botmap.dbj and add a new hotkey to run a specific task/action.

For example, I want to be able to setup hotkeys for the following:

1. Precasting
2. Teleporting to a boss in one key press (For example pressing numpad 9 would go to the WP, go to catacombs lvl 2 and teleport to catacombs lvl 4)
3. Open Chests in current area.

I’ve tried editing the MapThread by adding code like:

```
case 105: // Open Chests
    Precast.doPrecast(true);
    break;
}       

```

However whenever I try the hotkey, the console just gets spammed with:

> “resume mapthread”

I’m not sure what I am doing wrong, I’d appreciate some help.
