Yoko

All sides of Injection
It is currently 2025-11-10 14:56:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 21 posts ]  Go to page 1 2 Next
Author Message
PostPosted: 2005-07-20 10:30:12 
Offline

Joined: 2004-05-18 02:24:25
Posts: 117
sub curee()
uo.deletejournal()
if uo.Poisoned() then
uo.msg('.drink_cure')
end if
wait(100)
if UO.InJournal("t drink another potion yet") or

Вот сюда надо вставить условие если Курок нет в сумке, то тоже каствать Куре

UO.FindType('0x0f07','0x0000',2)
if Not - так можно? UO.FindCount() then

uo.cast('Cure','self')
end if
end sub

я немагу догдннать как это сделать..............


Top
   
 Post subject:
PostPosted: 2005-07-20 11:09:45 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
Вот попробуй, должно работать :)
Code:
sub Сure() 
   UO.FindType(ТИП, ЦВЕТ, 2) # Тип и цвет Сure поставь
   If UO.GetQuantity('finditem') > 0 Then
      UO.UseObject('finditem')
   Else
      UO.Cast('Cure','self')
   End If
Endsub


Top
   
PostPosted: 2005-07-20 11:44:29 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Xabus wrote:
if Not - так можно? UO.FindCount() then


Лучше
Code:
If UO.FindCount() == 0 Then


Top
   
 Post subject:
PostPosted: 2005-07-20 11:59:41 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
flake wrote:
Лучше
Code:
If UO.FindCount() == 0 Then

А разве куре в стопку не складываться?


Top
   
 Post subject:
PostPosted: 2005-07-20 13:03:16 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
А причем тут это?


Top
   
 Post subject:
PostPosted: 2005-07-20 13:23:01 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
Ведь
Code:
UO.FindCount()

делает проверку на количество итемов, а
Code:
UO.GetQuantity()

на количество итемов в стопках.
Верно?


Top
   
 Post subject:
PostPosted: 2005-07-20 13:32:03 
Offline

Joined: 2004-05-18 02:24:25
Posts: 117
Dard wrote:
Ведь
Code:
UO.FindCount()

делает проверку на количество итемов, а
Code:
UO.GetQuantity()

на количество итемов в стопках.
Верно?


если мне не изменяет память зависит складывание в стопку предметов от вердаты...............


Top
   
 Post subject:
PostPosted: 2005-07-20 13:35:16 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
Xabus wrote:
если мне не изменяет память зависит складывание в стопку предметов от вердаты...............

Возможно, вот и спросил, куре в стопку складываться?
У меня складываеться!


Top
   
 Post subject:
PostPosted: 2005-07-20 13:36:06 
Offline

Joined: 2004-05-18 02:24:25
Posts: 117
Dard wrote:
Вот попробуй, должно работать :)
Code:
sub Сure() 
   UO.FindType(ТИП, ЦВЕТ, 2) # Тип и цвет Сure поставь
   If UO.GetQuantity('finditem') > 0 Then
      UO.UseObject('finditem')
   Else
      UO.Cast('Cure','self')
   End If
Endsub


это не подходит..... поскольку....... этот скрипт пьет только куре....
и не кидает каст......... потому что проверка идет :
если есть бутылка то куре то он каст не кинет.........
а задержка в питье бутылок 10 секунд.........
поэтому если 2 раза подряд на меня пойзон кинут то я 10 секунд так и буду отравленным бегать............


Top
   
 Post subject:
PostPosted: 2005-07-20 13:43:31 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
Значит нужно проверку журнала поставить если не может пить значит кастует...


Top
   
 Post subject:
PostPosted: 2005-07-20 13:44:26 
Offline

Joined: 2004-05-18 02:24:25
Posts: 117
Dard wrote:
Значит нужно проверку журнала поставить если не может пить значит кастует...


вот что у меня получилось......... и все равно не кастует бадлюка...
sub curee()
uo.deletejournal()
if uo.Poisoned() then
uo.msg('.drink_cure')
end if
UO.FindType('0x0f07','0x0000',2)
if UO.InJournal("t drink another potion yet") or UO.FindCount() == 0 Then
uo.cast('Cure','self')
end if
end sub


Top
   
 Post subject:
PostPosted: 2005-07-20 13:48:45 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Dard wrote:
Ведь
Code:
UO.FindCount()

делает проверку на количество итемов, а
Code:
UO.GetQuantity()

на количество итемов в стопках.
Верно?


Верно, Но!
Товарищь хочет сделать проверку, есть ли у него вообще кюры.
Ему не важно, 5 их у него или 10, поэтому здесь можно использовать UO.FindCount()


Top
   
 Post subject:
PostPosted: 2005-07-20 13:53:56 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
Не сдаваться:
Code:
sub Сure() 
   UO.DeleteJournal()
   UO.FindType(ТИП, ЦВЕТ, 2) # Тип и цвет Сure поставь
   If UO.GetQuantity('finditem') > 0 Then
      UO.UseObject('finditem')
   Else
      UO.Cast('Cure','self')
   End If
   If UO.InJournal("t drink another potion yet") Then
      UO.Cast('Cure','self')
   End If
Endsub

Хмм... не проверял :roll:


Top
   
 Post subject:
PostPosted: 2005-07-20 13:55:10 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
по сабжу:

Code:
sub Cure()
  If UO.Poisoned() Then
    UO.DeleteJournal()
    UO.MSG( '.drink_cure' )
      If UO.InJournal( 'You put' ) Then
        UO.Print( 'Cured by Bottle!' )
      Else
        UO.Cast( 'Cure', 'self' )
        UO.Print( 'Cured by Cast' ) 
     EndIf
  EndIf
endsub


Собственно делаем проверку на месагу в журнале "ю пут емпти боттлс ин ер пак", то есть если она есть - то видимо мы таки выпили этот кюр.
В обратном случаем, кюримся с каста.


Top
   
 Post subject:
PostPosted: 2005-07-20 13:58:04 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
flake wrote:
Верно, Но!
Товарищь хочет сделать проверку, есть ли у него вообще кюры.
Ему не важно, 5 их у него или 10, поэтому здесь можно использовать UO.FindCount()
Тогда извеняюсь, думал проверку сколько осталось в стопке :roll:


Top
   
 Post subject:
PostPosted: 2005-07-20 14:00:47 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
flake wrote:
Code:
sub Cure()
  If UO.Poisoned() Then
    UO.DeleteJournal()
    UO.MSG( '.drink_cure' )
      If UO.InJournal( 'You put' ) Then
        UO.Print( 'Cured by Bottle!' )
      Else
        UO.Cast( 'Cure', 'self' )
        UO.Print( 'Cured by Cast' ) 
     EndIf
  EndIf
endsub


Как все просто оказываеться :)


Top
   
 Post subject:
PostPosted: 2005-07-20 14:31:05 
Offline

Joined: 2004-05-18 02:24:25
Posts: 117
Dard wrote:
flake wrote:
Code:
sub Cure()
  If UO.Poisoned() Then
    UO.DeleteJournal()
    UO.MSG( '.drink_cure' )
      If UO.InJournal( 'You put' ) Then
        UO.Print( 'Cured by Bottle!' )
      Else
        UO.Cast( 'Cure', 'self' )
        UO.Print( 'Cured by Cast' ) 
     EndIf
  EndIf
endsub


Как все просто оказываеться :)

=(
А НЕРАБОТАЕТ ОН ВСЕ ОДНАВРЕМЕННО КИДАТЕ КУРЕ И ЖРЕТ БАНКУ


Top
   
 Post subject:
PostPosted: 2005-07-20 14:33:28 
Offline
User avatar

Joined: 2005-04-25 19:00:46
Posts: 79
Попробуй этот:
Code:
sub Сure() 
   UO.DeleteJournal()
   UO.FindType(ТИП, ЦВЕТ, 2) # Тип и цвет Сure поставь
   If UO.GetQuantity('finditem') > 0 Then
      UO.UseObject('finditem')
   Else
      UO.Cast('Cure','self')
   End If
   If UO.InJournal("t drink another potion yet") Then
      UO.Cast('Cure','self')
   End If
Endsub


Top
   
 Post subject:
PostPosted: 2005-07-20 14:45:03 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Хабус, а сообщение то при питье появляется?


Top
   
 Post subject:
PostPosted: 2005-07-20 14:47:09 
Offline

Joined: 2004-05-18 02:24:25
Posts: 117
Dard wrote:
Попробуй этот:
Code:
sub Сure() 
   UO.DeleteJournal()
   UO.FindType(ТИП, ЦВЕТ, 2) # Тип и цвет Сure поставь
   If UO.GetQuantity('finditem') > 0 Then
      UO.UseObject('finditem')
   Else
      UO.Cast('Cure','self')
   End If
   If UO.InJournal("t drink another potion yet") Then
      UO.Cast('Cure','self')
   End If
Endsub


нет =( тоже кастует кур.........


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 21 posts ]  Go to page 1 2 Next

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:  
cron
Powered by phpBB® Forum Software © phpBB Limited