SRL Archive - OSR Help

Need Help With Making Dropping Script


the0fox

2012-06-05 02:12:50

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 :D

iBlank

2012-06-05 02:17:09

From: the0fox
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 :D


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.


(*
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);

*)

the0fox

2012-06-05 02:25:32

From: alevere4
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.


(*
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 :)

bg5

2012-06-05 06:09:50

There are already 6 SRL functions for droping ,look into inventory.simba

John

2012-06-05 06:16:24

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

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
DropInvSlot(InPutInvSlotHere);
Wellah ;)

Abu

2012-06-05 10:31:41

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


From: the0fox

how i can make it right click the fish?


You do
Mouse(x, y, 0, 0, False);
// False = left click, True = right click
//The 0's are pixel randomness in terms of where to click