Yoko

All sides of Injection
It is currently 2024-03-29 02:11:35

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2014-02-05 23:17:10 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
Проблема в том что когда чар в парализе он не может юзать скролл и соответственно пишет
you can`t reach that. и не чего не происходит как сделать чтобы в этот момент он кастовал с магии а не со скрола??
Code:
sub ligth3()  
   UO.FindType('0x1F4A',-1,'my')
   If UO.GetQuantity('finditem')>0 then
      if UO.Mana>=5 then
         UO.WaitTargetObject('lasttarget')
         UO.UseObject('finditem')
      else
      endif
   else
      if UO.Mana>=12 then
         UO.Cast('Lightning','lasttarget')
      else
      endif
   endif
end sub


Top
   
PostPosted: 2014-02-06 01:06:21 
Offline
User avatar

Joined: 2012-03-20 00:32:06
Posts: 243
Location: РФ, г. Москва
tyca7 wrote:
Проблема в том что когда чар в парализе он не может юзать скролл и соответственно пишет
you can`t reach that. и не чего не происходит как сделать чтобы в этот момент он кастовал с магии а не со скрола??
Code:
sub ligth3()  
   UO.FindType('0x1F4A',-1,'my')
   If UO.GetQuantity('finditem')>0 then
      if UO.Mana>=5 then
         UO.WaitTargetObject('lasttarget')
         UO.UseObject('finditem')
      else
      endif
   else
      if UO.Mana>=12 then
         UO.Cast('Lightning','lasttarget')
      else
      endif
   endif
end sub

Пробуй
Code:
   UO.FindType('0x1F4A',-1,'my') 
   If UO.GetQuantity('finditem')>0 then
      if UO.Mana>=5 then
         UO.WaitTargetObject('lasttarget')
         UO.UseObject('finditem')
      else
      endif
      If ou.injournal('you can`t reach that') then
         UO.Cast('Lightning','lasttarget')
      else
      endif
   else
      if UO.Mana>=12 then
         UO.Cast('Lightning','lasttarget')
      else
      endif
   endif

_________________
Не быть жадным - уже богатство, не быть расточительным – доход.
TylllKaH
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"


Top
   
PostPosted: 2014-02-06 01:42:03 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
спасибо огромное заработало но не сразу надо было ещё сообщение подрезать не много вот так)))

Code:
sub ligth3()  
  UO.FindType('0x1F4A',-1,'my')
   If UO.GetQuantity('finditem')>0 then
      if UO.Mana>=5 then
         UO.WaitTargetObject('lasttarget')
         UO.UseObject('finditem')
      else
      endif
      If UO.injournal('reach that') then
         UO.Cast('Lightning','lasttarget')
      else
      endif
   else
      if UO.Mana>=12 then
         UO.Cast('Lightning','lasttarget')
      else
      endif
   endif
end sub


Top
   
PostPosted: 2015-01-26 20:24:10 
Offline

Joined: 2015-01-07 17:22:11
Posts: 2
Привет Тушка.
Если можешь сделай мне из моего скрипта на касты с спелбуки и со свитка. Такой же как этому парню. Ну в плане что-бы мой скрипт тоже на пф каставал!
Или тот кто может переделайте плиз) Я пытался из этих не получилось!

Code:
sub fslast() 
   var f=0
   if    UO.Count("0x1f5f") > 0 then
      UO.waittargetlast()
      UO.Exec("usetype 0x1f5f")
      VAR fsscrlcnt=UO.Count("0x1f5f") - 1
      UO.Print(""+STR(fsscrlcnt)+" Flame Strike Scrolls left")
   else
      UO.waittargetlast()
      UO.Exec("cast 'Flame Strike'")
      f=1
      UO.Print("Warning!!! No Flame Strike Scrolls, Using Regs!")
   end if
end sub


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 17 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