Yoko

All sides of Injection
It is currently 2025-11-05 15:31:16

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Проблемко...
PostPosted: 2008-07-07 20:26:54 
Offline
User avatar

Joined: 2006-03-23 19:25:23
Posts: 101
Я написал скрипт, который выполняет следуйщие дейтвия: режет труп моба и лутает 3 итема из него:

Code:
sub script()
uo.set('finddistance','5')
   var i
   DIM Loot[3]
   
Loot[0]='0x0F78'
Loot[1]='0x1BFB'
Loot[2]='0x0EED'

for i=0 to 2

uo.setarm('arm')
uo.waittargetobject('lastcorpse')
uo.usetype('0x0F51')
wait(500)
uo.arm('arm')
uo.Ignore('self')
wait(500)
repeat
uo.findtype(Loot[i],'-1','lastcontainer')
wait(100)
uo.moveitem('finditem')
wait(750)
until uo.findcount()==0
end sub


Но у меня почему-то лутает только первый итем и выключается, помогите исправить. Заранее благодарен. :)

_________________
:O


Top
   
 Post subject:
PostPosted: 2008-07-07 21:03:20 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Цикл for закрой

2Так как используешь в скрипте команду Ignore, то и IgnoreReset по окончанию работы скрипта тоже желательно делать


Top
   
 Post subject:
PostPosted: 2008-07-07 22:04:32 
Offline
User avatar

Joined: 2006-03-23 19:25:23
Posts: 101
Во, вроде стал лутать, но он после каждоно слутанного итема режет труп.. :shock: Почему так?(

_________________
:O


Top
   
 Post subject:
PostPosted: 2008-07-07 23:32:03 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Потому что ты так написал. Поставь резку трупа за цикл, и будет тебе счастье


Top
   
 Post subject:
PostPosted: 2008-07-08 06:11:26 
Offline
User avatar

Joined: 2006-03-23 19:25:23
Posts: 101
А всё, дошло. :) Спасибо...

_________________
:O


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 9 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:  
Powered by phpBB® Forum Software © phpBB Limited