Plug in an Ethernet cable, and see if just command+R will boot you into Recovery, so you can reinstall Mavericks. You will have to use Utilities to reformat that boot drive as OS X HFS+ Extended, options as GUID. Once you get Mavericks reinstalled, and fully updated, then use its Boot Camp to reinstall Windows 8.1.
If for any reason the boot from Recovery does not work, then you will have to perform the boot into Internet Recovery that I mentioned in the previous post. That will not fetch Mavericks, but the OS X release (Lion) that originally shipped with that model MBP. If you had ever downloaded Mavericks from the OS X App Store, then you should be able to redownload, and update to Mavericks.