Script Assistance for d2botmap.dbj or d2botblank.dbj

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.