SRL Archive - General Botting Help

Some quick questions


Brose

2014-12-12 06:02:19

Hi guys, I need some help with some questions and would appreciate if anyone can shed some light.

1. How big is this mainscreen.Playerbound? Roughly.
2. Is there SRL function to identify and do mouse_move or mouse_left for NPC vendors like they do for backpack slots and say bank slots? Which means, is there something to the effect of

if vendorScreen.isOpen() then
vendorScreen.mouseSlot(3, mouse_right, buy_all);

Thank you in advance.

Frement

2014-12-12 06:07:54

To find out how big the player box is:
smartImage.drawBox(mainScreen.playerBox);

For the mouse_right you need to use chooseOption().

KeepBotting

2014-12-12 07:44:44

1.
procedure TRSMainscreen.__setup();
const
PLAYER_BOX_WIDTH = 26;
PLAYER_BOX_HEIGHT = 38;
. . .

The playerBox is exactly 26 by 38 pixels.

2. chooseOption will get the job done.

if vendorScreen.isOpen() then
begin
vendorScreen.mouseSlot(3, MOUSE_RIGHT);
chooseOption.select(['Your text', 'our tex', 'r te']);
end;

Brose

2014-12-12 13:57:29

From: KeepBotting
1.
procedure TRSMainscreen.__setup();
const
PLAYER_BOX_WIDTH = 26;
PLAYER_BOX_HEIGHT = 38;
. . .

The playerBox is exactly 26 by 38 pixels.

2. chooseOption will get the job done.

if vendorScreen.isOpen() then
begin
vendorScreen.mouseSlot(3, MOUSE_RIGHT);
chooseOption.select(['Your text', 'our tex', 'r te']);
end;


Sorry. is there a vendorScreen.mouseSlot function? Because I just made it up on the spot. I dont see it in the documentation though.

Turpinator

2014-12-12 14:21:38

From: Brose
Sorry. is there a vendorScreen.mouseSlot function? Because I just made it up on the spot. I dont see it in the documentation though.


No, there is not.

The Mayor

2014-12-12 14:53:22

There isn't any sort of shop include file.

KeepBotting

2014-12-12 16:36:30

From: Brose
Sorry. is there a vendorScreen.mouseSlot function? Because I just made it up on the spot. I dont see it in the documentation though.


VendorScreen is a shop screen? No, there are no shop screen function in the include

You could however, copy one of the other TRSInterfaces in the include and add your own naming, bounds, colors, and edit functions like .mouseSlot() to be able to interact with a new interface

Brose

2014-12-12 17:23:47

Ah that explains alot. Thanks alot everyone