Yoko
http://forum.yoko.com.ua/

Unplayable...HELP!!!
http://forum.yoko.com.ua/viewtopic.php?f=3&t=158
Page 1 of 1

Author:  inlazza [ 2004-04-21 18:48:39 ]
Post subject:  Unplayable...HELP!!!

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!!!

Author:  totus [ 2004-04-21 19:19:31 ]
Post subject:  Wait :)

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

Искренне Ваш, Тотус Маньяковски.

Author:  Yoko [ 2004-04-23 21:56:04 ]
Post subject: 

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)

Author:  inlazza [ 2004-04-27 20:46:46 ]
Post subject: 

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

Author:  Yoko [ 2004-04-28 23:15:19 ]
Post subject: 

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.

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/