Yoko
http://forum.yoko.com.ua/

Moving items into the backpacks
http://forum.yoko.com.ua/viewtopic.php?f=20&t=828
Page 1 of 1

Author:  Biba [ 2004-07-10 15:33:02 ]
Post subject:  Moving items into the backpacks

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? :)

Author:  BETEPAH [ 2004-07-10 15:35:33 ]
Post subject: 

10 items of what type ?

and if you can Type in Russian

Author:  Biba [ 2004-07-10 15:39:53 ]
Post subject: 

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.

Author:  Yoko [ 2004-07-10 16:03:23 ]
Post subject: 

this is a scetch, edited in forum
you may complete it or get idea from here and make all yourself

Code:
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

Author:  Biba [ 2004-07-10 17:10:18 ]
Post subject: 

Yoko wrote:
this is a scetch, edited in forum
you may complete it or get idea from here and make all yourself

Code:
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 :)

Author:  Biba [ 2004-07-10 17:45:23 ]
Post subject: 

Then if someone have this macro full working i will invite that here :).

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/