Yoko

All sides of Injection
It is currently 2025-12-29 01:17:38

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2005-06-13 17:37:04 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
пишет не найден обьект :(

Code:
sub explosions2()
UO.WaitTargetLast()
UO.Cast("Paralyze")
For VaR i=1 to 10
UO.findtype ('0x0F0D')
uo.waittargetobject ('laststatus')
uo.usetype ('finditem')
end sub


Top
   
 Post subject:
PostPosted: 2005-06-13 17:46:08 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
я понял то, что он находит этот итем, но почемуто застревает на строчке uo.usetype ('finditem')


Top
   
 Post subject:
PostPosted: 2005-06-13 17:57:30 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
я понял что немного перемудрил.. исправил скрипт на
Code:
sub explosions2()
UO.WaitTargetLast()
UO.Cast("Paralyze")
For var i=1 to 10
uo.waittargetlast()
wait (100)
uo.usetype ('0x0F0D')
end sub

но при этом он пишет в журнале
Code:
 
Select Target
Targeting Cancelled
Where do you want to throw the potion ?
Unexpected target info

и при этом он скрипт останавливает и не собирается пытаться кидать ещё один экспложен


Top
   
 Post subject:
PostPosted: 2005-06-13 19:04:23 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
НАрод ну помогите плз


Top
   
 Post subject:
PostPosted: 2005-06-14 00:58:50 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Code:
sub explosions2() 
UO.WaitTargetLast()
UO.Cast("Paralyze")
For VaR i=1 to 10
UO.findtype ('0x0F0D')
  If UO.FindCount() Then
    uo.waittargetobject ('laststatus')
    uo.UseObject ('finditem')
  EndIf
end sub


Top
   
 Post subject:
PostPosted: 2005-06-14 05:46:43 
Offline
User avatar

Joined: 2005-05-21 07:12:12
Posts: 163
Location: DRW
Если б вы еще и next не забывали писать, все было бы замечательно. :wink:


Top
   
 Post subject:
PostPosted: 2005-06-14 08:29:55 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
Solaire wrote:
Если б вы еще и next не забывали писать, все было бы замечательно. :wink:


Ну уж извиняйте, мой первый скрипт


Top
   
 Post subject:
PostPosted: 2005-06-14 08:42:31 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
flake wrote:
Code:
    uo.UseObject ('finditem')
 

Так вот как выглядит эта команда ! А я уж извращался и uo.usetype писал и uo.useitem


Top
   
 Post subject:
PostPosted: 2005-06-14 10:16:22 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Code:
sub explosions2() 
UO.WaitTargetLast()
UO.Cast("Paralyze")
For VaR i=1 to 10
UO.findtype ('0x0F0D')
  If UO.FindCount() Then
    uo.waittargetobject ('laststatus')
    uo.UseObject ('finditem')
  EndIf
Next
end sub


Вот так должно работать.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 18 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