Results 1 to 2 of 2

Thread: bunch of questions...

  1. #1
    Join Date
    Feb 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default bunch of questions...

    Hello.

    After a while away, quitting my first script as it got me really wound up, I thought I'd start again.

    I'm needing to do some stuff with the g.e to sell items in my inventory. So I'm just trying to figure how to go about it. (I've never been good at coding as my brain isn't "working" properly)My maths took me 3 times to pass, as I struggled with the algebra. So understanding things may take several tries etc.

    I don't want to bombard with questions to the point where you'd be writing the script as I want to try and learn/understand the stuff myself, although I'm finding it hard understanding what needs to be written to do what.

    I also have LOTS of questions with regard to some stuff...

    For instance.
    How can I write the buy/sell prices that my items buy/sell for? Perhaps by switching tab and using some method to read the first line of the history?

    I'll be using the below to sell my item

    Code:
    procedure sellitem
    begin
      grandExchange.sellItem(1, '-10', 'all', true, 80000);
    end;
    Also I was wondring if it'd work by putting in "-10" for -10% or can It only do -5%?

    Will add more tomorrow. I'm tired @6am better get some sleep, my english probably makes 0 sense im that tired.

  2. #2
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Quote Originally Posted by imthecactus View Post
    Hello.
    Hiya!

    Quote Originally Posted by imthecactus View Post
    After a while away, quitting my first script as it got me really wound up, I thought I'd start again.
    Good!

    Quote Originally Posted by imthecactus View Post
    I'm needing to do some stuff with the g.e to sell items in my inventory. So I'm just trying to figure how to go about it. (I've never been good at coding as my brain isn't "working" properly)My maths took me 3 times to pass, as I struggled with the algebra. So understanding things may take several tries etc.
    I am well known (well, by some people anyway) for being atrocious at maths, so don't think that you have to be a mathematical genius to do any sort of RuneScape scripting. Actual programming usually does require some mathematical ability, but less than you probably think, depending on what you're actually writing.

    Quote Originally Posted by imthecactus View Post
    I don't want to bombard with questions to the point where you'd be writing the script as I want to try and learn/understand the stuff myself, although I'm finding it hard understanding what needs to be written to do what.
    It's perfectly OK to ask questions so long as you've made a solid effort to search for an answer before asking. It's probably best to keep your questions in the same thread rather than make a hundred new threads, but other than that, we don't mind if you want to ask questions. This is primarily a learning community, so valid questions are encouraged.

    Quote Originally Posted by imthecactus View Post
    I also have LOTS of questions with regard to some stuff...
    Great!

    Quote Originally Posted by imthecactus View Post
    For instance.
    How can I write the buy/sell prices that my items buy/sell for? Perhaps by switching tab and using some method to read the first line of the history?
    I'm not entirely sure, there doesn't appear to be anything for that in the documentation, but maybe @The Mayor can help you with that.

    Quote Originally Posted by imthecactus View Post
    I'll be using the below to sell my item

    Code:
    procedure sellitem
    begin
      grandExchange.sellItem(1, '-10', 'all', true, 80000);
    end;
    Also I was wondring if it'd work by putting in "-10" for -10% or can It only do -5%?
    Judging by the documentation, yes, you can use -10 for -10%, or whatever increment you would like. Your code to sell an item is valid, and should sell all of whatever is in slot 1 for 10% below the market price and wait 80,000ms before collecting whatever gold and items it can after that time.

    What exactly is this script that you're writing? And have you read Maymay's excellent AIO RS3 and SRL6 scripting tutorial? Because after completing that, you should have a much better chance of writing this script and understanding how to utilise the SRL-6 include.

    Best of luck, and to reiterate, don't be afraid to ask questions. We are happy to help so long as you have made a solid attempt to search for an answer to your question and followed the tutorials before asking.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

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
  •