NWNXChat ruby conversion v 1.0