Page 1 of 1

100 % performance CPU

Posted: 2004-08-28 12:56:30
by Miike
100% performance CPU ? what make it lower with inject ??

Re: 100 % performance CPU

Posted: 2004-08-28 15:30:33
by Edred
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: Select all

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: Select all

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

Posted: 2004-08-28 17:49:38
by Necr0Potenc3
actually all uo clients have a high cpu usage cause... oh well they suck.

Posted: 2004-08-28 20:39:46
by Miike
thx

Posted: 2004-08-29 15:41:00
by 333333
try
,set gdislower 20

Posted: 2004-08-30 08:30:43
by Shestak
Люди, помогите мне, я не разбираюсь в скриптах, но при включонном скрипте(дали друзья) у меня загрузка 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

Posted: 2004-08-30 22:57:15
by Lord Ruslan Nightmare
1) Повторяю еще раз - пользуйтесь тэгом

Code: Select all

[code]
[/code] для поста скриптов. Сил нет уже читать их в неформатированном виде!

2) Отформатированная версия:

Code: Select all

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) На первый взгляд никаких ошибок. Надо разбираться на месте, почему тормозит.

Posted: 2004-08-31 11:00:42
by Revenant
код 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