The World of Warcraft API has a list of functions that you can interact with and to talk with WoW using Lua. These are your building blocks for manipulating WoW windows and chat boxes and so forth. Looking at these for the first time can be very daunting. But don't be discouraged. After getting more familiar with Lua the WoW API gets much easier, and the documentation gets much easier to read. Keep in mind there are many different ways to accomplish your goals, so when going though the API keep looking until you find a way that best suits what you need.
Obtain your heirloom rings. Ghost Pirate Rings can be obtained via Shipyard missions. You can equip one ring from this category. A Dread Pirate Ring can be obtained via placing at least second in the weekly Stranglethorn Fishing Extravaganza, which on many realms is a very competitive event. Note that to obtain the Ghost Pirate Rings, you will need a max level character with a garrison of at least level 3. You you will also have to develop your Shipyard to the appropriate level to receive the mission. Your other heirloom gear will still give you a big boost if you choose not to go for these.