Need help with a script

So I was browsing around online for a script to give each class a separate attack skill when the attack command was used from the battle menu and i found this:

 

class class Game_Actor < Game_Battler

  #--------------------------------------------------------------------------

  # * Get Skill ID of Normal Attack

  #--------------------------------------------------------------------------

  def attack_skill_id

    return 2 + @class_id

  end

end

 

But whenever I start up the game I get the following error:

 

Script 'Class Specific Attacks' line 9: SyntaxError occurred.

 

unexpected '\n', expecting tCOLON2 or '[' or '.'

 

i'm probably missing something obvious, but i'm not great at scripting, any ideas?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Is that the WHOLE script?  There isn't a line 9 in there.
First, this line:

class class Game_Actor < Game_Battler

should be:

class Game_Actor < Game_Battler

That should clear the specific error you're getting.

Second, ditto what Shaz said.
That was exactly the problem I was having, I couldn't find line 9.

Thanks for the help, I'll give that a shot, and see if I can get it to work
Thanks for the help everyone, it works now, this thread can be closed, sorry for posting in the wrong section.
If you would like your thread to be closed, Report your opening post (the Report button is bottom right, near the MultiQuote button) and ask for it to be closed.  The mod for this forum might miss your post but will see your Report.

Thanks.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-script.45196/