SRL Archive - RS3 Prayer

Nice Crystal Buyer!


Antonio

2015-05-02 11:13:04

Hi guys this is my first ever script and it was really fun! This is definitely not a perfect script however it should do the trick since it only takes a couple hours to buy enough crystals for 75 - 95 prayer.

Features -

Will basically trade the Hefin monk and buy 5 crystals at a time and then buy another 5 when the shop restocks.
Will buy the number of crystals you input at the start and will stop the script when it is finished!
Has random wait times and random co-ordinates when selecting options! More human-like :)

SETUP- READ THIS IS IMPORTANT!!!

1.) Use the graphics settings shown here : https://villavu.com/forum/showthread.php?t=47714
2.) Make sure character is next to the Hefin monk. Can either open shop up yourself or let the script open it for you!
3.) Go to the script and input the user data that is requested.
4.) Make sure you have enough money to buy the amount of crystals you entered to buy.
5.) Press play and enjoy!

Acknowledgements:

1.) GRIM- Your script gave me the idea for this I just wanted more human-like interactions and some extra features too. Thanks!
2.) The Mayor - Your all in one guide helped me with TPAs/APTAs and general clean up so thank you!
3.) Ross - I used your summoner to try and help me better understand TPAs/APTAs thanks!

[ATTACH]25767[/ATTACH]

Renzanity

2015-05-02 11:37:29

From: Nice Balance Bro
-snip-


Grats on the release.

You just missed one thing in your mainLoop():

procedure mainLoop;
begin
repeat
if not isLoggedIn() then
terminateScript;

if TradedMonk = false then
clickMonk();
until TradedMonk = true; {*Forgot to put a semi-colon in this part*}
repeat
buyCrystals();
until CrystalsBought = CRYSTALS_TO_BUY;
writeLn('We have bought your requested amount of crystals = '+ (toStr(CRYSTALS_TO_BUY)));
end;

And indentation here:

if not isLoggedIn() then
begin {*1 tab or 2 spaces inside a begin..end, Indentation standards*}
players[currentPlayer].login(); {*But makes your script easier to read*}
exitTreasure();
minimap.setAngle(MM_DIRECTION_NORTH);
mainScreen.setAngle(MS_ANGLE_HIGH);
end;


Other than that, great script, dude!

EDIT:
Oh and another semi-colon on your declarePlayers() procedure.:p
Btw, sweet TPA/ATPA!

Antonio

2015-05-02 11:53:18

From: Renzanity
Grats on the release.



Thanks for your help man! I knew I'd probably done some silly things here and there :P I've made the changes and re-uploaded it :D

Renzanity

2015-05-02 11:55:08

From: Nice Balance Bro
Thanks for your help man! I knew I'd probably done some silly things here and there :P I've made the changes and re-uploaded it :D


It was just a small thing, didn't affect the script at all.

Congratulations again, man.

Antonio

2015-05-02 11:57:33

From: Renzanity
It was just a small thing, didn't affect the script at all.

Congratulations again, man.


Thanks bro I felt it was about time I learnt how to write my own scripts. Gonna attempt a crystal cleanser soon using TPAs/APTAs again :D