Command uo.targeting() gone!

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Ever1x
Posts: 38
Joined: 2009-02-09 17:12:23

Command uo.targeting() gone!

Post 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?
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Re: Command uo.targeting() gone!

Post 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()
CuHTpoH
Posts: 287
Joined: 2007-11-01 19:09:30
Location: Moscow
Contact:

Re: Command uo.targeting() gone!

Post 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
**Выставляем отступы в скриптах*** ©Destruction
Feel the Power of Dark Side
Ever1x
Posts: 38
Joined: 2009-02-09 17:12:23

Post by Ever1x »

I just didn't see! I took this scp from Destruction!
Last edited by Ever1x on 2009-12-07 17:54:25, edited 1 time in total.
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Yes, i was posted this with error.. Sorry.

Now it's fixed.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Post Reply