Droping stuff... Blah in every script droping is handled differently. So now i'd like to know how to use function DropItem to drop item's from slot 2 to 28...
Droping stuff... Blah in every script droping is handled differently. So now i'd like to know how to use function DropItem to drop item's from slot 2 to 28...
Try this
SCAR Code:Procedure Drop;
var
i: Integer;
begin
GameTab(4);
for i := 2 to 28 do
begin
if ExistsItem(i) then
begin
DropItem(i);
end;
end;
end;
One simple way
Works... Thanks.![]()
You don't need a begin - End for If () Then or a For/ While loop if you use only one "line" - like this:
SCAR Code:For I := 1 To 28 Do
If ExistsItem(i) Then
DropItem(i);
There are currently 1 users browsing this thread. (0 members and 1 guests)