SRL Archive - Help

A question.


makke

2011-12-23 11:41:04

Im trying to Make a orb Making script and im stuck on the part where i am, supposed to Click on the option "Orb" In the chat box. But i can't Find any "commands" for it.
And Also i Have another Question, After The Molten Glass is all made into Orbs,
What can i do to tell the script it's time to Bank again?
Any Help is appreciated.

YoHoJo

2011-12-23 11:45:32

If the option is ALWYAS in thr exact same spot then just use coordinates to click the option.

To know when you are all done make DTM of the molten glass, and when it is not found that means you are ready to bank.

Dynamite

2011-12-23 11:46:22

From: Wiken
Im trying to Make a orb Making script and im stuck on the part where i am, supposed to Click on the option "Orb" In the chat box. But i can't Find any "commands" for it.
And Also i Have another Question, After The Molten Glass is all made into Orbs,
What can i do to tell the script it's time to Bank again?
Any Help is appreciated.


Use a DTM or even better a TPA to click on the option "orb".

To tell the script that you have made all the orbs you could do:
if not ExistsItem("The slot that Molten glass would be in") then
Bank;[SIMBA]

-Boom

makke

2011-12-23 11:50:01

From: YoHoJo
If the option is ALWYAS in thr exact same spot then just use coordinates to click the option.

To know when you are all done make DTM of the molten glass, and when it is not found that means you are ready to bank.


Oh, i tought it was high ban rate if you click on the same spot several times, so i didn't think of using coordinates first.

Thanks A ton For the answers!

YoHoJo

2011-12-23 11:51:41

The function called Mouse in SRL has built in randomness you assign!
Have you started the script yet? Care to paste it here? Please put it in samba tags.

Dynamite

2011-12-23 11:52:09

From: Wiken
Oh, i tought it was high ban rate if you click on the same spot several times, so i didn't think of using coordinates first.

Thanks A ton For the answers!


That's why you have randomisation :)

-Boom

OMGZ YOHOJO!

makke

2011-12-23 11:57:37

program GlassBlower;

{$i srl/srl.scar}

var
x, y: Integer;



Procedure MoltenGlass;

Begin
SetupSRL;

OpenBank('vwb', false, false)
Wait(500)
DepositAll;

Withdraw(0, 0, 0)
writeln('We Found Molten Glass!');
End;


Procedure Orb;

Begin;
CloseBank;
GameTab(tab_Inv);
InvMouse(1, 1);
Begin;
WriteLn('Starting Orbs Now!');

End;
End;

Begin
//Repeat
MoltenGlass;
Orb;
//Until(False);
End.
This is as far as i've gotten. im kind of new to scripting soo no laughs please:D

YoHoJo

2011-12-23 12:00:33

Lol okay no problem.
I was just making sure you're not using clickmouse/movemouse/holdmouse etc. Those will get you banned. You must use Mouse and MMouse. Nice start, noob! Lol

makke

2011-12-23 12:32:51

From: YoHoJo
Lol okay no problem.
I was just making sure you're not using clickmouse/movemouse/holdmouse etc. Those will get you banned. You must use Mouse and MMouse. Nice start, noob! Lol


Humm, im back. im trying to use Mouse and there is a problem when it is gonna click. After it clicks the molten glass and it gonna press the orb option it clicks to fast and the orb option don't got the time to Pop up. soo my question is.
Is there anyways i can delay the click on Mouse?

Helper

2011-12-23 12:49:23

Use DTM there is a tutorial just search.

Certified By :norris:

Shuttleu

2011-12-23 12:56:08

From: Wiken
Humm, im back. im trying to use Mouse and there is a problem when it is gonna click. After it clicks the molten glass and it gonna press the orb option it clicks to fast and the orb option don't got the time to Pop up. soo my question is.
Is there anyways i can delay the click on Mouse?


just put a Wait(250+Random(300)); in there somewhere

Also, you only need to run SetupSRL once

~shut