First off I am a little unsure how to retrieve the co-ordinates which I know is a nooby question.
Second, I am wondering if this would be correct...
ToPlaceX := [' co-ordinates I am unsure of here ']
ObjDTM_WalkPath(ToPlaceX,integer value,integer value, integer value, boolean, boolean);
To get coordinates for ObjDTMs use the ODTM editor to create a path (it has a path option) then click print ObjDTM/path and it will give you a string of numbers which you insert into ' co-ordinates I am unsure of here.' I'm assuming you already have the editor and everything if you're using ObjDTMs and probably have seen this thread but if not check it out:
http://villavu.com/forum/showthread.php?t=72067
Euphemism explains it much better than I ever could
For your second question taken right from SRL
Simba Code:
ObjDTM_Walk(ObjDTMToWalk: String; FlagDistance, PollRate,
Tries: Integer; GroundLevel: Boolean): Boolean;
So 'ObjDTMToWalk' is the string you get from the ODTM editor, FlagDistance is basically how far away from the flag on the mini map will the function wait until beginning to look for the next point, poll rate is how long (in milliseconds of course) between each attempt to find the objDTM, Tries is the number of times the script will try to find an objDTM, and ground level accounts for false positives--generally set it to true unless large amounts of black space are visible on the minimap.
Hope this helps--your setup looks generally right just make sure there is a 'begin' before you start 'ToPlaceX...' and change the perimeters to match the ObjDTM_Walk function and you should be good