Results 1 to 15 of 15

Thread: draging an inventory item

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default draging an inventory item

    So in my alching script, which is purely for rune arrows, at the beginning, im trying to get the rune arrows into slot 17, which is where most humans would have it when they are alching. Im using a dtm of rune arrows to find rune arrows, but the dragitem function requires an invspace, not co-ordinates. How would I get it so it would find the arrows, then move them to invspace 17?
    E: this is what I have so far
    Simba Code:
    Gametab(25);
      If not existsitem(17) then
        finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2);
        dragitem(
    Last edited by Footy; 07-08-2012 at 01:24 PM.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use dragmouse.

  3. #3
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Cepha! wasnt aware of that function! It should work fine now!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  4. #4
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    Use dragmouse.
    an alternative would be
    Simba Code:
    MouseMouse(1, 1)
    Holdmouse(1, 1, 1)
    Movemouse(2, 2)
    releasemouse(2, 2)

  5. #5
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by The Killer View Post
    an alternative would be
    Simba Code:
    MouseMouse(1, 1)
    Holdmouse(1, 1, 1)
    Movemouse(2, 2)
    releasemouse(2, 2)
    DragMouse works more like a human, even with randomization

  6. #6
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @killer
    Generally, those functions are very bot like, never ever use movemouse, it will move it a straight line, always use Mmouse. dragmouse is like what you showed, but much much much more human like.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  7. #7
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by Foooty View Post
    @killer
    Generally, those functions are very bot like, never ever use movemouse, it will move it a straight line, always use Mmouse. dragmouse is like what you showed, but much much much more human like.
    ima be a noob
    so Mmouse is move mouse but less robotic??
    feeling stupid now

  8. #8
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by The Killer View Post
    ima be a noob
    so Mmouse is move mouse but less robotic??
    feeling stupid now
    Mouse speed is different. MoveMouse moves like godspeed

    I once used those functions too
    You can still use those functions if you're making a script for maybe a flash game or private servers.

  9. #9
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    Mouse speed is different. MoveMouse moves like godspeed

    I once used those functions too
    You can still use those functions if you're making a script for maybe a flash game or private servers.
    what do i need to put in brackets for Mmouse if my cords are (498, 25)?

  10. #10
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If you are planning to click, use Mouse, it moves and clicks all in one function. The parameters for mouse are(x, y, ranx, rany, button) x and y are the coordinates, ranx and rany are randomness, I usually do 5-10, and button is 1 for left click, 2 for right click, and im not sure what 3 is. If you just want to move the mouse, MMouse parameters are (x, y, ranx, rany)
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  11. #11
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by Foooty View Post
    If you are planning to click, use Mouse, it moves and clicks all in one function. The parameters for mouse are(x, y, ranx, rany, button) x and y are the coordinates, ranx and rany are randomness, I usually do 5-10, and button is 1 for left click, 2 for right click, and im not sure what 3 is. If you just want to move the mouse, MMouse parameters are (x, y, ranx, rany)
    yes i plan on clicking, i just typed aload of
    Simba Code:
    Mmouse (123, 123)
    Clickmouse(123, 123)

    -.- thanks for this so it should be
    Simba Code:
    Mouse(123, 123, ranx, rany, 1)

    ? bit lost on what ranx and rany is :s

  12. #12
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Exactly, if you are planning on clicking, always use Mouse, its the most humanlike. ranx, and rany are randomness to your x and y variables. say your x value was 10, and your y value was 20. Should you set the randomness to 5 for both x and y, it will click between 5 and 15 for x, and 15 and 25 for y. Basically, it ensures you arent always clicking on the same pixel. Does that clear up any confusion? if not, I could go more indepth with a diagram,
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  13. #13
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by Foooty View Post
    Exactly, if you are planning on clicking, always use Mouse, its the most humanlike. ranx, and rany are randomness to your x and y variables. say your x value was 10, and your y value was 20. Should you set the randomness to 5 for both x and y, it will click between 5 and 15 for x, and 15 and 25 for y. Basically, it ensures you arent always clicking on the same pixel. Does that clear up any confusion? if not, I could go more indepth with a diagram,
    no need, thats great i actually understand
    now to edit my first script

  14. #14
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good luck! May I ask what its a script for? Id be more then happy to test it for you when you're done.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  15. #15
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry, went out after I replied you yesterday

    Good luck on your script!

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
  •