Yoko

All sides of Injection
It is currently 2024-03-28 23:43:11

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2016-12-20 09:41:19 
Offline

Joined: 2006-03-27 00:03:20
Posts: 20
Всем привет!

есть следующий скрипт:
Quote:
sub raskidka()
var vesh="0xFFFF"
var Craftbag="0x411E7000"
var Bag1="0x437DF79D"
var Bag2="0x437DF706"
var Bag3="0x437DF617"
var Bag4="0x437DF481"
var Bag5="0x437DF3D7"
var Bag6="0x437DF316"
var Bag7="0x437DFAF9"
var Bag8="0x437DF842"
var Bag9="0x437DFA32"
var Bag10="0x437DF901"
uo.findtype(vesh, -1, Bag1)
if not uo.findcount() == 500 then
uo.findtype(vesh, -1, Craftbag)
uo.moveitem('finditem',-1, Bag1)
else
uo.findtype(vesh, -1, Bag2)
if not uo.findcount() == 500 then
uo.findtype(vesh, -1, Craftbag)
uo.moveitem('finditem',-1, Bag2)
else...
...
end if
end if
wait(50)
end sub


Очень хочется его обобщить, чтобыуйти от привязки к id сумок и их кол-ву.
Первую часть я вроде придумал:
Quote:
Sub poisk
uo.findtype(паки куда будем раскидывать)
n=uo.findcount()
for i=1 to n
findtype(паки куда будем раскидывать)
uo.addobject(sumka[0+i])
uo.ignore finditem()
next


А вот как обобщить саму функцию раскидки?? Может кто ни будь помочь?


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 19 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited