# Need help with Sonic script

**URL:** <https://blizzhackers.discourse.group/t/need-help-with-sonic-script/470>\
**Category:** Support\
**Created:** [December 16, 2019, 1:02am UTC](https://blizzhackers.discourse.group/t/need-help-with-sonic-script/470 "2019-12-16T01:02:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlod](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@tlod](https://blizzhackers.discourse.group/u/tlod)\
**Post date:** [December 16, 2019, 1:02am UTC](https://blizzhackers.discourse.group/t/need-help-with-sonic-script/470/1 "2019-12-16T01:02:21Z")

</div>

Hello, first time posting here.

I’m lost at this point, if anyone can help i would greatly appreciate it \<3

I’m running the Sonic script and am receiving an error as soon as the bot joins a game

Error in Sonic (attack.js #443) ClassAttack is not defined (Area: 2, Ping:94, Game: 97857cp2cb3u7iu)

I did not change anything in that file path. The only thing i changed was the settings (to add account) and the d2bot. I followed the youtube video

---

<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:10am UTC](https://blizzhackers.discourse.group/t/need-help-with-sonic-script/470/2 "2019-12-16T09:10:16Z")

</div>

Did you see [https://github.com/SetupSonic/SetupSonic/wiki/D2Bot%23-Configuration](https://github.com/SetupSonic/SetupSonic/wiki/D2Bot%23-Configuration) ?

---

<div class="post-metadata">

**Author:** ![Casper](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@Casper](https://blizzhackers.discourse.group/u/Casper)\
**Post date:** [December 19, 2019, 4:00pm UTC](https://blizzhackers.discourse.group/t/need-help-with-sonic-script/470/3 "2019-12-19T16:00:37Z")

</div>

find your config file (the one that is named for your char)  
search line “Attack Config”  
you need to change these from -1 to a pos number. you can find the attacks in kobolt/sdk/stats\_skills.txt
