Wolfy, if you are serious about trying to write something like this, come to Discord. We should be able to help point you in the right direction.
I'm starting to think reading the ingame guide isn't the way to go. I think using an ini like MQ2PiggyZone.ini to read connections is. That way we can setup cases for using NPC teleporters, and guild lobby teleports.