SRL Archive - RS3 Outdated / Broken Scripts

Yet another Woodcutter + Firemaker!


marpis

2008-11-20 07:20:03

SCRIPT REMOVED!
i decided its not functionable enough.
I'll publish a 100% working version in a couple of weeks.

Mod remove this thread! :)

Kyle Undefined

2008-11-20 10:17:21

I'm going to try it out after I get back from class.

*Reserved for Proggie*

~Camo

mormonman

2008-11-20 16:33:03

… nice script just add more types of trees and logs!!!

reserved for proggie*will be better than camo's

Edit: script is kinda fail… worked like one minute and it lagged the computer when it ran… it tried to start a lot of fires on another fire… sorry needs some work!

marpis

2008-11-22 08:08:37

weird :S are u sure it wasn't your computer or internet connection that lagged?

mormonman

2008-11-22 12:44:13

ummm ya… its my autoing computer and it never lags during autoing… its a phenom x2…

marpis

2008-11-23 15:51:10

ummh :S can u find something in my script that makes it laggy? And why it doesnt lag with me, i don't have any über computer :o Acer dual-core, 4bg DDR, running vista

gimillii1592

2008-11-27 19:35:47

didnt work….logged in and i lagged out

marpis

2008-11-30 16:53:24

:S well that is strange? Some1 tell me why it lags, because i have no idea.
As mentioned, for me it works just fine.

mormonman

2008-12-03 14:03:09

i don't know if you have to free bitmaps like you have to free dtms… let me try and find out.
EDIT:
yes, you need to free the log bitmap after its used
just add the this

FreeBitmap(log) //frees the bitmap to prevent lag after the bitmap is used once
to the end of every procedure… or you could just add the loadbitmaps procedure to any procedure that need the log bitmap… then add the freebitmap thing

marpis

2008-12-05 00:35:36

do u mean like
procedure droplog;
begin
FindBitmap(log, x, y ....);
Mouse(x, y, 0, 0, false);
ChooseOption('rop');
FreeBitmap(log);
end;

??? ofc that is just an example, but do u mean that i must FreeBitmap after every procedure that uses bitmap log? Do i need to free it before every right-click and drop?

senrath

2008-12-05 00:39:05

Nah, just add this to your script:
Procedure ScriptTerminate;
begin
FreeBitmap(log);
end;

That'll free the Bitmap from memory when the script terminates. Don't worry about using that procedure in any other part of your script. You just have to have it exist somewhere in your script and it will call itself when its needed.

Blumblebee

2008-12-05 00:45:34

to reduce lag you could also do a try finally except thingy.

Ex.

procedure lightfire; {or whatever your calling it (didnt look at the script really :P)}
begin
LoadBitmap;
try
{Do Whatevers in there}
finally
freebitmap(bitmap);
except end;
end;

i hope you understand that haha. Theres a tut on it i think, maybe take a look at it. Should save memory, by freeing it (Although it also would take up memory by constantly loading and freeing it lol)

marpis

2008-12-05 07:55:31

From: senrath
Nah, just add this to your script:
Procedure ScriptTerminate;
begin
FreeBitmap(log);
end;

That'll free the Bitmap from memory when the script terminates. Don't worry about using that procedure in any other part of your script. You just have to have it exist somewhere in your script and it will call itself when its needed.


Do you mean
Procedure ScriptTerminate;
begin
FreeBitmap(log);
TerminateScript;

And then i replace all the "TerminateScript"- commands i have with "ScriptTerminate"?

ANYWAY SCRIPT UPDATED (now has freebitmaps, doesnt lag)

JuKKa

2008-12-05 07:57:47

no.

just add that procedure to ur script. It will automatically be called when u stop the script.

marpis

2008-12-05 09:30:04

Well, now it is there other way. No matter actually…

jneves7

2008-12-16 18:09:13

hmmm, i might test this later

Gold

2008-12-23 15:19:55

Hmm, Seeing as there isn't Many posts yet I shall reserve a spot.

Good Luck Progress report soon hopefully!