Yoko

All sides of Injection
It is currently 2026-03-10 16:45:13

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2004-08-12 16:31:55 
Offline

Joined: 2004-07-15 15:15:50
Posts: 7
Скрипт:

Code:
sub blood()
   WHILE not UO.Dead()
   if UO.Life < 160 then
      UO.usetype('0x0F06')
      UO.useobject('shield')
      UO.useobject('claw')
      wait(1000)
   end if
   wend
end sub


Во время исполнения скрипта начинаются жуткие лаги, в чем может быть проблема?


Top
   
PostPosted: 2004-08-12 17:47:07 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
CronAcronis wrote:
Скрипт:

Code:
sub blood()
   WHILE not UO.Dead()
   if UO.Life < 160 then
      UO.usetype('0x0F06')
      UO.useobject('shield')
      UO.useobject('claw')
      wait(1000)
   end if
   wend
end sub


Во время исполнения скрипта начинаются жуткие лаги, в чем может быть проблема?



"Уж сколько раз твердили миру..." Рассмотри случай когда здоровья у тебя 160 и больше. Скрипт превращается в пустой цикл (без каких-либо действий). Это приводит к полной загрузке проца и, соответственно, лагам... Замени endif на
else
wait(100)
endif
и все будет хорошо... Естественно, я не обсуждаю счас насколько хорошо будут работать те команды, которые ты включил в скрипт...


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: No registered users and 1 guest


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