You must get coordinates from string.
Use this function:
Code:
; explode( string string, string pattern, number num )
; Destruction
Sub explode( string, pattern, num )
var i, counter = 0, entry = 0
for i=0 to strlen( string ) -1
if mid( string, i, strlen( pattern ) ) == pattern then
counter = counter + 1
if num == counter-1 then
return mid( string, entry, i-entry )
endif
entry = i + 1
endif
next
if entry == 0 then
return false
endif
return mid( string, entry, strlen(string)-entry )
endsub
For example:
Code:
var button_string = uo.lastgump( 'button', 8 )
var coords = explode( button_string, " ", 4 )
var x = val( explode( coords, ":", 0 ) )
var y = val( explode( coords, ":", 1 ) )
uo.LClick( x, y )
Remember - it's only example!