Results 1 to 9 of 9

Thread: Use Item > Object Help.

  1. #1
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Question Use Item > Object Help.

    Hey guys real quick question here...How do I get the bot to take an item from the inventory, and use it on an Object in Runescape?

    Example: using dry clay on a well
    Example: using a needle on leather, then selecting the "chaps" button.

    Not asking to be spoonfed, just wondering which procedure I use and if anything special is involved.

    I don't have any idea what bitmaps or DTMs are. If what I'm asking involves either of those, more help would be appreciated.

    I will credit you in the script.

    Thanks,
    KeepBotting
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  2. #2
    Join Date
    Feb 2007
    Location
    Florida
    Posts
    460
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok,so first you would check for the item in your inventory with a DTM ( YoHoJo's tutorial, very helpful and informative ) and hover over the item to check the uptext is correct then click the item so it is selected

    Next you'd have to see if the item is selected so you can use it say on a well. To do this you would assign ActivatedItem to a variable then check if ActivatedItem > -1 if it is then continue with the rest of your script.
    Varrock gTanner
    Previously known as England155.

  3. #3
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Geo View Post
    Ok,so first you would check for the item in your inventory with a DTM ( YoHoJo's tutorial, very helpful and informative ) and hover over the item to check the uptext is correct then click the item so it is selected

    Next you'd have to see if the item is selected so you can use it say on a well. To do this you would assign ActivatedItem to a variable then check if ActivatedItem > -1 if it is then continue with the rest of your script.
    Thank you, I shall try this soon.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  4. #4
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Or, if the item in your inventory is constant,
    MouseItem(X, Mouse_(whatever));
    and then use it on the object.

  5. #5
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by S1N View Post
    Or, if the item in your inventory is constant,
    MouseItem(X, Mouse_(whatever));
    and then use it on the object.
    I have just tried this, and I get an error: "Type mismatch."
    Here is my procedure:
    What am I doing wrong?

    Code:
    procedure SoftenClay;
    begin
    FindNormalRandoms;
    MouseItem(1, true);
    if FindObj(x, y, 'ell', 3951701, 10) then
    ChooseOption('ell');
    end;
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  6. #6
    Join Date
    Dec 2011
    Posts
    91
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I would suggest using DTM's. They make everything easier and they take like 5 seconds to get.
    Hi I'm new and just starting to script. Check out my first Simba script ever here:
    http://villavu.com/forum/showthread.php?t=73533
    If I helped you:
    http://i.picasion.com/pic49/4d86097a...49046f1fb2.gif

  7. #7
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Supertrent1 View Post
    I would suggest using DTM's. They make everything easier and they take like 5 seconds to get.
    I shall try this as well, thank you.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  8. #8
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    I have just tried this, and I get an error: "Type mismatch."
    Here is my procedure:
    What am I doing wrong?

    Code:
    procedure SoftenClay;
    begin
    FindNormalRandoms;
    MouseItem(1, true);
    if FindObj(x, y, 'ell', 3951701, 10) then
    ChooseOption('ell');
    end;
    MouseItem I think uses only mouse_left, mouse_right, mouse_move params as of SRL5.

    A good DTM tutorial would be Demise's. I suggest you use the right half of the item to make the DTMs as the left half are still a buggy at times.

  9. #9
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by nosaj.421 View Post
    MouseItem I think uses only mouse_left, mouse_right, mouse_move params as of SRL5.

    A good DTM tutorial would be Demise's. I suggest you use the right half of the item to make the DTMs as the left half are still a buggy at times.
    Thanks, will try this.

    Not sure I wanna use DTMs just yet, I'll see what I can accomplish with SRL5 first.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

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
  •