Yoko

All sides of Injection
It is currently 2025-11-05 11:49:03

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: помогите с BS
PostPosted: 2006-02-08 03:05:45 
Offline

Joined: 2006-02-03 17:36:10
Posts: 13
вобщем есть скриптик по идее не плохой... но при переплавке или появляется таргет и приходится самому тыкать на форж или пишет Auto target canceled и скрипт останавливается...
исправьте пожалуйста...
Code:
sub main()
   var bs_hammer='0x13e3', ingots='0x1bf2', bplate='0x1415' # platemail breastplate
   var f=UO.count(bplate), i
   wait(1000)
   if uo.count(bplate)>0 then
      wait(1000)
      smelt(bplate,1)
    endif
   while uo.count(ingots)>30
     if uo.count(bplate)>0 then
      wait(1000)
      smelt(bplate,1)
      endif
      f=UO.count(bplate)
      wait(1000)
      while f<30 and uo.count(ingots)>30
         i=uo.count(ingots)
         UO.Exec("waitmenu 'like to make' 'Armors' 'armor' 'Platemail' 'like' 'Breastplate'")
         UO.waittargettype(ingots)
         uo.deletejournal()
         UO.usetype(bs_hammer)
         repeat
            wait(1000)
         until i<>uo.count(ingots) or f<>uo.count(bplate)
         repeat
            wait(1000)
            UO.LClick(55,85)# click on "Yes" if exceptional item
         until uo.injournal('You finished looping.')
         f=UO.count(bplate)
      wend
   wend
end sub


sub smelt(item, loop)
Repeat
   var forge='0x6BD6210E', tongs='0x0fbb', count1,count2
   count1=uo.count(item)
   if count1>0 then
      if loop then
         count2=0
      else
         count2=count1-1
      endif
      repeat
         uo.waittargettype(item)
         uo.usetype(tongs)
         uo.deletejournal()
         repeat
            wait(2000)
         until uo.injournal('What')
         uo.waittargetobject(forge)
         uo.deletejournal()
         repeat
            wait(2000)
         until uo.injournal('destroy') or uo.injournal('turned') or uo.injournal('мешок') or uo.injournal('You finished looping.') or uo.injournal('Auto target cancelled')
         wait(500)#may be not need (!)
      until uo.count(item)<=count2
   endif
end sub


Top
   
PostPosted: 2006-02-08 03:20:44 
Offline

Joined: 2006-02-03 11:32:16
Posts: 256
Location: ND
Видите, Михаил, просмотров этого моего сообщения около 60, но только Вы и Владимир высказались положительно А так народ молчит. Видимо раньше мало было школ, учителей , и потому люди мотались по ст
Смотря как все это рассматривать. Если с точки зрения обычного человека - то, конечно, надо мной хихикали, жалели, отсылали к психиатрам и т.п. Если рассматривать с точки зрения развития челов


Last edited by LordTom on 2009-12-23 13:11:08, edited 3 times in total.

Top
   
 Post subject:
PostPosted: 2006-02-08 05:33:31 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Тваю мать! viewtopic.php?t=5227 - пункт третий.

Ругаться нету больше сил... :evil:

Code:
 var forge='0x6BD6210E', tongs='0x0fbb', count1,count2 


ID форжи верный?


Top
   
 Post subject:
PostPosted: 2006-02-08 06:22:01 
Offline

Joined: 2006-02-03 17:36:10
Posts: 13
Destruction wrote:
Тваю мать! viewtopic.php?t=5227 - пункт третий.

Ругаться нету больше сил... :evil:

Code:
 var forge='0x6BD6210E', tongs='0x0fbb', count1,count2 


ID форжи верный?

да до этого стоял тип - было еще хуже)


Top
   
 Post subject:
PostPosted: 2006-02-08 06:27:07 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
         uo.waittargettype(item) 
         uo.usetype(tongs)
         uo.deletejournal()
         repeat
            wait(2000)
         until uo.injournal('What')
         uo.waittargetobject(forge)

Афигенная конструкция.

Распишите подробно процесс плавки.


Top
   
 Post subject:
PostPosted: 2006-02-08 06:32:47 
Offline

Joined: 2006-02-03 17:36:10
Posts: 13
Destruction wrote:
Code:
         uo.waittargettype(item) 
         uo.usetype(tongs)
         uo.deletejournal()
         repeat
            wait(2000)
         until uo.injournal('What')
         uo.waittargetobject(forge)

Афигенная конструкция.

Распишите подробно процесс плавки.

Code:
дабл клик на тонг появляется таргет, клик на итем появляется таргет, клик на форж


Top
   
 Post subject:
PostPosted: 2006-02-08 07:00:41 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Хмм, не, три таргета я вешать не умею :(


Top
   
 Post subject:
PostPosted: 2006-02-08 07:49:03 
Offline

Joined: 2006-02-03 17:36:10
Posts: 13
Destruction wrote:
Хмм, не, три таргета я вешать не умею :(


так там 2 таргета юзается тонг таргет на арм и на форж


Top
   
 Post subject:
PostPosted: 2006-02-08 09:47:58 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Demonik wrote:
Destruction wrote:
Хмм, не, три таргета я вешать не умею :(


так там 2 таргета юзается тонг таргет на арм и на форж

кто-то из нас ступил, тада так:
Code:
sub smelt()
 var arm = "0x0000" ; чо плавить
 var forge = "0x0000" ; тип форжи
 var tongs = "0x0000" ; тип тонгов
while uo.count(arm)
uo.waittargettype(arm,forge)
uo.usetype(tongs)
wait(400) ; пауза, я бы сюда чеклаг запихал
wend
endsub


Top
   
 Post subject:
PostPosted: 2006-02-08 20:27:56 
Offline

Joined: 2006-02-03 17:36:10
Posts: 13
Destruction wrote:
Demonik wrote:
Destruction wrote:
Хмм, не, три таргета я вешать не умею :(


так там 2 таргета юзается тонг таргет на арм и на форж

кто-то из нас ступил, тада так:
Code:
sub smelt()
 var arm = "0x0000" ; чо плавить
 var forge = "0x0000" ; тип форжи
 var tongs = "0x0000" ; тип тонгов
while uo.count(arm)
uo.waittargettype(arm,forge)
uo.usetype(tongs)
wait(400) ; пауза, я бы сюда чеклаг запихал
wend
endsub


Code:
while uo.count(0x1415)>0
 uo.findtype(0x1415,-1,2)
 uo.waittargetobject('finditem',0x6BD6210E)
 uo.usetype(0x0FBB)

я вот так переделал) вроде работает


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

All times are UTC+02:00


Who is online

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