Yoko

All sides of Injection
It is currently 2026-03-16 20:50:37

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2004-11-19 23:31:55 
Offline
User avatar

Joined: 2004-11-02 23:52:47
Posts: 86
Я тут написал маненький скрипт, для... да неважно %)
в скрипте он должен реколиться по руне, но вот главная проблема у меня в том, как вставить в него проверку на сейф и на физл. приведу маненькую часть:
Code:
UO.Cast('Recall',Rune1) 
;(вот тут надо вставить проверку)
wait(5000)

Помогите пожалуйсто.


Top
   
PostPosted: 2004-11-20 03:11:06 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Code:
sub Recall(rune)
var lastX=uo.getX(),lastY=uo.getY()
   while uo.getX()==LastX and uo.getY()==LastY
      CheckLag()      
      uo.waittargetobject(rune)
      uo.cast('Recall')
      repeat
         wait(1000)         
      until uo.getX()<>LastX or uo.getY()<>LastY or UO.InJournal("The spell fizzles.") or UO.InJournal('You lack') or UO.Dead()
      if UO.InJournal('You lack') or UO.Dead() then
         return 1
      end if      
   wend      
end sub


Top
   
PostPosted: 2004-11-20 03:26:52 
Offline
User avatar

Joined: 2004-11-02 23:52:47
Posts: 86
Sfagnum wrote:
Code:
sub Recall(rune)
var lastX=uo.getX(),lastY=uo.getY()
   while uo.getX()==LastX and uo.getY()==LastY
      CheckLag()      
      uo.waittargetobject(rune)
      uo.cast('Recall')
      repeat
         wait(1000)         
      until uo.getX()<>LastX or uo.getY()<>LastY or UO.InJournal("The spell fizzles.") or UO.InJournal('You lack') or UO.Dead()
      if UO.InJournal('You lack') or UO.Dead() then
         return 1
      end if      
   wend      
end sub

Спасибо конечно, но можно вставить его именно в мой, и с коменрариями желательно :roll: я просто в своём скрипте. не хочу использовать иные Sub кроме main :roll: Плиззз :roll:


Top
   
PostPosted: 2004-11-20 12:45:03 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Optical wrote:
Спасибо конечно, но можно вставить его именно в мой,
можно конечно, я не против
Optical wrote:
и с коменрариями желательно :roll:
там и так всё предельно просто
Optical wrote:
я просто в своём скрипте. не хочу использовать иные Sub кроме main :roll: Плиззз :roll:
не используй


Top
   
PostPosted: 2004-11-20 16:30:45 
Offline
User avatar

Joined: 2004-11-02 23:52:47
Posts: 86
Sfagnum wrote:
можно конечно, я не против

Ну так вставь %)) у самого мозгов не хватит =)


Top
   
PostPosted: 2004-11-20 23:47:47 
Offline

Joined: 2004-11-19 20:48:54
Posts: 2
Code:
        var lastX,lastY()

        lastX=uo.getX()
        lastY=uo.getY()
   while uo.getX()==LastX and uo.getY()==LastY         
      uo.waittargetobject(rune1)
      uo.cast('Recall')
      repeat
         wait(1000)         
      until uo.getX()<>LastX or uo.getY()<>LastY or UO.InJournal("The spell fizzles.")
   wend      

Вот. Но так делать по меньшей мере глупо. От процедур не уйдешь. :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 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