Yoko

All sides of Injection
It is currently 2024-04-18 07:52:12

All times are UTC+02:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
PostPosted: 2012-08-30 19:10:59 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
вот скрипт на фишинг, он хороший - ловля на корабле. Герой ловит,ловит, а потом дайот команду матросу "Back,forward" и другие. После чего корабль двигаетца в нужное направление, потом останавливаетца и герой больше не рыбачит. Скажите пожалуйста в чем может быть сук?


Last edited by dubd on 2012-09-03 15:29:45, edited 1 time in total.

Top
   
 
PostPosted: 2012-08-30 20:18:25 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
объявлено 10 элементов массива, всего 5, в цикле прогоняется 15.

15 строка

if uo.FindCount()>0 and uo.GetDistance("lastcorpse")<=then

потерял число перед then

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


Top
   
 
PostPosted: 2012-08-30 20:27:29 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
спасибо за ответ, а чего туда вставить нужно? если не сложно скажи!

всымысле к чему это чилсо будет относится?


Top
   
 
PostPosted: 2012-08-31 08:06:49 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
если предмет найден и дистанция до него меньше или равна X тогда


Х зависит от версии сферы. На 55 это 3-4 на 56 2-3. Лучше ставить 2

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


Top
   
 
PostPosted: 2012-08-31 12:09:46 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
ну вот я вставил, а ошибка осталась!
Code:
if uo.FindCount()>0 and uo.GetDistance("lastcorpse")2<=then


Top
   
 
PostPosted: 2012-08-31 14:02:47 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
2 поставь после <=


Top
   
 
PostPosted: 2012-08-31 14:12:53 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
о заработало!! спс Джуси и Мираж!

блин :| сейчас после лута выскакивает - "Line 14 :Runtime error''

сори что на мозг влияю, но не могли бы помочь!


Top
   
 
PostPosted: 2012-08-31 16:44:17 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
я по ласткорпсу никогда не лутил. Попробуй вот так:
Code:
sub Looting()
   var t,l
   t=1200
   dim LootingItem[4]
   uo.Print('Начинаем Лутать...')
   LootingItem[0] = '0x0EED' ## - Gold Coins
   LootingItem[1] = '0x1BDD' ## - logs
   LootingItem[2] = '0x0F3F' ## - arrows стрелы
   LootingItem[3] = '0x0F90' ## - Dead Wood
   if uo.GetDistance("lastcorpse")<=2 then
      uo.UseObject('lastcorpse')
      wait(t)
      for l=0 to 3
         uo.FindType(LootingItem[l],"-1","lastcorpse")
         if uo.FindCount()>0 and uo.GetDistance("lastcorpse")<=2 then
            uo.Print('Найден предмет: '+str(uo.findcount()))
            uo.Grab(-1,"finditem")
            wait(t)
         end if
      next
   endif
end sub

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


Top
   
 
PostPosted: 2012-09-05 15:41:55 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Создай другую тему - не надо менять первый топик и заглавие. Либо просто в теле темы задавай вопрос. Эту тему закрываю так как "осчастливлен".

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


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 19 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