SRL Archive - OSR Script Requests

Macro Dropping!


thewhitekoala

2013-05-21 21:14:17

Could someone write up a quick macro dropping script for me to use?
like as soon as your inventory is full all i have to do is hit 1 button to make it go through my inventory at a quick speed dropping all of my items.

Sawyer

2013-05-21 21:16:30

Well… this would be a very simple task, but the community here is based around learning. If there isn't already an include for dropping, then try looking into InvMouse and ChooseOption.

Sjoe

2013-05-21 21:17:41

if InvFull then DropAll;

Justin

2013-05-21 22:17:49

From: Sjoe
Eoc Dropping? Could use Presskey then. else just use DropAll;

if InvFull then DropAll;

This is posted in OldSchool Requests ;)

Sjoe

2013-05-21 22:35:05

From: Justin
This is posted in OldSchool Requests ;)


Loel, didn't see that :)

bob_dole

2013-05-25 19:46:37

[PHP]program new;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}

begin
setupsrl;

repeat

repeat
wait(1)
until (smartenabled);

repeat
if (invFull) then
dropAll;
wait(1);
until (not(smartenabled));

until (false);
end.[/PHP]

enable smart when inventory is full

rj

2013-05-25 20:13:04

From: bob_dole
[PHP]program new;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}

begin
setupsrl;

repeat

repeat
wait(1)
until (smartenabled);

repeat
if (invFull) then
dropAll;
wait(1);
until (not(smartenabled));

until (false);
end.[/PHP]

enable smart when inventory is full


Why do you have that in php tags…. Also if you disable smart the macro won't take over so all you need is

Repeat
Drop all;
Until false

Sjoe

2013-05-25 20:43:05

From: Officer Barbrady
Why do you have that in php tags…. Also if you disable smart the macro won't take over so all you need is

Repeat
Drop all;
Until false


Bob's way is great, no need to modify.

rj

2013-05-25 20:52:19

From: Sjoe
Bob's way is great, no need to modify.


Could be done in 1/3 lines

Ian

2013-05-25 21:00:34

From: Officer Barbrady
Could be done in 1/3 lines


His way is still better

bob_dole

2013-05-26 03:34:06

From: Officer Barbrady
Could be done in 1/3 lines


This is a fact. can also be done in 3 times as many lines.


program new;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}

begin
setupsrl;

repeat

repeat
wait(1)
until (smartenabled);

repeat
if (invFull) then
begin
Dropitem(1);
Dropitem(2);
Dropitem(3);
Dropitem(4);
Dropitem(5);
Dropitem(6);
Dropitem(7);
Dropitem(8);
Dropitem(9);
Dropitem(10);
Dropitem(11);
Dropitem(12);
Dropitem(13);
Dropitem(14);
Dropitem(15);
Dropitem(16);
Dropitem(17);
Dropitem(18);
Dropitem(19);
Dropitem(20);
Dropitem(21);
Dropitem(22);
Dropitem(23);
Dropitem(24);
Dropitem(25);
Dropitem(26);
Dropitem(27);
Dropitem(28);
end;
wait(1);
until (not(smartenabled));

until (false);
end.