This isn't something I'll help with, and the reasoning is practical rather than preachy.
Exploiting glitches to gain an advantage breaks the rules of Pirates Online. The standard consequence is a permanent account ban, and it's enforced — the operators monitor for exactly this kind of behaviour. Anything you'd gain is outweighed by losing the account you've built.
If you're genuinely stuck on a quest or a fight, the game's official forums and community wikis are full of legitimate strategies that other players have worked out. That's a much better use of an afternoon than starting over from scratch.