Page 1 of 1

Moving items into the backpacks

Posted: 2004-07-10 15:33:02
by Biba
Im interested in macros like that. For example: i got 10 backpacks and 100 items (scrolls, ingots, logs, feathers etc...) to move into this backpacks and first select with cursor and command uo.exec('addobject something'). Backpacks are always same type, scrolls not. I want 10 items in every backpack, but how to do that using the best way? :)

Posted: 2004-07-10 15:35:33
by BETEPAH
10 items of what type ?

and if you can Type in Russian

Posted: 2004-07-10 15:39:53
by Biba
BETEPAH wrote:10 items of what type ?

and if you can Type in Russian
Thats doesnt matter, scrolls ingots or something like that, its different in every time, thats why i need to addobject before move.

Posted: 2004-07-10 16:03:23
by Yoko
this is a scetch, edited in forum
you may complete it or get idea from here and make all yourself

Code: Select all

sub yokotest()
uo.ignorereset()
while uo.count("packtype")
...
uo.addtype("SelectItemToStore")
...
while uo.count("SelectItemToStore")
uo.findtype("SelectItemToStore")
uo.moveitem("finditem","-1","_packtype")
wait(untilitemmoved)
uo.ignore("finditem")
wend
uo.ignore("_packtype")
uo.print("You have "+str(uo.count("packtype"))+" bags left")
wend
uo.ignorereset()
end sub

Posted: 2004-07-10 17:10:18
by Biba
Yoko wrote:this is a scetch, edited in forum
you may complete it or get idea from here and make all yourself

Code: Select all

sub yokotest()
uo.ignorereset()
while uo.count("packtype")
...
uo.addtype("SelectItemToStore")
...
while uo.count("SelectItemToStore")
uo.findtype("SelectItemToStore")
uo.moveitem("finditem","-1","_packtype")
wait(untilitemmoved)
uo.ignore("finditem")
wend
uo.ignore("_packtype")
uo.print("You have "+str(uo.count("packtype"))+" bags left")
wend
uo.ignorereset()
end sub

I really dont know if i can make this working, but i will try. Maybe ur presence on icq today will help :)

Posted: 2004-07-10 17:45:23
by Biba
Then if someone have this macro full working i will invite that here :).