Page 1 of 1

Auto Ataka.

Posted: 2008-03-09 16:26:15
by xkucex
Mozet kto nebut dat malenkij skript 4tob kogda ja v pagone za crimom nenada bila dostovat ego Status, a prosta nazat knopku
i proishodit 4tota vrode

Attackt Nearest
set laststatus = lastattacked

I kak pravilno zdelat
4tob on ignore Mena

Code: Select all

sub FS()
UO.Ignore("self") 
uo.cast("Flame Strike","laststatus")
UO.Ignore("self") 
wait(115)
uo.msg(" ")
uo.msg(" ")
uo.msg(" ")
uo.msg(" ")
end sub
On inogda kastuet speli na mena.



Code: Select all

sub find() 
var i, t_len = 2 ; 
DIM t [ val( str( t_len ) ) ] 
t[0] = "0x0191" 
t[1] = "0x0190" 
 uo.ignore( "self" ) 
uo.set('finddistance',12) 
repeat 
   for i = 0 to t_len -1 
      uo.findtype( t[i], "-1", "ground" ) 
      If uo.FindCount() Then 
         If uo.getNotoriety( "finditem" ) == 1 or uo.getNotoriety( "finditem" ) == 3 Then ; если синий или серый, игнор 
            uo.Ignore( "finditem" ) 
         Else 
           uo.attack( "finditem" )  
      uo.cast("Magic Arrow","finditem") 

           wait(3000) 
         End If 
      End If 
   next 
   wait( 300 ) 
until false 
End Sub
vot nashol takoi, no on attakuet vseh podrjat. NPC i Sinih nada 4tob otokoval vseh kto krasniji. I pri nohodke on prodalzhaet iskat, eta uze nenada.
uo.getNotoriety
6 : Murderer (красный)

Peredelal tak, no sei4as on vobse ne4ego nenahodet.

Code: Select all

 If uo.FindCount() Then 
         If uo.getNotoriety( "finditem" )  == 6 or If uo.getNotoriety( "finditem" )  == 4  Then
          uo.attack( "finditem" )  
      uo.cast("Magic Arrow","finditem") 
end sub  
         Else 
uo.Ignore( "finditem" ) 
            wait(3000)

Posted: 2008-03-10 03:10:08
by korzh

Code: Select all

 If uo.FindCount() Then 
         If uo.getNotoriety( "finditem" )  == 6 or If uo.getNotoriety( "finditem" )  == 4  Then 
          uo.attack( "finditem" )  
      uo.cast("Magic Arrow","finditem") 
end sub  
         Else 
uo.Ignore( "finditem" ) 
            wait(3000)
Хех.. Попробуй так:

Code: Select all

if uo.findcount() then
  if uo.getnotoriety( 'finditem' ) == 6 || uo.getnotoriety( 'finditem' ) == 4 then
    uo.attack( 'finditem' )  
    uo.cast( 'Magic Arrow', 'finditem' ) 
  else
    uo.ignore( 'finditem' )
  endif
endif

Posted: 2008-03-10 14:56:34
by xkucex
4tota vso ravno ne tak ?
U mena tut server so frakcijami.
V princepe est 3 Frakciji... Choas (krasniji - Murderi) Order (siniee) I Criminals (toze krasniji- Toze Murderi) Mozet izza etogo olichaetsa Notoriety ?
Mozet mozna kakto uznat kakoi un nih Notiriety ?
Old Paradise Server esli 4to.

Posted: 2008-03-11 00:18:45
by korzh
Попробуй так проверить..

Code: Select all

sub getnotoriety()
  uo.print( str( uo.getnotoriety( 'laststatus' ) ) )
endsub