Yoko

All sides of Injection
It is currently 2026-03-10 14:58:13

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: 100 % performance CPU
PostPosted: 2004-08-28 12:56:30 
Offline

Joined: 2004-08-23 22:19:33
Posts: 3
100% performance CPU ? what make it lower with inject ??

_________________
:D


Top
   
PostPosted: 2004-08-28 15:30:33 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Miike wrote:
100% performance CPU ? what make it lower with inject ??


Check your scripts and find all empty cycles. Insert in each 'wait(100)' and enjoy. For example:

Code:
while TRUE
   if UO.Life < 100 Then
       UO.Bandageself()
   endif
wend


This script is very bad. If your health greater 100 you have empty cycle and 100% performance CPU. Correct it:

Code:
while TRUE
   if UO.Life < 100 Then
       UO.Bandageself()
   endif
   wait(100)
wend


Top
   
 Post subject:
PostPosted: 2004-08-28 17:49:38 
Offline
Expert!

Joined: 2004-05-30 00:31:54
Posts: 74
actually all uo clients have a high cpu usage cause... oh well they suck.


Top
   
 Post subject:
PostPosted: 2004-08-28 20:39:46 
Offline

Joined: 2004-08-23 22:19:33
Posts: 3
thx

_________________
:D


Top
   
 Post subject:
PostPosted: 2004-08-29 15:41:00 
Offline

Joined: 2004-07-28 12:39:29
Posts: 22
try
,set gdislower 20


Top
   
 Post subject:
PostPosted: 2004-08-30 08:30:43 
Offline

Joined: 2004-07-23 11:05:19
Posts: 22
Люди, помогите мне, я не разбираюсь в скриптах, но при включонном скрипте(дали друзья) у меня загрузка 100 процентов.
sub camping()
VAR q,w
UO.Exec("useobject 0x40173350") # Открытие сумки с щепками
UO.Exec("useobject 0x40173350") # Открытие сумки с щепками
Wait(3000)
start:
FOR q = -3 to 3
FOR w = -3 to 3
kidat(q,w)
NEXT
NEXT
While UO.CountGround(0x0DE3) > 1000 # ВО! Если будет гореть больше 100 щепок бум качать хидинг
Wait(10000)
Wend
goto start
end sub
sub kidat(q,w)
VAR X
picking()
X = UO.Count(0x0DE1)
UO.Waittargettype(0x0DE1)
UO.Exec("drop 1 "+STR(q)+" "+STR(w)+"")
While X == UO.Count(0x0DE1)
Wait(500)
Wend
While UO.CountGround(0x0DE1) > 0
UO.Usefromground(0x0DE1)
Wait(500)
Wend
UO.Print(STR(UO.CountGround(0x0DE3)))
end sub
sub picking()
VAR X
If UO.Count(0x0DE1) < 20 then
X=UO.Count(0x0DE1)
UO.Exec("findtype 0x0DE1 0x0000 0x40173350")#сумака с щепками
UO.Exec("unsetreceivingcontainer")
UO.Exec("grab 200 finditem")
While X == UO.Count(0x0DE1)
Wait(800)
Wend
End if
end sub


Top
   
 Post subject:
PostPosted: 2004-08-30 22:57:15 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
1) Повторяю еще раз - пользуйтесь тэгом
Code:
[code][/code]
для поста скриптов. Сил нет уже читать их в неформатированном виде!

2) Отформатированная версия:
Code:
sub camping() 
  VAR q,w
  UO.Exec("useobject 0x40173350") # Открытие сумки с щепками
  UO.Exec("useobject 0x40173350") # Открытие сумки с щепками
  Wait(3000)
  start:
    FOR q = -3 to 3
      FOR w = -3 to 3
        kidat(q,w)
      NEXT
    NEXT
    While UO.CountGround(0x0DE3) > 1000 # ВО! Если будет гореть больше 100 щепок бум качать хидинг
      Wait(10000)
    Wend
    goto start
end sub

sub kidat(q,w)
  VAR X
  picking()
  X = UO.Count(0x0DE1)
  UO.Waittargettype(0x0DE1)
  UO.Exec("drop 1 "+STR(q)+" "+STR(w)+"")
  While X == UO.Count(0x0DE1)
    Wait(500)
  Wend
  While UO.CountGround(0x0DE1) > 0
    UO.Usefromground(0x0DE1)
    Wait(500)
  Wend
  UO.Print(STR(UO.CountGround(0x0DE3)))
end sub

sub picking()
  VAR X
  If UO.Count(0x0DE1) < 20 then
    X=UO.Count(0x0DE1)
    UO.Exec("findtype 0x0DE1 0x0000 0x40173350")#сумака с щепками
    UO.Exec("unsetreceivingcontainer")
    UO.Exec("grab 200 finditem")
    While X == UO.Count(0x0DE1)
      Wait(800)
    Wend
  End if
end sub



3) На первый взгляд никаких ошибок. Надо разбираться на месте, почему тормозит.

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-08-31 11:00:42 
Offline

Joined: 2004-08-05 21:12:19
Posts: 54
код wrote:
Люди, помогите мне, я не разбираюсь в скриптах, но при включонном скрипте(дали друзья) у меня загрузка 100 процентов.
sub camping()
VAR q,w
UO.Exec("useobject 0x40173350") # Открытие сумки с щепками
UO.Exec("useobject 0x40173350") # Открытие сумки с щепками
Wait(3000)
start:
FOR q = -3 to 3
FOR w = -3 to 3
kidat(q,w)
NEXT
NEXT
While UO.CountGround(0x0DE3) > 1000 # ВО! Если будет гореть больше 100 щепок бум качать хидинг
Wait(10000)
Wend
goto start
end sub

sub kidat(q,w)
VAR X
picking()
X = UO.Count(0x0DE1)
UO.Waittargettype(0x0DE1)
UO.Exec("drop 1 "+STR(q)+" "+STR(w)+"")
While X == UO.Count(0x0DE1)
Wait(500)
Wend
While UO.CountGround(0x0DE1) > 0
UO.Usefromground(0x0DE1)
Wait(500)
Wend
wait(300)
UO.Print(STR(UO.CountGround(0x0DE3)))
end sub

sub picking()
VAR X
If UO.Count(0x0DE1) < 20 then
X=UO.Count(0x0DE1)
UO.Exec("findtype 0x0DE1 0x0000 0x40173350")#сумака с щепками
UO.Exec("unsetreceivingcontainer")
UO.Exec("grab 200 finditem")
While X == UO.Count(0x0DE1)
Wait(800)
Wend
End if
wait(300)
end sub


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

All times are UTC+02:00


Who is online

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