Yoko

All sides of Injection
It is currently 2024-03-28 11:32:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2012-11-06 12:44:59 
Offline

Joined: 2012-11-06 11:38:56
Posts: 7
Суть такого надо что бы привключении скрипта вылетал таргет я указал на дерево чар его вырубил по окончанию рубки вылетал бы сного таргет и так все время!!!
Или если у кого есть то скрипт где таргетом промарчишь деревья и он их рубит но без всяких там реколов в дом просто цикл рубки по кругу!


Top
   
PostPosted: 2012-11-06 12:47:11 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
Вечером скину, если еще актуально будет, мессаги настроены под Абисс, впишешь сам для своего шарда.


Top
   
PostPosted: 2012-11-06 12:49:08 
Offline

Joined: 2012-11-06 11:38:56
Posts: 7
ок спасибо!!!только можешь обьяснить что за месаги а то я дуб дубом в скриптах!


Top
   
PostPosted: 2012-11-06 14:13:22 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Это не скрипты, это надо английский подучить. :roll:
Ну и читать на транслите :mrgreen:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2012-11-06 14:17:48 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
Да простого копипаста в нужное место из шоужурнал хватит)


Top
   
PostPosted: 2012-11-06 14:28:41 
Offline

Joined: 2012-11-06 11:38:56
Posts: 7
а все догнал че за мессаги)))))тупанул признаю!!!ну хорошо жду помощи а пока ручками рублю хотя уже у офигел рубить (((


Top
   
PostPosted: 2012-11-06 17:20:25 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
Code:
#///////////////////////////////////////////////////////////////
#//////////////Scripted/by/Hotride/for/The/Abyss////////////////
#///////////////////////////////////////////////////////////////

sub Lumber()
   uo.deletejournal()
   while true
      if CheckLumberNow() then
         GetLumberNow()
         GetLumberInstr()
      endif
      wait(1000)
   wend
end sub

Sub GetLumberNow()
   dim msgs[5]
   msgs[0]='in your pack'
   msgs[1]='but fail to'
   msgs[2]='no logs left'
   msgs[3]='That is too far away'
   msgs[4]='You have no line of sight to that location'
   var t=0,f=0
   repeat
      uo.deletejournal()
      uo.waittargettile('lasttile')
      GetLumberInstr()
      t=0
      repeat
         wait(1000)
         t=t+1
      until uo.injournal(msgs[0]) or uo.injournal(msgs[1]) or uo.injournal(msgs[2]) or uo.injournal(msgs[3]) or uo.injournal(msgs[4]) or t>=10
      if uo.injournal(msgs[1]) then
         f=f+1
      else
         f=0
      endif
   until uo.injournal(msgs[2]) or uo.injournal(msgs[3]) or uo.injournal(msgs[4])
   uo.deletejournal()
end sub

Sub CheckLumberNow()
   dim msgs[2]
   msgs[0]='in your pack'
   msgs[1]='but fail to'
   var i
   for i=0 to 1
      if uo.injournal(msgs[i]) then
         return 1
      endif
   next
   return 0
end sub

Sub GetLumberInstr()
   dim instr[4]
   instr[0]='0x0F43'
   instr[1]='0x0F39'
   instr[2]='0x0E85'
   instr[3]='0x0E86'
   var i
   while true
      for i=0 to 3
         uo.findtype(instr[i],-1,'my')
         if uo.findcount() then
            uo.useobject('finditem')
            return
         endif
      next
      uo.print('Не найден инструмент')
      wait(3000)
   wend
end sub


Посмотри, какие у тебя на шарде вылезают мессаги и замени эти на свои:
Code:
   msgs[0]='in your pack'
   msgs[1]='but fail to'
   msgs[2]='no logs left'
   msgs[3]='That is too far away'
   msgs[4]='You have no line of sight to that location'


Сюда впиши типы топоров, которыми будешь рубить:
Code:
   instr[0]='0x0F43'
   instr[1]='0x0F39'
   instr[2]='0x0E85'
   instr[3]='0x0E86'


Top
   
PostPosted: 2012-11-06 18:01:24 
Offline

Joined: 2012-11-06 11:38:56
Posts: 7
спасибо приеду проверю будет работать или нет!!!все равно спасибо


Top
   
PostPosted: 2012-11-06 19:56:21 
Offline

Joined: 2012-11-06 11:38:56
Posts: 7
спасибо большое работает!!только один вопрос мне нужно нажимать постоянно как закончит рубку ластаргет что бы ткнуть на другое дерево а можно сделать так что скрипт таргет выдовал ?


Top
   
PostPosted: 2012-11-06 20:19:17 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
msgs[2]='no logs left'
Сюда впиши мессагу, которая пишется когда логи в дереве кончились.
У меня нормально выдаёт таргет после вырубки дерева.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 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:  
Powered by phpBB® Forum Software © phpBB Limited