Results 1 to 6 of 6

Thread: Nice Crystal Buyer!

  1. #1
    Join Date
    Aug 2013
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default Nice Crystal Buyer!

    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!

    NiceCrystalBuyer.simba

  2. #2
    Join Date
    Feb 2015
    Location
    Taguig, Philippines
    Posts
    342
    Mentioned
    15 Post(s)
    Quoted
    137 Post(s)

    Default

    Quote Originally Posted by Nice Balance Bro View Post
    -snip-
    Grats on the release.

    You just missed one thing in your mainLoop():
    Simba Code:
    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:
    Simba Code:
    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.
    Btw, sweet TPA/ATPA!

  3. #3
    Join Date
    Aug 2013
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

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

  4. #4
    Join Date
    Feb 2015
    Location
    Taguig, Philippines
    Posts
    342
    Mentioned
    15 Post(s)
    Quoted
    137 Post(s)

    Default

    Quote Originally Posted by Nice Balance Bro View Post
    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
    It was just a small thing, didn't affect the script at all.

    Congratulations again, man.

  5. #5
    Join Date
    Aug 2013
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

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

  6. #6
    Join Date
    Apr 2015
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Took a little gander over this, it should still work. Well written too!

    I'll give this a shot when I have the level.

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
  •