Ilya
2012-05-21 14:46:07
It can be based on spot number of the item?
And also is there a simple resting function?
Thanks in advance!
And also is there a simple resting function?
Thanks in advance!
2012-05-21 14:46:07
2012-05-21 14:51:11
ItemName := DTMFromString('enter the DTM here');
If FindDTM(ItemName, pX,pY,MiX1,MiY1,MiX2,MiY2) then
begin
HumanMMouse(pX, pY, 7, 7);
ClickMouse2(False);
MarkTime(T);
Repeat
Wait(25+Random(10));
Until(ChooseOption('rop')Or(TimeFromMark(T)>2000));
end;(*
DropItem
~~~~~~~~
.. code-block:: pascal
procedure DropItem(i: Integer);
Drops item at given position (1-28)
.. note::
by Lorax
Example:
.. code-block:: pascal
DropItem(3);
*)
function DropItem(i: Integer): Boolean;
begin
Result := False;
if ExistsItem(i) then
begin
MouseItem(i, mouse_Right);
if (WaitOptionEx('rop', 'action', ClickLeft, 250)) then
begin
Result := True;
Wait(RandomRange(50, 200));
end;
end;
end;Dropitem(22);(*
DropAll
~~~~~~~
.. code-block:: pascal
procedure DropAll;
Drops all items in inventory.
.. note::
by Rasta Magician
Example:
.. code-block:: pascal
DropAll;
*)
procedure DropAll;
var i: integer;
begin
for i:= 0 to 2 do
begin
DropPattern(Random(2) + 1);
if InvCount = 0 then
break;
end;
end;
2012-05-21 14:55:31
From: Ilya
It can be based on spot number of the item?
And also is there a simple resting function?
Thanks in advance!
InvMouse(RandomRange(1,28),3); // This will move a mouse from slot 1-28
ClickMouse2(False);
WaitOption('Drop');
// the 1,28 are the slots so it can range from 1-28
2012-05-21 14:56:05
2012-05-21 14:58:57
From: GOOGLE
Is the resting for energy?
And a simple drop spot in inventory I use is.
InvMouse(RandomRange(1,28),3); // This will move a mouse from slot 1-28
ClickMouse2(False);
WaitOption('Drop');
// the 1,28 are the slots so it can range from 1-28
2012-05-21 14:59:44
From: Ilya
Exactly what I was looking for, Thanks!
so 28,28 would drop the last item right?
2012-05-21 15:01:01
From: YoHoJo
DTMs are the way to go!
http://villavu.com/forum/showthread.php?t=68018
2012-05-21 15:02:58
if RunEnergy(ALowNumber) then
RestUntil(AHighNumber);
2012-05-21 15:03:40
From: Ilya
I haven't gotten that far. Most of the script i'm working on comes simply from coordinates.
2012-05-21 15:24:08
From: GOOGLE
Is the resting for energy?
And a simple drop spot in inventory I use is.
InvMouse(RandomRange(1,28),3); // This will move a mouse from slot 1-28
ClickMouse2(False);
WaitOption('Drop');
// the 1,28 are the slots so it can range from 1-28
2012-05-21 15:27:18
WaitOption('rop', 3000);
// removed the 'D' because it's a capital letter. 3000ms = 3seconds
2012-05-21 16:22:52
2012-05-21 16:51:54
Procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);
Deposits from Slot to ToSlot.
vType True = Deposit All. vType False = Deposit one by one.
Any integer is deposit with Deposit X. (except for 5 and 10)
.. note::
Author: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
Last Modified: Unknown
Example:
.. code-block:: pascal
Deposit(1, 28, True);
*)
procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);
2012-05-22 01:29:10
From: YoHoJo
Check out Bank.SimbaProcedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);
Deposits from Slot to ToSlot.
vType True = Deposit All. vType False = Deposit one by one.
Any integer is deposit with Deposit X. (except for 5 and 10)
.. note::
Author: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
Last Modified: Unknown
Example:
.. code-block:: pascal
Deposit(1, 28, True);
*)
procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);
2012-05-22 12:19:27
From: Ilya
Working like a charm.
It's so great to have such a supportive and knowledgeable community.
Is there a way at the bankscreen to deposit for example items 1-27 and keep 28?
OR to repeat an action a set amount of times?
for example Repeat…………..
Until (4) or something of that nature.
var
i, j: Integer;
begin
for i := 0 to j do
begin
//Do whatever you want to be repeated (j-i) times here
//When this finishes, it will check if integer i is equal to j, and if it is
//it breaks from the for loop and continues, if it isnt, it will add one unit
//to i, and repeat whatever is in here until i is equal to j
end;
end;
2012-05-22 13:57:03
From: Subliment
As for the first question, I still have not approached banking. But for the second question, you use a for loop:
for example:
var
i, j: Integer;
begin
for i := 0 to j do
begin
//Do whatever you want to be repeated (j-i) times here
//When this finishes, it will check if integer i is equal to j, and if it is
//it breaks from the for loop and continues, if it isnt, it will add one unit
//to i, and repeat whatever is in here until i is equal to j
end;
end;
I hope you got that =D
2012-05-22 16:12:18
From: Ilya
So would i have to specify what j equals to?
for example to repeat 4 times would i have to do J=4 under constants?
...
for i := 0 to 3 do
...
...
for i := 1 to 4 do
...
2012-05-22 16:49:21
2012-05-31 02:58:36
2012-05-31 23:22:59
From: Ilya
Trying it now.
Still looking for a way to deposit items 1-27 while bankscreen open.
Deposit(1, 27, True);
2012-06-02 01:37:29