SRL Archive - RS3 Outdated / Broken Scripts

Trouble With PROPERFLETCHER


shawnrussow

2007-02-02 14:14:10

well, my browser messed up when i first tried to post this, it seems it made the thread but not the post. so i will post again.

I am using the PROPERFLETCHER script, and it was working great for awhile until recently, i have been getting an error that seems to happen randomly..

[Runtime Error] : Math error in line 62 in script C:\Program Files\SCAR 2.03\includes\Si.scar

line 62 of Si.scar is this..

 result:=Trunc(Sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))+0.999999);

I cut about 7-9k logs before this started to happen. im not sure why this is happening, but if anyone knows a solution, i would gladly appreciate the help.

Thanks,
Shawn

Boreas

2007-02-02 17:22:50

Try changing to this

result:=Trunc(Sqrt((max(x1,x2)-min(x1,x2))*(max(x1,x2)-min(x1,x2))+(max(y1,y2)-min(y1,y2))*(max(y1,y2)-min(y1,y2)))+0.999999);

BTW, any script that doesn't use SRL is outdated.

shawnrussow

2007-02-02 21:30:12

i used it a little more, and i *think*, not positive, but i think that it happens when i close and reopen the lid on my laptop.
it sounds really strange, but i left the lid open, and it never happend for 6k logs, then i closed the lid, opened it a bit later, and it got the error.

the reason i use this one, is that i couldnt find another working one that was new.

thanks,
shawn

YoHoJo

2007-02-02 21:40:55

Also, wrong section.
This belongs in the "Script Help" Section.
Please post any topics like this in there =)

legendaryhero90

2007-02-02 22:22:42

From: yohojo8
Also, wrong section.
This belongs in the "Script Help" Section.
Please post any topics like this in there =)


Mods please move this