Yoko

All sides of Injection
It is currently 2025-12-22 17:01:44

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2004-12-20 15:50:08 
Offline
User avatar

Joined: 2004-07-03 09:34:31
Posts: 18
Location: Russia, Siberia, Tymen, Kaskara
sub ident()
uo.print('Choose a bag?')
uo.exec('addobject Bag')
while uo.targeting()
wait(100)
wend

>1<

UO.findtype('0x0DD6','0x0000','Bag')
UO.useObject('finditem')

>>>теперь надо чтобы он начинал с 1\ now i want it to repeat the 1 action<<<

end sub

И чтобы он заканчивался по истечению ресурсов.
And i want it ended as the resourses gone.

_________________
DeP


Top
   
 Post subject:
PostPosted: 2004-12-20 18:57:28 
Offline
Junior Expert
User avatar

Joined: 2004-11-13 00:43:55
Posts: 474
Location: Киберзадроцк
Попробуй так...

Code:
sub ident()
uo.print('Choose a bag?')
uo.exec('addobject Bag')
while uo.targeting()
wait(100)
wend
While uo.count('0x0DD6')
UO.findtype('0x0DD6','0x0000','Bag')
UO.useObject('finditem')
Wait(2000)
wend
end sub


Top
   
 Post subject:
PostPosted: 2004-12-20 19:15:40 
Offline
User avatar

Joined: 2004-07-03 09:34:31
Posts: 18
Location: Russia, Siberia, Tymen, Kaskara
Всё отлично работает... но по кончанию ресурсов - не завершает скрипт. Я только начал использовать инжект, и я не програмист по професии... просто решил сделать скрипт на идентификацию рыбы... всё заработало, но почему он его не завершает?


А теперь можно по подробнее об:
While uo.count('0x0DD6')
что значит count? Это пока есть ресурс?

_________________
DeP


Top
   
 Post subject:
PostPosted: 2004-12-20 19:19:41 
Offline
User avatar

Joined: 2004-07-03 09:34:31
Posts: 18
Location: Russia, Siberia, Tymen, Kaskara
Можно ли его закончить вот так?

While uo.count('0x0DD6')
UO.findtype('0x0DD6','0x0000','Bag')
UO.useObject('finditem')
wait(500)
wend
if not UO.findtype('0x0DD6','0x0000','Bag') then
end sub

(Прошу прощения за флуд)

_________________
DeP


Top
   
 Post subject:
PostPosted: 2004-12-20 19:30:05 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
DePawlur wrote:
Можно ли его закончить вот так?


Нельзя. См хелп.


Top
   
 Post subject:
PostPosted: 2004-12-20 19:40:22 
Offline
Junior Expert
User avatar

Joined: 2004-11-13 00:43:55
Posts: 474
Location: Киберзадроцк
Шас должно работать и вырубатся если ресурсов 0
Code:
sub ident() 
uo.print('Choose a bag?')
uo.exec('addobject Bag')
while uo.targeting()
wait(100)
wend
While NOT UO.Count('0x0DD6')==0 and NOT UO.Dead()
UO.findtype('0x0DD6','0x0000','Bag')
UO.useObject('finditem')
Wait(2000)
wend
end sub


Top
   
 Post subject:
PostPosted: 2004-12-20 19:50:12 
Offline
User avatar

Joined: 2004-07-03 09:34:31
Posts: 18
Location: Russia, Siberia, Tymen, Kaskara
Думаю так будет лучше:
While NOT UO.Count('0x0DD6',0x0000)==0 and NOT UO.Dead()
Т.К. он не завершаеться, Рыба одного типа, но разного цвета. А неидентефицированная рыба вся одинаковая...
Спасибо большое за помощь! Я щас еще одну тему создам, у меня кое какой другой вопрос...

_________________
DeP


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 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