Page 1 of 2 12 LastLast
Results 1 to 25 of 46

Thread: [Simba] Forest Exterminator

  1. #1
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Post [Simba] Forest Exterminator

    Hi guys/girls,

    make a woodcutting script for you all.

    The script is made to work with Simba and S.M.A.R.T.

    Its a full color script that is designed to cut Trees/Oaks/Willows and Yews at Draynor and bank the logs, it will auto detect tree to cut depending on your woodcutting level (i know willows give better exp)

    it can also be used at just a specific tree type cutter if needed to.

    Please post reports and problems

    To-Do:
    Axe upgrading based on woodcutting level or attack level.
    Improve waitwhilechopping
    Improve walking
    any suggestions please post?
    Last edited by Bobzilla69; 09-29-2010 at 09:02 AM. Reason: update script

  2. #2
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  3. #3
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Quote Originally Posted by bobzilla69 View Post
    Reserved for Reports
    1st =) can't wait to try this out, setting up 3 players at draynor!

  4. #4
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    1st =) can't wait to try this out, setting up 3 players at draynor!
    hope you like it, you should check out the auto detecting, i made a new account to test it all ready can cut willows only ran it for a few hours, 6 loads with re running enabled = win

  5. #5
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    yeah the accs i'm about to run it with have 1 wc, so i just leave Strings[0] and Strings[1] blank correct?

  6. #6
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    yeah the accs i'm about to run it with have 1 wc, so i just leave Strings[0] and Strings[1] blank correct?
    just leave
    Simba Code:
    Integers[2] := 0; // tahts the woodcutting level so 0 will mean it auto detects, if you put 10 it will only cut tree's
        Strings[0] := '';  // that it tree type for the TPA to get colors

  7. #7
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    ok an one thing, your 'function' fastclicker() should be a procedure, as because it doesn't return a result =)

  8. #8
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    ok an one thing, your 'function' fastclicker() should be a procedure, as because it doesn't return a result =)
    oh that, its not really suppose to be in here, its function i am working on

    will remove and re-upload script

  9. #9
    Join Date
    Sep 2010
    Location
    Oxford, Michigan
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just wondering is there anywhere to input your bank pin in the script? thats the only thing I cant seem to find other than that your script worked great for me.

  10. #10
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dhandley12 View Post
    Just wondering is there anywhere to input your bank pin in the script? thats the only thing I cant seem to find other than that your script worked great for me.
    oh yeh, hehehe, forgot to add pin support.

    thanks will add that to my list of things to do.

  11. #11
    Join Date
    Sep 2010
    Location
    Oxford, Michigan
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no problem. Question can I just imput the pin code from a different script into this for it to work or is it more complex than that? I am not a scripter so I have no clue here.

  12. #12
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by dhandley12 View Post
    no problem. Question can I just imput the pin code from a different script into this for it to work or is it more complex than that? I am not a scripter so I have no clue here.
    In the Bank function, right before it says
    SCAR Code:
    if (BankScreen) then

    add this

    SCAR Code:
    if (PinScreen) then
      InPin(Players[CurrentPlayers].Pin);

    and in the declare players add this

    SCAR Code:
    Players[0].Pin := 5555;

    Take note , I did not even download this script, nor open up simba so I am not sure if it compiles.

  13. #13
    Join Date
    Sep 2010
    Location
    Oxford, Michigan
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I couldn't get it to work but i am not a scripter so it is probably my fault not yours. Thank you anyway.

  14. #14
    Join Date
    Sep 2010
    Location
    Oxford, Michigan
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I couldn't get it to work but I am not a scripter so its probably my fault not yours. Thanks for trying to help ill just wait on bobzilla to finish it.

  15. #15
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by Camaro' View Post
    In the Bank function, right before it says
    SCAR Code:
    if (BankScreen) then

    add this

    SCAR Code:
    if (PinScreen) then
      InPin(Players[CurrentPlayers].Pin);

    and in the declare players add this

    SCAR Code:
    Players[0].Pin := 5555;

    Take note , I did not even download this script, nor open up simba so I am not sure if it compiles.
    You don't need to do most of that.. I don't know why everyone always adds so much for pin support..

    All you need to do is add Players[xxx].Pin := '1234'; in DeclarePlayers (where xxx is the player number).

  16. #16
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    I didn't know that, thanks.

  17. #17
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    New version available V1.10

    Improvements:

    Improved walking
    Added Pin support

    Quote Originally Posted by i luffs yeww View Post

    All you need to do is add Players[xxx].Pin := '1234'; in DeclarePlayers (where xxx is the player number).
    that might work for OpenBank(); srl versions, but i made my own open bank procedure so i need to add checking for pin screen and enter pin like Camaro said.

    Quote Originally Posted by Camaro' View Post
    In the Bank function, right before it says
    SCAR Code:
    if (BankScreen) then

    add this

    SCAR Code:
    if (PinScreen) then
      InPin(Players[CurrentPlayers].Pin);

    and in the declare players add this

    SCAR Code:
    Players[0].Pin := 5555;

    Take note , I did not even download this script, nor open up simba so I am not sure if it compiles.
    yes that basically what was needed, thanks for trying to help.

  18. #18
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Testing over night

  19. #19
    Join Date
    Sep 2010
    Location
    Oxford, Michigan
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Script is running pretty nice for me right now except for the occasional error:
    Error: Exception: The given DTM Index[0] doesn't exist at line 331
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
    File[C:\Simba\Includes\SRL/logs/SRL log 27-09-10 3.txt] has not been freed in the script, freeing it now.
    [Error] (54:3): Unknown identifier 'AddToReport' at line 53
    Compiling failed.
    [Hint] (788:3): Variable 'MARKT' never used at line 787

    This error kills the script though and makes me have to restart it.

  20. #20
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dhandley12 View Post
    Script is running pretty nice for me right now except for the occasional error:
    Error: Exception: The given DTM Index[0] doesn't exist at line 331
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
    File[C:\Simba\Includes\SRL/logs/SRL log 27-09-10 3.txt] has not been freed in the script, freeing it now.
    [Error] (54:3): Unknown identifier 'AddToReport' at line 53
    Compiling failed.
    [Hint] (788:3): Variable 'MARKT' never used at line 787

    This error kills the script though and makes me have to restart it.
    thats interesting.

    the only dtm i use is in line 720 (there abouts) for my banking, and it does get freed.

    the AddToReport is in SRL so must be a problem in there, will have to look into that.

    have you managed to get a load done or does it produce the error quickly?

    edit: small update, adding FreeSRLBitmaps after doing findnormalrandom, i looked through the code and it didnt seem to free them after use. hopefully will help with script problem (i have yet to experiences the error)
    Last edited by Bobzilla69; 09-28-2010 at 08:57 AM.

  21. #21
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    You still need those try adding it to terminate script instead. As it only loads them once. and is supposed to free them upon exiting the script.

    E: Found the tut on it by Naum Here.
    Last edited by BraK; 09-28-2010 at 09:51 AM.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  22. #22
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by BraK View Post
    You still need those try adding it to terminate script instead. As it only loads them once. and is supposed to free them upon exiting the script.
    i am not sure i understand what you mean.

    do i need terminate script at the end of the script once its completed?

  23. #23
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    Terminate script basically is what you want it to do just before it terminates. See above post for link to tutorial by naum

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  24. #24
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by BraK View Post
    Terminate script basically is what you want it to do just before it terminates. See above post for link to tutorial by naum
    ok i think i understand it now, something like

    Simba Code:
    Procedure ScriptTerminate;
    Begin
      FreeSRLBitmaps; //makes sure bitmaps are freed before exiting
      ProgressReport   //post the last proggy
    End;

  25. #25
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    Exactly. I haven't really used it that much but that looks right.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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