даработка скриптов

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
yxTbl
Posts: 39
Joined: 2007-01-02 15:09:35

даработка скриптов

Post by yxTbl »

вопшем вот скриптег

Code: Select all

sub LootAll() 
uo.set("finddistance","3")
UO.DeleteJournal()
repeat
    repeat
        wait(1500)
    Until UO.InJournal('Body') and UO.GetDistance('lastcorpse') <= 2
    wait(300)
    UO.FindType(-1,-1,'lastcorpse')
    While UO.FindCount()>0
        UO.Grab('0', 'finditem')
uo.ignore('finditem')
        wait(800)
        UO.FindType(-1,-1,'lastcorpse')
    wend
    UO.DeleteJournal()
Until UO.Dead()
endsub

дикая просьба дабавить в етот скрипт чтобы он таскал всё в выбраный контейнер , каторый выбираеш при запуске скрипта
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

sub LootAll()
uo.exec('addobject bag')
while uo.targeting()
wait(200)
wend

uo.set("finddistance","3")
UO.DeleteJournal()
repeat
    repeat
        wait(1500)
    Until UO.InJournal('Body') and UO.GetDistance('lastcorpse') <= 2
    wait(300)
    UO.FindType(-1,-1,'lastcorpse')
    While UO.FindCount()>0
        UO.moveitem('finditem', -1 ,'bag')
uo.ignore('finditem')
        wait(800)
        UO.FindType(-1,-1,'lastcorpse')
    wend
    UO.DeleteJournal()
Until UO.Dead()
endsub
Last edited by Nmy on 2007-01-10 22:03:01, edited 1 time in total.
yxTbl
Posts: 39
Joined: 2007-01-02 15:09:35

Post by yxTbl »

NMY wrote:

Code: Select all

sub LootAll()
uo.exec('addobject bag')
while uo.targeting()
wait(200)
wend

uo.set("finddistance","3")
UO.DeleteJournal()
repeat
    repeat
        wait(1500)
    Until UO.InJournal('Body') and UO.GetDistance('lastcorpse') <= 2
    wait(300)
    UO.FindType(-1,-1,'lastcorpse')
    While UO.FindCount()>0
        UO.moveitem('finditem', -1 , bag )
uo.ignore('finditem')
        wait(800)
        UO.FindType(-1,-1,'lastcorpse')
    wend
    UO.DeleteJournal()
Until UO.Dead()
endsub

на 16-ой строчке косяк
вариабле ундефинед -БАГ
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

поправил
yxTbl
Posts: 39
Joined: 2007-01-02 15:09:35

Post by yxTbl »

NMY wrote:поправил

любит глючить с итемами например в трупе 20 итемов , он покажет что 7-мь , и несможет взять не одного :o
чтобы забрал всё нада падайти к трупу и открыть его , просто встать на него некатит :(
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

sub LootAll()
uo.exec('addobject bag')
while uo.targeting()
wait(200)
wend

uo.set("finddistance","3")
UO.DeleteJournal()
repeat
    repeat
        wait(1500)
    Until UO.InJournal('Body') and UO.GetDistance('lastcorpse') <= 2
    uo.useobject('lastcorpse')
    wait(300)
    UO.FindType(-1,-1,'lastcorpse')
    While UO.FindCount()>0
        UO.moveitem('finditem', -1 ,'bag')
        uo.ignore('finditem')
        wait(800)
        UO.FindType(-1,-1,'lastcorpse')
    wend
    UO.DeleteJournal()
Until UO.Dead()
endsub
Post Reply