Results 1 to 11 of 11

Thread: Neopets Daily Duties Automator

  1. #1
    Join Date
    Mar 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Neopets Daily Duties Automator

    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).

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    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?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Mar 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    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.

  4. #4
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FreeBitmap(bitmap: Integer);

    Once the script doesn't need the bitmap (usually at the very end), you should use that.

  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by ian. View Post
    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?

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not unless that was recently added.

  7. #7
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by ian. View Post
    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?

  8. #8
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    =X Where'd you find that change log? It seems like it would have to be something in SCAR because there's no ScriptTerminate procedure in SRL, I don't think.

  9. #9
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    I got it when I downloaded SCAR 3.21 Alpha via SVN.

  10. #10
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  11. #11
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    freebitmap(or dtm) should be standard, when ever you use them. there are plenty neat tuts out there i think the best are in the intermediet section
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •