Yoko

All sides of Injection
It is currently 2026-03-03 16:44:55

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2009-03-15 20:54:17 
Offline

Joined: 2006-08-31 15:05:51
Posts: 44
Хм... Что я не так сделал в этом скрипте,когда я его использую.то клиент начиает лагать?))) Что не так-то?(А так все работает! Помогите....


Code:
sub Bandageheal()    
VAR X=0
if UO.GetMaxHP() == UO.GetHP() then
      return true;
   endif
   if UO.Count(0x0E21) > 0 then
      var wep = UO.ObjAtLayer("Rhand");
      var sheld = UO.ObjAtLayer("Lhand")
      UO.WaitTargetObject("self");
      UO.UseType(0x0E21)
wait(100)       
uo.deletejournal()
      while not (X == 60 or uo.injournal("backpack") or uo.injournal ("reach that") or uo.injournal("current state") or uo.injournal("barely") or uo.injournal("mummy") or uo.injournal("target info"))
 
X=0
wend
uo.deletejournal()
   while wep <> UO.ObjAtLayer("Rhand")
            UO.Equip("Rhand", wep);
            wait(200)
         wend
      endif
      if sheld then
         while sheld <> UO.ObjAtLayer("Lhand")
            UO.Equip("Lhand", sheld);
 endif
wait(100)
 end sub




Спасибо...!


Top
   
 Post subject:
PostPosted: 2009-03-16 19:52:28 
Offline

Joined: 2006-08-31 15:05:51
Posts: 44
Эх...ни кто не знает что нитак-то в скрипте?

Как я понял,тормазит из-за того,что скрипт проверяет когда отхелится по журналу..и берет вэп! Хоть я и сам его написал,но понять-то не могу что не так-то!?

Всё-же нормально по-моему.Скрипт работае,но при работе клиент начинает тормазить 2-3 сек ...(((


Top
   
 Post subject:
PostPosted: 2009-03-17 08:44:10 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
У меня в подписи есть вери-полезная ссылка.

Да и вообще - вы про пустые циклы ни в жисть не слышали ?

И вообще у вас while не закрытый..

_________________
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
   
 Post subject:
PostPosted: 2009-03-17 15:37:27 
Offline

Joined: 2006-08-31 15:05:51
Posts: 44
Во блин!

Как-же я мог так оплашать...!))))

Спасибо большое! :oops:


Top
   
 Post subject:
PostPosted: 2009-03-17 15:52:08 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
drozd wrote:
Во блин!

Как-же я мог так оплашать...!))))

Спасибо большое! :oops:

Несмотря на отсутствие знака вопроса - я отвечу..

Ты так оплошал по одной простой причине - ты не следишь за оформлением скрипта.

Если бы ты держал оформление в порядке по мере написания скрипта - такого ни в жисть не случилось бы.

_________________
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  [ 5 posts ] 

All times are UTC+02:00


Who is online

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