Yoko
http://forum.yoko.com.ua/

Auto Ataka.
http://forum.yoko.com.ua/viewtopic.php?f=17&t=13351
Page 1 of 1

Author:  xkucex [ 2008-03-09 16:26:15 ]
Post subject:  Auto Ataka.

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:
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:
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:
 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)

Author:  korzh [ 2008-03-10 03:10:08 ]
Post subject: 

Code:
 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:
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

Author:  xkucex [ 2008-03-10 14:56:34 ]
Post subject: 

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.

Author:  korzh [ 2008-03-11 00:18:45 ]
Post subject: 

Попробуй так проверить..
Code:
sub getnotoriety()
  uo.print( str( uo.getnotoriety( 'laststatus' ) ) )
endsub

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/