Yoko

All sides of Injection
It is currently 2025-12-23 16:00:58

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2004-07-10 15:33:02 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
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? :)


Last edited by Biba on 2004-07-10 15:40:48, edited 2 times in total.

Top
   
 Post subject:
PostPosted: 2004-07-10 15:35:33 
Offline
Expert!
User avatar

Joined: 2004-05-31 09:31:51
Posts: 838
10 items of what type ?

and if you can Type in Russian

_________________
Все просто.
BETEPAH ™


Top
   
 Post subject:
PostPosted: 2004-07-10 15:39:53 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
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.


Top
   
 Post subject:
PostPosted: 2004-07-10 16:03:23 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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


Top
   
 Post subject:
PostPosted: 2004-07-10 17:10:18 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
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 :)


Top
   
 Post subject:
PostPosted: 2004-07-10 17:45:23 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
Then if someone have this macro full working i will invite that here :).


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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