Yoko

All sides of Injection
It is currently 2025-12-23 20:22:18

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2005-07-01 09:22:11 
Offline
User avatar

Joined: 2005-04-16 17:40:14
Posts: 24
Пытался сделать себе скрипт для дрв чтоб кастовал маджик аров со скрола (лучше не спрашивайте зачем ) получилось вот что но со скрола все равно не качстует

Code:
#==============================================
#  Arrow() - cast magic arrow on laststatus
#--------------------------------------------------------------
#sub Arrow()
#   UO.Set('lasttarget','laststatus')
#   UO.FindType('0x1F32',-1,'my')
#   If UO.GetQuantity('finditem')>0 then
#      if UO.Mana>=6 then
#         UO.WaitTargetObject('lasttarget')
#         UO.UseObject('finditem')
#         UO.Print("Scroll")
#      else
#         UO.Print("Low mana!!! Scroll!")
#      endif
#   else
#           if UO.Mana>=18 then
#          UO.Cast('Magic Arrow','laststatus')
#          UO.Print("Spell")
#      else
#              UO.Print("Low mana!!!")
#      endif
#   endif
#end sub


Top
   
 Post subject:
PostPosted: 2005-07-01 09:25:18 
Offline
Sphere expert
User avatar

Joined: 2004-10-01 08:27:38
Posts: 1143
Location: Уфа
Со значком коментария в начале каждой строки стопудова ничего работать не будет.
:D

_________________
Сделал дело - флуди смело !!!


Last edited by Askaneli on 2005-07-01 10:08:35, edited 1 time in total.

Top
   
PostPosted: 2005-07-01 09:54:33 
Offline
User avatar

Joined: 2005-02-25 13:31:26
Posts: 62
Location: DRW, [Hussars]
_ALF_ wrote:
Пытался сделать себе скрипт для дрв чтоб кастовал маджик аров со скрола (лучше не спрашивайте зачем ) получилось вот что но со скрола все равно не качстует


'my' - это контейнер со скролами или что?

Code:
uo.useobject('my')
wait(200)
UO.FindType('0x1F32', '-1', 'my')
If UO.Findcount()>0 then


Top
   
 Post subject:
PostPosted: 2005-07-01 10:10:33 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
:lol:
ваще то 'my' это бекпак твоего чара.
У аффтара богатое воображение!

Code:
sub cast_arrow()
UO.WaitTargetObject('lasttarget')
UO.UseType( 'тип_скрола' )
end sub


Top
   
 Post subject:
PostPosted: 2005-07-01 10:21:31 
Offline
User avatar

Joined: 2005-02-25 13:31:26
Posts: 62
Location: DRW, [Hussars]
flake wrote:
:lol:
ваще то 'my' это бекпак твоего чара.


Хех, надо же... :lol:
Тока вот упростить, конечно, можно, но чел хочет универсальности: пока есть свитки - их юзать, а потом переходить на каст с регов.

Code:
sub Arrow() 
   UO.Set('lasttarget','laststatus')
   If UO.Count('0x1F32')>0 then
      if UO.Mana>=6 then
         UO.WaitTargetObject('lasttarget')
         UO.UseType('0x1F32')
         UO.Print("Scroll")
      else
         UO.Print("Low mana!!!")
      endif
   else
           if UO.Mana>=18 then
          UO.Cast('Magic Arrow','laststatus')
          UO.Print("Spell")
      else
              UO.Print("Low mana!!!")
      endif
   endif
end sub


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: No registered users and 7 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