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

Thread: [Reflection]Varrock Earth RuneCrafter

  1. #1
    Join Date
    Feb 2006
    Location
    Australia
    Posts
    628
    Mentioned
    15 Post(s)
    Quoted
    105 Post(s)

    Default [Reflection]Varrock Earth RuneCrafter


    Introduction
    I made this script to demonstrate some of the new functions I made for the OSR Reflection Include. It was really fun and I hope that you learn something from this.

    You will need
    • OSR set up in pascalscript (not the lape version), Here
    • The OSR Reflection include, Here

    Overview
    This script crafts earth runes at the varrock earth altar and banks them. No break-handling. Only supports 1 player.

    Features
    • Reflection walking/object-finding
    • Reflection Antirandoms
    • Banking with progress report

    Setup
    • Enter your username, password, (3-letter) nickname and Essence bank-slot in DeclarePlayers
    • Equip an Earth Tiara
    • Start the script in varrock east bank

    Ethics
    • If you download this script, post here and give me some feedback
    • Tell me if it's good/bad w/e, just don't download it without posting
    Attached Files Attached Files
    Last edited by Krazy_Meerkat; 05-16-2014 at 03:58 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    looks guide pretty safe place to bot as well
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  3. #3
    Join Date
    May 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    gratz,srl need good RuneCrafter

  4. #4
    Join Date
    Feb 2006
    Location
    Australia
    Posts
    628
    Mentioned
    15 Post(s)
    Quoted
    105 Post(s)

    Default

    Thanks for posting guys Enjoy the script!

  5. #5
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Nice release. Will try this out later on and give some (hopefully useful) feedback.
    Solar from RiD.

  6. #6
    Join Date
    Oct 2006
    Posts
    491
    Mentioned
    0 Post(s)
    Quoted
    41 Post(s)

    Default

    Thanks for sharing, the way you scripted this really helped me get a better idea of the reflection functions and how to use them.
    Also what mouse movements does reflection functions use? Would it be possible for me to incorporate AL_functions with this script in a simple way? or would it be difficult?

  7. #7
    Join Date
    Jan 2014
    Posts
    147
    Mentioned
    7 Post(s)
    Quoted
    75 Post(s)

    Default

    May I use your script as a template and attempt to make a air rune crafter? :P

  8. #8
    Join Date
    Feb 2006
    Location
    Australia
    Posts
    628
    Mentioned
    15 Post(s)
    Quoted
    105 Post(s)

    Default

    @Solar, I hope it runs well for you. I managed to craft 3k earths with this in a very short amount of time.. Got from 1-30 rc for a quest and considered it good enough.

    @uhit you're certainly welcome to use this script as a base Please mention on your thread that you used this script as a base though, in case others also wish to learn.
    @ry, The mouse movements used by reflection core files will be a little difficult to modify.. I would suggest adding the include statement for AL_Functions {$I SRL-OSR/SRL/misc/AL_functions.simba} into Includes.simba. It has to be on the very first line to be used by other files in the include.. After you do that, you should be able to modify Interaction.simba and search for "mouse" change all those calls to their AL_ counterpart and you should be good. (be aware that you will have to delete the {$I SRL-OSR/SRL/misc/AL_functions.simba} from any scripts which use AL_functions and reflection or you will get some kinda dupe identifier error i'm sure).

    I'm amped that you guys are interested in scripting, best of luck on your adventures
    Last edited by Krazy_Meerkat; 05-15-2014 at 02:37 AM.

  9. #9
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    First thing when running it, it didn't withdraw or check if we needed to withdraw any essence.
    After a few hours we encountered a random event and then afterwards logged out (timed out I believe).

    Apart from that, it seemed to run smoothly.

    I would advice adding a breaking system though, if you aren't around to manually do so, or to make overnight runs a bit more human like.

    Edit: Forgot to add proggy so here you go;
    Progress Report:
    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 9 Hours, 8 Minutes and 22 Seconds
    Current Task: Walking to Center
    Banked 3948 Earth Runes
    Gained 26 levels
    Solved 1 Quiz Master Random Event
    **************************************************
    Last edited by Solar; 05-16-2014 at 07:51 AM.
    Solar from RiD.

  10. #10
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Solar View Post
    Progress Report by Solar:
    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 9 Hours, 8 Minutes and 22 Seconds
    Current Task: Walking to Center
    Banked 3948 Earth Runes
    Gained 26 levels
    Solved 1 Quiz Master Random Event
    **************************************************
    Decent proggy!

  11. #11
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    The last one or two hours were after I logged back in, although I think I did that after only a short period of time from it logging out after the random event.

    Edit: Just checked on it and it had logged out at the bank before banking. Not sure why, and when I continued after logging in, the progress report didn't report another random had been solved, so I don't know what happened here.

    Stopped the script and Simba stopped responding for a few seconds, maybe there is a memory leak or something?
    The end proggy;
    Progress Report:
    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 12 Hours, 4 Minutes and 56 Seconds
    Current Task: Banking Runes
    Banked 6104 Earth Runes
    Gained 30 levels
    Solved 1 Quiz Master Random Event
    **************************************************
    Succesfully freed SMART[4620]
    Successfully executed.
    Last edited by Solar; 05-16-2014 at 10:50 AM.
    Solar from RiD.

  12. #12
    Join Date
    Feb 2006
    Location
    Australia
    Posts
    628
    Mentioned
    15 Post(s)
    Quoted
    105 Post(s)

    Default

    Great proggy Solar Thanks a lot for the feedback
    The bank logout was probably cause by R_ChooseOption having a broken hook yesterday, it was happening to me also.. Should be working fine now though
    I updated the banking function and added a bank call at the start of the script so it will withdraw the essence for you on the first run.
    Last edited by Krazy_Meerkat; 05-16-2014 at 04:01 PM.

  13. #13
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Fairly sure R_ChooseOption had been updated before I started to run the script.

    With the new version (and updated bank.simba), it logged out in the altar after crafting the runes and walking back to the portal (when I logged back in I could even see the portal).

    Edit: I think lately the servers might have been lagging or something for me since I was in the login lobby (where you "Click here to play" or w/e it says) probably from getting "connection lost". I also saw it go to the altar without any essence again, but this could be from lag, IDK.
    Sorry I'm not of any more help.

    Edit2: Saw it go to the bank, wait a while with the cursor on the scroll bar (even when it was at the top) and then proceed to misclick the essence (just under it) and that was why it did not withdraw any essence. And another proggy;
    Progress Report:
    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 5 Hours, 49 Minutes and 23 Seconds
    Current Task: Walking to Altar
    Banked 2604 Earth Runes
    Gained 2 levels
    **************************************************


    Edit3: When it logs out at the altar on the way back to the bank, it is stuck in the repeat until loop on line 427. I believe it is because of the 4 torches.
    The script also turns run off when banking.
    If you get a strange box the script can loop trying to deposit them into the bank I believe.

    Another proggy;
    Progress Report:
    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 4 Hours, 42 Minutes and 34 Seconds
    Current Task: Walking to Center
    Banked 3472 Earth Runes
    Gained 2 levels
    **************************************************
    [Reflection Anti-Randoms] 'Evil Chicken' Combat random detected! Running away...
    [Reflection Anti-Randoms] 'Evil Chicken' Combat random detected! Running away...
    [Reflection Anti-Randoms] Mysterious Old Man random detected! Solving...
    [Reflection Anti-Randoms] Solved Mysterious Old Man random!
    Last edited by Solar; 05-18-2014 at 04:09 PM.
    Solar from RiD.

  14. #14
    Join Date
    Feb 2006
    Location
    Australia
    Posts
    628
    Mentioned
    15 Post(s)
    Quoted
    105 Post(s)

    Default

    Solar, I think you need to update your version of SRL-OSR.. All of the bank co-ordinates are wrong since a recent update. Banking functions are working fine for me..
    As for the portal issue, I do know what's causing that and I'm responsible b/c this was a very simple script. R_InteractTile used to take 4 seconds to look for uptext before returning false, now it's less than 1 second b/c I felt it was a little impractical at times to wait 4 seconds before knowing that uptext was failed.. It's easy fixed but I don't have time right now.. I'll be back later on and fix the problem..
    For now, you can just do this:
    Simba Code:
    if (not(R_InteractTile(Args))) then
      if (not(R_InteractTile(Args))) then
        if (not(R_InteractTile(Args))) then
          R_InteractTile(Args);
    To get the same effect.

  15. #15
    Join Date
    Jun 2014
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    hey man, whenever i try to start it i get this error;

    [Hint] C:\Simba\Scripts\Reflection RuneCrafter.simba(179:3): Variable 'X' never used at line 178
    [Hint] C:\Simba\Scripts\Reflection RuneCrafter.simba(179:3): Variable 'Y' never used at line 178
    [Hint] C:\Simba\Scripts\Reflection RuneCrafter.simba(179:3): Variable 'I' never used at line 178
    [Error] C:\Simba\Scripts\Reflection RuneCrafter.simba(348:10): Duplicate identifier 'ISUSINGRUN' at line 349
    Compiling failed.

    Yes, i have reflection installed, and all that other good stuff. A lot of my other scripts run fine as well.

    Any help, or things we can do to get this workin'?

  16. #16
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by ohegabe View Post
    hey man, whenever i try to start it i get this error;

    [Hint] C:\Simba\Scripts\Reflection RuneCrafter.simba(179:3): Variable 'X' never used at line 178
    [Hint] C:\Simba\Scripts\Reflection RuneCrafter.simba(179:3): Variable 'Y' never used at line 178
    [Hint] C:\Simba\Scripts\Reflection RuneCrafter.simba(179:3): Variable 'I' never used at line 178
    [Error] C:\Simba\Scripts\Reflection RuneCrafter.simba(348:10): Duplicate identifier 'ISUSINGRUN' at line 349
    Compiling failed.

    Yes, i have reflection installed, and all that other good stuff. A lot of my other scripts run fine as well.

    Any help, or things we can do to get this workin'?
    Just delete the function "ISUSINGRUN" and it will work then.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  17. #17
    Join Date
    Dec 2011
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    does this have good anti banned on them?

  18. #18
    Join Date
    Jul 2012
    Posts
    181
    Mentioned
    4 Post(s)
    Quoted
    67 Post(s)

    Default

    I'm going to give this a try later and I'll post back. Thanks in advance.

    Working fine after I removed the ISUSINGRUN procedure, thanks for that harrier.

    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 1 Hours, 19 Minutes and 5 Seconds
    Current Task: Running back to Bank
    Banked 1008 Earth Runes
    Gained 9 levels
    **************************************************

  19. #19
    Join Date
    Jun 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It works very well, tho a few buggs here and there.

    First off is the ISUSINGRUN function, easily resolved by the posts over.
    Second is that it ran all the way around the Altar a few times. The second to last walk point is a bit further north than it should.
    Same while exiting the bank, it first goes to the rocks on the north side, then proceeds.
    I also had to help it "find" the portal a few times, as it got stuck. (possibly network latency on my side..)
    It's also not support for pouches, something witch would be greatly appreciated if you could add. (I might give that a shot myself, I'll post the code if I do)
    Maybe also the option to stop after x runes are crafted.

    Other than that, it works perfectly!
    It's also very understandable coded, so easy for newcomers like me to understand, thanks very much for that!

    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 56 Minutes and 22 Seconds
    Current Task: Banking Runes
    Banked 700 Earth Runes
    Gained 7 levels
    **************************************************

  20. #20
    Join Date
    Nov 2013
    Location
    North of Hell
    Posts
    271
    Mentioned
    7 Post(s)
    Quoted
    171 Post(s)

    Default

    Gave this a quick test run, I was quite surprised at how well it handles itself, really nice script! As said in the previous post, it does walk around the altar sometimes, but I don't really care about that. Overall, I really like it Proggy:
    **************************************************
    Krazy_Meerkat's Varrock Earth RuneCrafting Script
    **************************************************
    Running for 41 Minutes and 58 Seconds
    Current Task: Walking to Center
    Banked 532 Earth Runes
    Gained 10 levels
    **************************************************
    So... I hear you like infinite loops.............

  21. #21
    Join Date
    Sep 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Been trying to run for the past couple days but keep getting the error 'Unknown identifier 'Widget_getItems' at line 56' I tried researching before annoying with a post but I guess I had to take the plunge and ask for help

    line 56: _ItemQuantity := SmartGetFieldArrayInt(SmartCurrentTarget, _Inventory, Widget_getStackSizes, _InventorySlot);

  22. #22
    Join Date
    May 2013
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    29 Post(s)

    Default

    I haven't used this yet, If i have time later I'll let you know how I get on @Misirr

  23. #23
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by Misirr View Post
    Been trying to run for the past couple days but keep getting the error 'Unknown identifier 'Widget_getItems' at line 56' I tried researching before annoying with a post but I guess I had to take the plunge and ask for help

    line 56: _ItemQuantity := SmartGetFieldArrayInt(SmartCurrentTarget, _Inventory, Widget_getStackSizes, _InventorySlot);
    Redownload the Pascal Script include, as instructed at: https://villavu.com/forum/showthread.php?t=107479
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  24. #24
    Join Date
    Sep 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by elfyyy View Post
    Redownload the Pascal Script include, as instructed at: https://villavu.com/forum/showthread.php?t=107479
    ah thanks elfyyy. btw your fletcher is awesome

  25. #25
    Join Date
    May 2013
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    29 Post(s)

    Default

    ...[Error] C:\Simba\Scripts\runecraft.simba(55:70): Unknown identifier 'Widget_getItems' at line 56
    Re-downloaded include like 5 times, continuously running into stupid problems, seriously annoying.

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
  •