Results 1 to 14 of 14

Thread: can someone explain function GetAmount to me?

  1. #1
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default can someone explain function GetAmount to me?

    I have this procedure:
    SCAR Code:
    procedure BuyTrade;
      begin
      MoveMouse(470,292);
      Wait(10000);
      if Option2('illow')then

      end;

    in the blank line i want to look for the number of willows put up in trade, possibly using GetAmount
    then multiplying the amount found by the variable eaprice that the user manually puts in.
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  2. #2
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Just to start you off, MoveMouse is detectable, Use Mmouse(x,y,rx,ry);

    X := Coord X
    Y := Coord Y
    rx:= Random X pixels for anti ban
    ry:= Random Y pixels for anti ban.

  3. #3
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    What's the problem then?

    SCAR Code:
    WillowAmount := GetAmount(Itemx, Itemy);
    Price := WillowAmount * Eaprice;
    TypeSend(IntToStr(Price));

    That what you're lookin' for?

  4. #4
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    actually, i wanted it to put the result of the multiplication problem using offer x with gold.
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  5. #5
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um for some reason this isnt working for me. I am using this to see if it even can recognize the word willow, but it doesnt. here's the current procedure:
    SCAR Code:
    procedure BuyTrade;
      begin
      Wait(6000);
      Mmouse(330,80,1,2);
    if Option2('Willow logs')then
      typesend(Message1)
      end;


    btw: i just realized that u cant use amount.scar and trade.scar in the same script otherwise u get an error, and i think i do need to use both to make this work......
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  6. #6
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Just get whatever functions/procedures you need from the include and put them in your script. Switch up the integers if you have to.

  7. #7
    Join Date
    Nov 2006
    Location
    California, USA
    Posts
    336
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can but you don't need to include them because they are inside of SRL.scar, trade is I believe.

  8. #8
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ye i just figured that out lol....
    do u think this procedure will work?
    its supposed to click on your money and put in the right amount:
    SCAR Code:
    procedure BuyTrade;
      begin
      Mmouse(330,80,1,2);
      Wait(6000);
    if Option2('Willow logs')then //searches for the words for a specific item.
    ItemAmount := GetAmount(330,80);
    Price := ItemAmount * Eaprice;
    MMouse(724,-284,3,3);
    Mouse(724,-284,1,1,False);
    MMouse(712,-222,1,1);
    Mouse(712,-222,1,1,True);
    TypeSend(IntToStr(Price));
      end;
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  9. #9
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    anyone at all?
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  10. #10
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Try it out. How else are you supposed to know?

  11. #11
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    okay i did just now try it out; it gets stuck after opening the trade screen. it acts as though the script just ended after that point. here's my current procedure:
    procedure BuyTrade;
    begin
    Mmouse(330,80,1,2);
    Wait(6000);
    if Option2('Raw trout')then //searches for the words for a specific item.
    ItemAmount := GetAmount(330,80);
    Price := ItemAmount * Eaprice;
    MMouse(724,-284,3,3);
    Mouse(724,-284,1,1,False);
    MMouse(712,-222,1,1);
    Mouse(712,-222,1,1,True);
    TypeSend(IntToStr(Price));
    Wait(2500);
    Accept;
    Wait(3000);
    Accept;
    end;
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  12. #12
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    First off, you need to wrap the stuff you want to do after if...then in begin...end; tags.

    Also, why are there negative coords? There should be no negatives. You need to target the RS window.

    You should probably change those waits to have a Random(...) wait time. Far to obvious as it is.

    And just as a preference. Most people use "IsUpText" as oppose to "Option2."

  13. #13
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um okay, i still have a question, is it because i didnt wrap it that made it so that after it opens a trade, the script seems to end all together?
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  14. #14
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *lumpy bumpy*
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Somebody want to explain this?
    By FLUX_ in forum RuneScape News and General
    Replies: 4
    Last Post: 02-08-2008, 01:45 PM
  2. could someone explain to me...
    By dvdcrayola in forum OSR Help
    Replies: 6
    Last Post: 08-09-2007, 01:14 AM
  3. 'GetAmount' Problem
    By blindman in forum OSR Help
    Replies: 6
    Last Post: 06-28-2007, 12:25 AM
  4. Can someone explain to me...
    By supersayian2224 in forum News and General
    Replies: 4
    Last Post: 06-13-2007, 09:58 AM
  5. Fix and explain Please
    By marzey in forum OSR Help
    Replies: 8
    Last Post: 05-19-2007, 12:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •