Thank you so much! That worked perfectly. For those curious I did this.
PHP Code:
function Map_Window.onRightMouseDown( d, dx, dy, clicks )
{
temp.coords = Map_Window.globaltolocalcoord( { dx, dy } );
temp.ddx = ( temp.coords[0] / 538 ) * ( 32 * 64 );
temp.ddy = ( temp.coords[1] / 538 ) * ( 32 * 64 );
player.chat = "warpto" SPC temp.ddx SPC temp.ddy;
}