Element1
Forum Addict
- Joined
- Mar 22, 2007
- Sythe Gold
- 0
- Messages
- 440
Can someone help me write a dropping procedure. Credits will be given, its for iron ores.
Procedure DropOre;
Var
X, Y, OreDTM, I:Integer;
Slotbox:Tbox;
OrePattern:TIntegerArray;
Begin
If InvFull then
Begin
MarkTime(TooLong);
OreDTM := DTMFromString('mrAAAAHic42BgYHBmYmCwB2IvIA4GYj8gdgBiYyA2AeLHQDVXgfgmEN8H4tdA/AmI3wDxQyA2kRcHkkx4MG7wH4gZCWAYAAAOhgrG');
OrePattern:=[1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,27,4,8,12,16,20,24,28];
StatsGuise('Dropping Ore:' + IntToStr(I));
For I:=0 To 27 Do
Repeat
Begin
SlotBox:=InvBox(OrePattern);
If FindDTm(OreDTM, X, Y, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) Then
Begin
FindNormalRandoms;
MMouseItem(OrePattern);
Mouse(X, Y, 2, 2, mouse_Right);
ChooseOption('Dro');
End;
End;
Until(InvEmpty);
MarkTime(TooLong);
End;
End;
That is what I have right now, but it does not drop any of the ore.
Procedure DropOre;
Var
X, Y, OreDTM, I:Integer;
Slotbox:Tbox;
OrePattern:TIntegerArray;
Begin
If InvFull then
Begin
MarkTime(TooLong);
OreDTM := DTMFromString('mrAAAAHic42BgYHBmYmCwB2IvIA4GYj8gdgBiYyA2AeLHQDVXgfgmEN8H4tdA/AmI3wDxQyA2kRcHkkx4MG7wH4gZCWAYAAAOhgrG');
OrePattern:=[1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,27,4,8,12,16,20,24,28];
StatsGuise('Dropping Ore:' + IntToStr(I));
For I:=0 To 27 Do
Repeat
Begin
SlotBox:=InvBox(OrePattern);
If FindDTm(OreDTM, X, Y, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) Then
Begin
FindNormalRandoms;
MMouseItem(OrePattern);
Mouse(X, Y, 2, 2, mouse_Right);
ChooseOption('Dro');
End;
End;
Until(InvEmpty);
MarkTime(TooLong);
End;
End;
That is what I have right now, but it does not drop any of the ore.

