Yoko

All sides of Injection
It is currently 2025-12-27 19:55:14

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2009-02-05 12:29:05 
Offline

Joined: 2009-01-08 06:36:54
Posts: 43
Location: Не хозяин...
sub SortItem()
If UO.Dead() Then
UO.Print("You are Dead")
return
End If
var n_1
UO.Set('grabdelay','250')
UO.IgnoreReset()

;==============================================
; СОРТИРУЕМ ВЕЩИ: НИЖНИЙ ПРАВЫЙ УГОЛ
;==============================================
Dim Items[8]
Items[0] = 7
Items[1] = '0x0E20' ; БИНТЫ БЛУД
Items[2] = '0x0F0E' ; ПУСТЫЕ БУТЫЛКИ
Items[3] = '0x0F3F' ; СТРЕЛЫ
Items[4] = '0x1BFB' ; БОЛТЫ
Items[5] = '0x09B0' ; СУМКА (квадратная) 1
Items[6] = '0x0E79' ; СУМКА (квадратная) 2
Items[7] = '0x0E76' ; СУМКА (Круглая)
;==============================================
; СОРТИРУЕМ ХИМИЮ:
;==============================================
Sort('0x0F0B', '', 142, 65) ; РЕФРЕХИ
Sort('0x0F09', '0x0388', 44, 65) ; МАНА
Sort('0x0F09', '0x0060', 56, 65) ; ИНВИЗ
Sort('0x0F09', '0x084D', 68, 65) ; СТИЛСКИНЫ
Sort('0x0F0C', '', 77, 65) ; ГРЕЙТ ХИЛ
;==============================================
; СОРТИРУЕМ ВЕЩИ:
;==============================================
Sort('0x0E21','' , 97, 65) ; БИНТЫ

For n_1 = 1 TO Items[0]
Sort(Items[n_1],'' , 137, 127) ; ВЕЩИ
Next
UO.IgnoreReset()
UO.FindType('0x0E75','-1','1') ; Анти КРАШ! :)
UO.Print("SortItem Done!")
end sub

Sub Sort(Type, Color, X, Y)
var Wait_Time=500
If Color=='' Then
Color='-1'
End If
If UO.Count(Type) Then
REPEAT
UO.FindType(Type,Color,'2')
If UO.FindCount() Then
If UO.GetX('finditem')<>X or UO.GetY('finditem')<>Y Then
UO.MoveItem('finditem','all','-1',str(X),str(Y),'0')
UO.Ignore('finditem','on')
Wait(Wait_Time)
Else
UO.Ignore('finditem','on')
End If
End If
Until UO.FindCount()==0 or UO.Dead()
End If
end sub

Примерно знаю как, но выскакивает ошибка(я так думаю потому что нетуда встолвляю) Экспы ,агилити и стелскины


Top
   
 Post subject:
PostPosted: 2009-02-05 20:05:29 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
Code:
Sub Sort(Type, Color, X, Y)
   var Wait_Time=500
   If Color=='' Then
      Color='-1'
   EndIf
   If UO.Count(Type) Then
      UO.FindType(Type,Color,'2')
      while not UO.Dead() and UO.FindCount()
         If UO.GetX('finditem')<>X or UO.GetY('finditem')<>Y Then
            UO.MoveItem('finditem','0','-1',str(X),str(Y),'0')
            Wait(Wait_Time)
            UO.Ignore('finditem','on')
          Else
            UO.Ignore('finditem','on')
         EndIf
         UO.FindType(Type,Color,'2')
      wend
   EndIf
endsub


Top
   
 Post subject:
PostPosted: 2009-02-08 11:29:46 
Offline

Joined: 2009-01-08 06:36:54
Posts: 43
Location: Не хозяин...
GAUHAR wrote:
Code:
Sub Sort(Type, Color, X, Y)
   var Wait_Time=500
   If Color=='' Then
      Color='-1'
   EndIf
   If UO.Count(Type) Then
      UO.FindType(Type,Color,'2')
      while not UO.Dead() and UO.FindCount()
         If UO.GetX('finditem')<>X or UO.GetY('finditem')<>Y Then
            UO.MoveItem('finditem','0','-1',str(X),str(Y),'0')
            Wait(Wait_Time)
            UO.Ignore('finditem','on')
          Else
            UO.Ignore('finditem','on')
         EndIf
         UO.FindType(Type,Color,'2')
      wend
   EndIf
endsub

по русски, ещё разок)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited