how do i write a script to do something? For example interupt when someone casts.
how do i write a script to do something? For example interupt when someone casts.
You [as a player] don't need a script to press a button to interact with a target. o.O Anything more advanced, such as macroing, you're being very vague with.
Scripts are not allowed, they are considered as 3rd party software(Hacks/cheats).
There are addons that will recommend spells to cast and in what order based on your current fight. You might want to check out WoW Curse for a combat addon.
What you're asking to do goes against the ToS and is not discussed here.
Closing