Cast Spell Instead of Attack for GTBS

Hi,

I'm currently working on a big project that uses the script GTBS.

Here's the demo: http://www.mediafire.com/?rzh6z5n7bp4s7f9

Goal:

When using a weapon with a certain ID to perform a regular attack, the actor performs a spell with a certain ID instead.

EX: When Weapon ID = 9, return Spell ID 84

Note: It doesn't matter if the player doesn't have enough MP for the spell. (They will all be 0 MP cost.)

Thanks a lot 😀
I really need that 🙁

Original thread: https://forums.rpgmakerweb.com/threads/cast-spell-instead-of-attack-for-gtbs.4289/