Yoko

All sides of Injection
It is currently 2024-03-28 22:05:03

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2007-07-12 02:22:23 
Offline

Joined: 2006-08-31 15:05:51
Posts: 44
Дело в том,что я играю на сфере с инжой и не могу понять почему этот макр хелит моего врага,когда его нет(убегает за экран или в хайд)то хелит меня.Помогите разобраться пожалуйста.


Code:
sub GHeal()
   VAR ManaNeed=11
   VAR ManaNeedScroll=5
   If UO.Life<UO.Str Then
      UO.FindType('0x1F49',-1,'my')
      If UO.FindCount()>0 Then
         If UO.Mana>=ManaNeedScroll Then
            UO.WaitTargetSelf()
            UO.UseObject('finditem')
            UO.Print("C TyaJIeTHoN byMarU!!!")
         Else
            UO.Print("Low mana scroll!!!")
         Endif
Wait (1500)
UO.Attack('lastattack')      
Else
         If UO.Mana>=ManaNeed Then
            UO.Cast('Greater Heal','self')
            UO.Print("Spell!!!")
         Else
            UO.Print("TTUDORbI,III,a 3aBaJIAT,TToPa C'e6OBaTb!!!")
         Endif
      Endif
   Else
      UO.Print("rOpeU,!!!")
   Endif
Wait (2200)
UO.Attack('lastattack')
end sub



Поидде все же правельно,хотя может и ошибаюсь....))


Top
   
 Post subject:
PostPosted: 2007-07-12 09:34:11 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Разбей скрипт. 3х этажные скрипты никогда не были эффективными


Top
   
PostPosted: 2007-07-12 10:27:55 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
Code:
sub GHeal()
VAR ManaNeed=11
VAR ManaNeedScroll=5
If UO.Life<UO.Str Then
 UO.FindType('0x1F49',-1,'my')
  If UO.FindCount()>0 and UO.Mana>=ManaNeedScroll Then
    UO.WaitTargetObject('self')
    wait(50)
    UO.UseObject('finditem')
    UO.Print("C TyaJIeTHoN byMarU!!!")
    return 1
  Else
    UO.Print("Low mana or no scroll!!!")
  Endif
  Wait (1500)
  UO.Attack('lastattack')      
  If UO.FindCount()>0 and UO.Mana>=ManaNeed Then
    UO.Cast('Greater Heal','self')
    wait(50)
    UO.Print("Spell!!!")
  Else
    UO.Print("TTUDORbI,III,a 3aBaJIAT,TToPa C'e6OBaTb!!!")
  Endif
else
  UO.Print("rOpeU,!!!")
Endif
Wait (2200)
UO.Attack('lastattack')
end sub


немного поправил и сделал более читабельным. пробуй.


Top
   
 Post subject:
PostPosted: 2007-07-15 00:06:34 
Offline
User avatar

Joined: 2005-01-13 07:20:54
Posts: 528
а примем тут реквест? жаль не модер я

_________________
все для альфы , [url=http://newvlad.nm.ru/prog]здесь[/url]
модернизация ремонт продажа игровых консолей
Sky: admirka1 Москва


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

All times are UTC+02:00


Who is online

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