Unplayable...HELP!!!

Ask for help

Moderators: Murderator+, Murderator

Post Reply
inlazza
Posts: 2
Joined: 2004-04-21 18:14:43

Unplayable...HELP!!!

Post by inlazza »

When I start a Script the game start to became unplayable cause runs very slow! but ONLY when starts...
I have XP2500+, 512MB PC3200, GeF 5900XT and 240GB RAID HD...enough i think!!!
totus
Posts: 48
Joined: 2004-04-17 23:02:41
Location: Odessa, Ukraine
Contact:

Wait :)

Post by totus »

Try using subject:
Wait(1000) [1000 = 1000ms = 1sec.]

Искренне Ваш, Тотус Маньяковски.
...thinking - 37% complete...
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

if there is empty cycles like

label:
goto label

and all other variants of such situations, this cause all CPU resources consumption.

in each cycle at least 50 ms delay needed, for example
wait(50)
inlazza
Posts: 2
Joined: 2004-04-21 18:14:43

Post by inlazza »

I already insert "wait()"...

This is the code...

sub sparro()
var nbende = UO.Count("bandage")
UO.Print("SPARRO macro is Active!!!")
repeat

if nbende > 0 then

if (UO.Life <=25) then
UO.Press(35)
UO.Press(35)
UO.Press(35)
UO.Press(35)
UO.say("...");
UO.Print("...")
end if

if (UO.Life < UO.STR - 55) then
UO.bandageself()
wait(10000)
nbende = UO.Count("bandage")
end if
else
UO.Press(35)
UO.Press(35)
UO.Press(35)
UO.Press(35)
UO.say("...");
UO.Print("...")
end if

until nbende == 0

end sub
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

inlazza wrote:
sub sparro()
repeat
if nbende > 0 then
...
end if

until nbende == 0

end sub


as you see no wait here if nbende <= 0
i told you so before.
Post Reply