Yoko

All sides of Injection
It is currently 2024-03-29 02:08:04

All times are UTC+02:00




Post new topic  Reply to topic  [ 14 posts ] 
Author Message
PostPosted: 2012-02-18 14:20:33 
Offline

Joined: 2012-02-18 14:11:32
Posts: 7
Вообщем юзаю этот отличный пылесос

возник вопрос можно ли заблокировать какие-то итемы в поиске?

нашел только скрипты которые лутают определенный шмот, но это не подходит.
Nmy wrote:
Code:
sub Lootall()
   var n, corpse   
   if (uo.getserial('backpack') <> uo.getserial('lastcontainer')) then
      uo.ignorereset()
      corpse=uo.getserial('lastcontainer')
      uo.findtype(-1,-1,corpse)
      while uo.findcount()
         n=uo.getserial('finditem')
         uo.moveitem('finditem',0,'backpack')
         uo.print(' item '+str(uo.findcount()))
         checklag()
         wait(600)
         uo.findtype(-1,-1,corpse)
         if uo.findcount() then
            if n==uo.getserial('finditem') then
               uo.ignore('finditem')
               uo.findtype(-1,-1,corpse)
            endif
         endif
      wend
   endif
   uo.print(' -= Done =- ')
endsub


Top
   
PostPosted: 2012-02-18 17:15:24 
Offline

Joined: 2012-02-18 14:11:32
Posts: 7
и еще 1 вопрос) можно как-то дописать чтоб оно лутало в контейнер X, а не в общую сумку.


Top
   
PostPosted: 2012-02-18 17:28:25 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
Code:
sub Lootall()
    var n = 0, ok, corpse, i, container = '0x12345678'    ; Контейнер-приемник
    dim ignore[4]                                          ;  Общее кол-во элементов в массиве
    ignore[0] = '0x1234'
    ignore[1] = '0x1234'
    ignore[2] = '0x1234'
    ignore[3] = '0x1234'    
    if uo.getserial(container) <> uo.getserial('lastcontainer') and uo.getserial('backpack') <> uo.getserial('lastcontainer') then
        uo.ignorereset()
        corpse=uo.getserial('lastcontainer')
        uo.findtype(-1,-1,corpse)
        repeat
            uo.findtype(-1,-1,corpse)
            if uo.findcount() then
                ok = 1
                for i = 0 to 3                                ; Общее кол-во элементов в массиве минус один
                    if uo.getgraphic('finditem') == ignore[i] then
                        ok = 0
                    endif
                next
                if n==uo.getserial('finditem') or not ok then
                    uo.ignore('finditem')
                else
                    n=uo.getserial('finditem')
                    uo.moveitem('finditem',0,container)
                    uo.print(' item '+str(uo.findcount()))
                    checklag()
                    wait(600)
                endif
            endif
        until not uo.findcount()
    endif
    uo.print(' -= Done =- ')
endsub


Last edited by ZeroDX on 2012-02-19 15:02:33, edited 2 times in total.

Top
   
PostPosted: 2012-02-18 20:01:21 
Offline

Joined: 2012-02-18 14:11:32
Posts: 7
Line 16: Variable undefined - I

Вот как изменил

sub Lootall()
var n = 0, ok = 1, corpse, container = '0x401247C9' ; Контейнер-приемник
dim ignore[4] ; Общее кол-во элементов в массиве
ignore[0] = '0x144F' ; bone armor
ignore[1] = '0x1452' ; bone legs
ignore[2] = '0x1451' ; bone helmet
ignore[3] = '0x144E' ; bone arms
if uo.getserial(container) <> uo.getserial('lastcontainer') and uo.getserial('backpack') <> uo.getserial('lastcontainer') then
uo.ignorereset()
corpse=uo.getserial('lastcontainer')
uo.findtype(-1,-1,corpse)
repeat
uo.findtype(-1,-1,corpse)
if uo.findcount() then
for i = 0 to 3 ; Общее кол-во элементов в массиве минус один
if uo.getgraphic('finditem') == ignore[i] then
ok = 0
endif
next
if n==uo.getserial('finditem') or not ok then
uo.ignore('finditem')
else
n=uo.getserial('finditem')
uo.moveitem('finditem',0,container)
uo.print(' item '+str(uo.findcount()))
checklag()
wait(600)
endif
endif
until not uo.findcount()
endif
uo.print(' -= Done =- ')
endsub


Top
   
PostPosted: 2012-02-18 22:12:09 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
обновил пост со скриптом. изменение только во 2-ой строке
Code:
var n = 0, ok = 1, corpse, i, container = '0x12345678'    ; Контейнер-приемник

Code:
dim ignore[4] ; Общее кол-во элементов в массиве
 ignore[0] = '0x144F' ; bone armor
 ignore[1] = '0x1452' ; bone legs
 ignore[2] = '0x1451' ; bone helmet
 ignore[3] = '0x144E' ; bone arms

Ты можешь добавить или убавить строки.


Top
   
PostPosted: 2012-02-18 23:01:08 
Offline

Joined: 2012-02-18 14:11:32
Posts: 7
это я понял) я так для теста 4 оставил)
и сюда
Quote:
for i = 0 to 3 ; Общее кол-во элементов в массиве минус один
(х-1) вставить как я понял


Top
   
PostPosted: 2012-02-19 13:51:23 
Offline

Joined: 2012-02-18 14:11:32
Posts: 7
вообщем не работает) так как он доходит до заигнориной шмотки и перестает лутать все остальное.


Top
   
PostPosted: 2012-02-19 14:17:03 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
поиск не работает?

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2012-02-19 15:02:46 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
rezident wrote:
вообщем не работает) так как он доходит до заигнориной шмотки и перестает лутать все остальное.

исправил


Top
   
PostPosted: 2012-02-19 20:20:30 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
n=uo.getserial('finditem')
Строка не нужна. Масло масленое.

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2012-02-20 15:18:38 
Offline

Joined: 2012-02-18 14:11:32
Posts: 7
ZeroDX wrote:
rezident wrote:
вообщем не работает) так как он доходит до заигнориной шмотки и перестает лутать все остальное.

исправил

спс
отлично работает)


Top
   
PostPosted: 2012-02-20 15:19:51 
Offline

Joined: 2012-02-18 14:11:32
Posts: 7
Mirage wrote:

в твоем скрипте очень много того что мне не нужно) а так как я пока слаб в правлении скриптов) мне сложно будет изменить твой скрипт под себя


Last edited by rezident on 2012-02-20 18:05:25, edited 1 time in total.

Top
   
PostPosted: 2012-02-20 16:33:08 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
Mirage wrote:

:P :P :P :P :P


Top
   
PostPosted: 2012-02-20 18:41:40 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
ну вот а я там так расписывал :|

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 11 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited