On AzerothCore, we don't really use the usual scripts like in other emulators. Instead, we work with modules which are way more practical to use. See Create-a-Module
You still want to make a simple script before switching to modules? Read below.
If you never made any script before, you can study some of the modules' scripts, compare, dissect etc... If you find some open issues, fix them to improve your skills!
You can use this as a base: https://github.com/azerothcore/azerothcore-boilerplates
For your script to be compiled, read the README here