Yoko

All sides of Injection
It is currently 2024-03-28 19:14:16

All times are UTC+02:00




Post new topic  Reply to topic  [ 144 posts ]  Go to page Previous 14 5 6 7 8
Author Message
PostPosted: 2013-03-11 08:22:17 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
Вполне сойдет, но в скрипте надо дописать коммент с ссылкой на модуль, я к тому это написал, что стандартными средствами инжекта тоже реализуемо))


Top
   
PostPosted: 2013-03-12 17:30:23 
Offline
User avatar

Joined: 2007-06-20 15:38:11
Posts: 53
спасибо, буду пробывать


Top
   
PostPosted: 2014-06-22 23:49:56 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
ZeroDX wrote:
Вижу только через
Code:
UO.InJournal('What do you want')

Хотя на много проще будет просто выставить задержку после рубки


добавьте пожалуйста эту проверку сюда, а то он сто питсот раз тыкает по топору тем самым фейлит рубку заранее спасибо!
Code:
Sub doMineTree()
   var x, y, t, LastTimer
   var end = "Òóò íå÷åãî ðóáèòü|nothing|no logs|You can|Âû íå ìîæåòå äî ýòîãî äîñòàòü|Äåðåâî ñëèøêîì äàëåêî|too far away|ñâîáîäíûì äëÿ âàøåãî óäàðà"
   var try = "Âû ïîëîæèëè|hack|Hack|Fail|fail|nothing|You put|Âû óäàðèëè ïî äåðåâó|You hack at the tree|no logs|Âû íå ìîæåòå äî ýòîãî äîñòàòü|You can|reach this|Äåðåâî ñëèøêîì äàëåêî|That is too far away|do much|Ýòî êàæåòñÿ ñâîáîäíûì äëÿ âàøåãî óäàðà|It appears immune to your blow|àòàêóåò"
   repeat
      x = val( uo.getGlobal( "tree_x" ) )
      y = val( uo.getGlobal( "tree_y" ) )
      t = val( uo.getGlobal( "tree_t" ) )
      uo.setGlobal( 't:' + str( x ) + "," + str( y ), "empty" )
      Walker( x, y, 1 )
      uo.exec( "exec searchTree" )
      repeat
         if uo.waiting() then
            uo.canceltarget()
         endif
         deljournal( try + "|" + end )
         uo.waittargettile( str( t ), str( x ), str( y ), str( uo.getZ() ) )
         uo.usetype( hatchet )
         LastTimer=UO.Timer()
         repeat
            wait( 100 )
         until uo.injournal( try + "|" + end ) || UO.Timer()>LastTimer+50
      until uo.injournal( end )
      while uo.getGlobal( "tree_x" ) == str( x ) && uo.getGlobal( "tree_y" ) == str( y )
         wait( 100 )
      wend
   until false
endsub


Top
   
PostPosted: 2015-03-17 19:04:50 
Offline

Joined: 2015-03-17 00:04:50
Posts: 9
i will try to use this script but its saying line 9 - function not found ABS


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 144 posts ]  Go to page Previous 14 5 6 7 8

All times are UTC+02:00


Who is online

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