Yoko

All sides of Injection
It is currently 2025-11-23 15:21:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2008-01-19 12:24:28 
Offline
User avatar

Joined: 2005-04-05 04:13:24
Posts: 139
Location: DRW
почему то не перекладывает в мешки обычную рыбу StoreFish

Code:
sub Drop()
    if uo.Waiting() then
        uo.CancelTarget()
    end if
    var Exit
    var f
    ;var a=0
    dim Fish[7]
    Fish[0]=0x09CC
    Fish[1]=0x09CD
    Fish[2]=0x09CE
    Fish[3]=0x09CF
    Fish[4]=0x14EB  ; maps
    Fish[5]=0x0DD6 ; truly rare fish
    Fish[6]=0x0DD6 ; prize fish
   
    UO.UseObject('Sunduk')
    wait(1000)
    UO.UseObject('SundukBag')
    wait(1000)
    UO.UseObject('StoreFish')
    wait(1000)
    UO.UseObject('StoreMAP')
    wait(1000)
    UO.UseObject('StorePRFish')
    wait(1000)
    UO.UseObject('StoreTRFish')
   
    wait(500)
    exit=0
   
    repeat
        for f=0 to 3
            uo.FindType(Fish[f],"-1","backpack")
            uo.SetReceivingContainer('StoreFish')
            if uo.GetQuantity('finditem')>0 then
                repeat
                    uo.FindType(Fish[f],"-1","backpack")
                    uo.Grab('0','finditem')
                    wait(1000)
                until uo.FindCount()==0
            else
                exit=1
            next
            uo.UnSetReceivingContainer()
        end if
    until Exit==1
   
    exit=0
    repeat
        for f=4 to 4
            uo.FindType(Fish[f],"-1","backpack")
            uo.SetReceivingContainer('StoreMAP')
            if uo.GetQuantity('finditem')>0 then
                repeat
                    uo.FindType(Fish[f],"-1","backpack")
                    uo.Grab('0','finditem')
                    wait(1000)
                until uo.FindCount()==0
            else
                exit=1
            next
            uo.UnSetReceivingContainer()
        end if
    until Exit==1
   
    exit=0
    repeat
        for f=5 to 5
            uo.FindType(Fish[f],"0x01BB","backpack")
            uo.SetReceivingContainer('StorePRFish')
            if uo.GetQuantity('finditem')>0 then
                repeat
                    uo.FindType(Fish[f],"0x01BB","backpack")
                    uo.Grab('0','finditem')
                    wait(1000)
                until uo.FindCount()==0
            else
                exit=1
            next
            uo.UnSetReceivingContainer()
        end if
    until Exit==1
   
    repeat
        for f=6 to 6
            uo.FindType(Fish[f],"backpack")
            uo.SetReceivingContainer('StoreTRFish') ;rar
            if uo.GetQuantity('finditem')>0 then
                repeat
                    uo.FindType(Fish[f],"-1","backpack")
                    uo.Grab('0','finditem')
                    wait(1000)
                until uo.FindCount()==0
            else
                exit=1
            next
            uo.UnSetReceivingContainer()
        end if
    until Exit==1
    uo.Print("Улов выложен")
end sub


П.С.: скрипт ветерана на фишинг


Top
   
 Post subject:
PostPosted: 2008-01-19 13:21:25 
Offline
User avatar

Joined: 2007-11-01 19:09:30
Posts: 287
Location: Moscow
как же можно извращаться над бедным инжектом, страшно становится просто... можно сделать все одним циклом вообще.. и пользоваться uo.moveitem, и обязательна проверка на то нашел ли чтонибудь файндтайп, и только если нашел делать с этим объектом чтолибо.. не знаю тут надо просто писать другой скрипт,

респект дестру i'mу, грину эдреду и т.д. что у них столько терпения помогать в любых вопросах..

_________________
**Выставляем отступы в скриптах*** ©Destruction
Feel the Power of Dark Side


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 5 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