Page 1 of 1

Command uo.targeting() gone!

Posted: 2009-12-06 17:21:28
by Ever1x
First of all, I installed ASM. Now When I execute this script -

Code: Select all

Sub my.AddObject( name ) 
 If uo.Targeting Then
  uo.Say( chr( 27 ) )
 End If
 If uo.Waiting Then
  uo.CancelTarget()
 End If
 uo.AddObject( name )
 While uo.targeting()
  Wait( 100 )
 Wend
End Sub

- Shows up this message Variable undefined - UO.TARGETING
Should I use older ASM version or do something else?

Re: Command uo.targeting() gone!

Posted: 2009-12-06 18:13:42
by Mirage
Sub my.AddObject( name )
If uo.Targeting Then ; ()
uo.Say( chr( 27 ) )
End If
If uo.Waiting Then
uo.CancelTarget()
End If
uo.AddObject( name )
While uo.targeting()
Wait( 100 )
Wend
End Sub
Variable undefined - UO.TARGETING

UO.TARGETING()

Re: Command uo.targeting() gone!

Posted: 2009-12-07 11:29:43
by CuHTpoH
so you made errors:

Code: Select all

Sub my.AddObject( name ) 
 If uo.Targeting() Then
  uo.Say( chr( 27 ) )
 End If
 If uo.Waiting() Then
  uo.CancelTarget()
 End If
 uo.AddObject( name )
 While uo.targeting()
  Wait( 100 )
 Wend
End Sub


most of built-in functions must be ended by brackets

Posted: 2009-12-07 15:59:26
by Ever1x
I just didn't see! I took this scp from Destruction!

Posted: 2009-12-07 17:06:54
by Destruction
Yes, i was posted this with error.. Sorry.

Now it's fixed.