Yoko

All sides of Injection
It is currently 2025-11-05 06:41:01

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2008-10-28 11:38:09 
Offline

Joined: 2004-07-12 13:03:57
Posts: 98
Пытаюсь смастерить скрипт на таминг и убийство с подходом и автонахождением зверушки. По мере написания и сдирания скриптов с форума выявилась ошибка в скрипте которая перегружает Ультиму так как один и тотже медвежонок находится нное количетво раз. Я уже расставил в скрипте время чтобы посмотреть на каком Этапе он сглюкивает но не получается найти Это место в скрипте:

Code:
sub f22() 

Var Vics=0x00d4
Var Vic
var myX=UO.GetX()
var myY=UO.GetY()
var lastX=myX
var lastY=myY
uo.set( "finddistance" , "8" )
repeat
   uo.FindType(Vics,-1, "ground" )
   if uo.FindCount() then
     Vic=UO.GetSerial('finditem')
      if uo.isNPC(Vic)==0 then
         repeat
            if uo.getdistance(Vic)>1 then
               MoveTo(1,1,Vic)
            end if
            wait(10000)
            uo.attack(Vic) #для начала аттака потом сюда блок таминга вставится
            wait(10000)
            endif
               until uo.GetX(Vic)<1
         wait(10000)
       uo.forget(Vic)
      endif
   endif
   #if uo.gety()>1375 then
   #      GotoXY(5306,1288)
   #      wait(100)
   # endif
    wait(10000)
until uo.gethp()<100
end sub


пишет на всю длинну окна ультимы повторно "items found 1" и вылетает, где может находится ошибка?


Top
   
 Post subject:
PostPosted: 2008-10-28 13:05:57 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Отступы выстави и найдёшь ошибку.

Да поможет тебе моя подпись.

PS: Вы действительно думаете, что людям которые захотят вам помочь - будет удобно читать ваш код с таким-то оформлением ?

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

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