Results 1 to 6 of 6

Thread: Need Help With Making Dropping Script

  1. #1
    Join Date
    Jun 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy Need Help With Making Dropping Script

    Hey Guys So i Started To make a script to drop items (Fish) at Barbarian fishing spot.
    how i can make it right click the fish?

    i've tried this:
    HoldMouse(x, y, 1)i've tried changing the numbers but it dosnt drop

    any ideas?


    Note im still a noob

  2. #2
    Join Date
    Mar 2012
    Posts
    426
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by the0fox View Post
    Hey Guys So i Started To make a script to drop items (Fish) at Barbarian fishing spot.
    how i can make it right click the fish?

    i've tried this:
    HoldMouse(x, y, 1)i've tried changing the numbers but it dosnt drop

    any ideas?


    Note im still a noob
    You could use the good ole InvMouse. Just have it move to every inventory slot other than where your bait is located, right click, and select drop. Probably the easiest way to go unless you are going to take the time to learn DTMs and other techniques right now.

    Simba Code:
    (*
    InvMouse
    ~~~~~~~~

    .. code-block:: pascal

        function InvMouse(InvSlot, Action: Byte) : boolean;

    A combined MouseItem & MMouseItem, will hopefully replace both
    procedures one day. Usage is like SRL's MouseBox, Action determines what to do:

      - 1: Leftclick
      - 2: Rightclick
      - 3: Move mouse to item

    .. note::

        by EvilChicken!

    Example:

    .. code-block:: pascal

        if InvMouse(1, rightClick) then
          WaitOption('eposit', 500);

    *)
    - My Scripts (Beginning to Update to SRL 6) -

  3. #3
    Join Date
    Jun 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by alevere4 View Post
    You could use the good ole InvMouse. Just have it move to every inventory slot other than where your bait is located, right click, and select drop. Probably the easiest way to go unless you are going to take the time to learn DTMs and other techniques right now.

    Simba Code:
    (*
    InvMouse
    ~~~~~~~~

    .. code-block:: pascal

        function InvMouse(InvSlot, Action: Byte) : boolean;

    A combined MouseItem & MMouseItem, will hopefully replace both
    procedures one day. Usage is like SRL's MouseBox, Action determines what to do:

      - 1: Leftclick
      - 2: Rightclick
      - 3: Move mouse to item

    .. note::

        by EvilChicken!

    Example:

    .. code-block:: pascal

        if InvMouse(1, rightClick) then
          WaitOption('eposit', 500);

    *)
    Could u Explain a little more this is my first script

  4. #4
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

  5. #5
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Say you want to Drop the First Inventory slot you would do

    Simba Code:
    Procedure DropInvSlot(InvSlotx: Integer);
    begin
      InvMouse(InvSlotx, RIGHT_MOUSE);
      WaitOption('rop', 300);
    end;
    InvSlotx Would be a number between 1 and 28, depending on witch slot you want to drop.
    It could be as simple as that.

    Add that procedure into your script and use it like
    Simba Code:
    DropInvSlot(InPutInvSlotHere);
    Wellah

  6. #6
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    I'm just gonna go ahead and answer the question...


    Quote Originally Posted by the0fox View Post
    how i can make it right click the fish?
    You do
    Simba Code:
    Mouse(x, y, 0, 0, False);
    // False = left click, True = right click
    //The 0's are pixel randomness in terms of where to click

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
  •