PDA

View Full Version : [Reflection]Varrock Earth RuneCrafter



Krazy_Meerkat
05-14-2014, 08:22 AM
http://img3.wikia.nocookie.net/__cb20130929111627/2007scape/images/a/a5/Earth_altar.png

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 (http://villavu.com/forum/showthread.php?t=106693)
The OSR Reflection include, Here (http://villavu.com/forum/showthread.php?t=107479)
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

randy marsh
05-14-2014, 03:32 PM
looks guide pretty safe place to bot as well

snsgold
05-14-2014, 03:33 PM
gratz,srl need good RuneCrafter

Krazy_Meerkat
05-14-2014, 04:00 PM
Thanks for posting guys :) Enjoy the script!

Solar
05-14-2014, 04:15 PM
Nice release. Will try this out later on and give some (hopefully useful) feedback.

ry0240
05-14-2014, 04:25 PM
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?

uhit
05-14-2014, 04:52 PM
May I use your script as a template and attempt to make a air rune crafter? :P

Krazy_Meerkat
05-15-2014, 02:32 AM
@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 :D

Solar
05-16-2014, 07:40 AM
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;
**************************************************
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
**************************************************

The Mayor
05-16-2014, 10:07 AM
**************************************************
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!

Solar
05-16-2014, 10:35 AM
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;
**************************************************
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.

Krazy_Meerkat
05-16-2014, 03:49 PM
Great proggy Solar :D 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.

Solar
05-16-2014, 08:43 PM
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; **************************************************
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; **************************************************
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!

Krazy_Meerkat
05-26-2014, 06:55 AM
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:
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.

ohegabe
07-02-2014, 10:40 AM
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'?

Harrier
07-02-2014, 03:31 PM
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.

Sajon
08-14-2014, 02:39 AM
does this have good anti banned on them?

Rlp
08-20-2014, 01:32 PM
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
**************************************************

MirSar
11-25-2014, 10:53 PM
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
**************************************************

The Spark
01-01-2015, 02:09 AM
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
**************************************************

Misirr
01-15-2015, 10:34 PM
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);

squirrelz
01-16-2015, 01:34 PM
I haven't used this yet, If i have time later I'll let you know how I get on @Misirr

Kyle
01-16-2015, 01:56 PM
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

Misirr
01-16-2015, 07:42 PM
Redownload the Pascal Script include, as instructed at: https://villavu.com/forum/showthread.php?t=107479

ah thanks elfyyy. btw your fletcher is awesome ;)

squirrelz
02-04-2015, 03:58 AM
...[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.

Myke
02-06-2015, 12:19 AM
did 5 mins of dirty fixes and it seems to be running ok now


cant promise reliability because I've hardly looked at the code tbh


http://puu.sh/fwJ79/2ebae25693.png



start v east bank with earth tiara on and essence in 8th bank slot ( top right )


edit: I will try to rewrite this+air crafter in a few weeks using lape reflection, but no promises

hadesflames
03-14-2015, 08:56 PM
did 5 mins of dirty fixes and it seems to be running ok now


cant promise reliability because I've hardly looked at the code tbh


http://puu.sh/fwJ79/2ebae25693.png



start v east bank with earth tiara on and essence in 8th bank slot ( top right )


edit: I will try to rewrite this+air crafter in a few weeks using lape reflection, but no promises

Thanks for the fix. Works fine, however I added a couple of things the original script should have had anyway.

1 - Multiplier so that you can change the amount of runes you get per ess.
2 - Pin solving so this works from login rather than the player having to input the pin themselves. (Personal annoyance)

alex90007000
05-04-2015, 08:56 PM
i keep getting
[Error] C:\Simba\Includes\SRL-OSR\SRL\Reflection\Core\MapWalk.simba(37:1): 'BEGIN' expected at line 38
Compiling failed
which is frustrating because it was just working before i logged out.