Results 1 to 12 of 12

Thread: Help wield.

  1. #1
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help wield.

    How Would i Make A Script Wield my arrows that i pick up?

    Edit : im a new scripter and wanna learn to scrippt and im attempting my autofighter + ranger

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Umm,, I would try to
    SCAR Code:
    Findcolor(x,y,ArrowColor,MIX1,MIY1,MIX2,MIY2)
    I think.. Im not even sure if I used Findcolor right, I always wait for scar to pop up the thing that tells you what needs to be in the brackets,,
    Otherwise, Make a DTM of the arrows in ur invy and then use
    SCAR Code:
    If FindDTM(Whatever Goes in Here) then
    Mouse(x,y,1,1,False)
    ChooseOption(x,y,'Wield') // Or whatever it says on the arrows when you want to weild it..

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  3. #3
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That may confuse him, and for the color thing, you need if(FindColor(x,y,color,coords1,coords1,coords2,coo rds2))then
    begin
    Mouse(x,y,2,2,true);
    end;


    like that pretty much. when you left click on the arrows, it doesn't use them, it weilds them so that makes it even more easy. DTMs may confuse him since he is new, so I would suggest using colors, then learning DTMs from yohojo's DTM tutorial later.

  4. #4
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it still wont wield is there any specific code to give em that finds them thens wields them in inv? if so thankyou sorry im not that good at scripting but im actually proud of how good im doing so far.

  5. #5
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    SCAR Code:
    if(FindColor(x,y,color,coords1,coords1,coords2,coo rds2))then
    begin
    Mouse(x,y,2,2,true);
    end;

    If you put the color of the arrowhead or something in for color, and put MIX1,MIY1,MIX2,MIY2 in for the coors part, it should look for the color inside the main inventory,,

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  6. #6
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks alot!

  7. #7
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by fugate View Post
    Thanks alot!
    Lol.. Thats what I said, he just helped you comprehend you should be saying thanks a lot to me! lol j/k

  8. #8
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Stop trying to steal my glory !!!

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  9. #9
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ill play it fair Thanks Jad! Thanks Garrett

  10. #10
    Join Date
    Sep 2006
    Posts
    206
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you will run into problems if you have other items of the same color in your inventory.

    If you need help with DTM's PM and I can help. First, read theTUT's, they are very helpful. I think you will need a couple DTMs because they are different depending on how many arrows you have in your inventory.

    good luck,
    mikev
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

  11. #11
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    You can also use BitmapMasks. I believe there are some in the SRL include (somewhere in the misc. folder).
    Hup Holland Hup!

  12. #12
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    What if he did something like this...
    SCAR Code:
    repeat
    if(FindColor(x,y,color,MIX1,MIY1,MIX2,MIY2))then
    begin
    MMouse(x,y,1,1)
    wait(200 + random (100))
    until (IsUpText('Arrow')
    Mouse(x,y,2,2,true);
    end;

    So that it would keep looking for the color until it finds the uptext Arrow, Then it clicks on it?

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. wield item?
    By TommyGun in forum OSR Help
    Replies: 6
    Last Post: 03-01-2008, 04:49 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
  •