warrior993
2009-08-06 06:57:48
Hi guys!
This is my first sort-of major scar script, it goes through most of the Neopets daily duties stuff such as collect bank interest, get omelette, etc. Please test/complain/criticize! Keep in mind this is basically my first (scar) script ever, so sorry for the bad programming style. Also, I know I could have made the script type in the URL's, but I wanted to practice making SCAR use mouse clicks instead. Oh yea, I know I used bitmaps for a lot of the text on Neopets, I'm trying to figure out how to get SCAR to detect font. If someone can help me that'd be great!
Instructions: log into neopets and press ctrl + alt + r to run script! My screen resolution is 1280 by 768, although that shouldn't affect anything (except one of the daily duties, which the script SHOULD skip if it fails to complete it).
Awkwardsaw
2009-08-06 07:11:09
wow, im taking a look at this, and NICE JOB haha. i forget my neopets account from a while ago, so i cant test it, but so far as a first script especially, its pretty good(things can be improved, but smallish things i guess)
but one big thing: i didnt find ANY free bitmaps. i dont care what cpu you have, but that would murder your memory, especially at the amount of bitmaps, and the size :) just saying
how long did it take to make all of this?
warrior993
2009-08-06 08:01:14
From: Awkwardsaw
wow, im taking a look at this, and NICE JOB haha. i forget my neopets account from a while ago, so i cant test it, but so far as a first script especially, its pretty good(things can be improved, but smallish things i guess)
but one big thing: i didnt find ANY free bitmaps. i dont care what cpu you have, but that would murder your memory, especially at the amount of bitmaps, and the size :) just saying
how long did it take to make all of this?
XD, sorry, what do you mean by "free" bitmaps? Also, I've tested this script as-is 3 times, and if I remember correctly, it only took 100-150ms to compile. I have a pentium 4 comp, so I'm pretty sure this should run super-speedy on an average PC. Since bitmaps DO seem like they would eat up a lot of memory, I'm considering making it detect text instead (when I figure out how). Also, it only took me 2 days, total of about 4 hours.
FreeBitmap(bitmap: Integer);
Once the script doesn't need the bitmap (usually at the very end), you should use that.
senrath
2009-08-06 08:20:14
From: ian.
FreeBitmap(bitmap: Integer);
Once the script doesn't need the bitmap (usually at the very end), you should use that.
Correct me if I'm wrong, but doesn't SCAR automatically free all bitmaps and DTMs when the script finishes?
Not unless that was recently added.
senrath
2009-08-06 09:49:39
From: ian.
Not unless that was recently added.
It was an assumption I made based on this line from the changelog (under bugfixes):
Resources were not freed as they are when a script finishes when terminating a script by force
If not bitmaps, DTMs, and the like, what is resources referring to?
=X Where'd you find that change log? :o It seems like it would have to be something in SCAR because there's no ScriptTerminate procedure in SRL, I don't think.
senrath
2009-08-06 10:58:28
I got it when I downloaded SCAR 3.21 Alpha via SVN.
Hm. Well even with SCAR 3.21 I've seen developers using FreeBitmap/FreeDTM still, and they recommend SCAR 3.21. And, it couldn't hurt to be safe. :)
Awkwardsaw
2009-08-06 18:49:52
freebitmap(or dtm) should be standard, when ever you use them. there are plenty neat tuts out there :p i think the best are in the intermediet section