SRL Archive - OSR Help

Need help with a Soulsplit Bot


imdylan

2012-10-28 23:33:35

hey so im making my first bot. and im stuck on one thing. ive got fighting down flawlessly. so i need to know how to make it right click and select the Gold Charm becuase there is normaly 2 items so i just want it to pick up gold charm
this is the pickup line atm

Procedure Pickupdrop;
begin
wait(1000)
if srl_infight = false then
if(FindColorSpiralTolerance(x, y, GoldCharm, MSX1, MSY1, MSX2, MSY2, 5))then
begin Mouse(x, y, 5, 5, true); //If found will Left-Click on the x, y coordinates with a randomness between 5 pixelend
wait(1000)
end;
end;


But that just clicks the top item and my inv gets filled up fast

RELESEING WHEN FINISHED!

Ixilisi

2012-10-28 23:47:17

Have a look at http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html

But i think what you want is

ClickMouse(x + random(5), y + random (5), 0);

I may be wrong though, try it.
from: ClickMouse(x, y: Integer; clickType: Integer):

imdylan

2012-10-28 23:55:03

From: Ixilisi
Have a look at http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html

But i think what you want is

ClickMouse(x + random(5), y + random (5), 0);

I may be wrong though, try it.
from: ClickMouse(x, y: Integer; clickType: Integer):


what would i do with that i know how to make it right click i just need it to left lick on the gold charm option. any ideas?

NKN

2012-10-28 23:58:43

Mouse(x,y,3,3,Mouse_Right);
WaitOption('Gold',300);

Something like that

Also, Don't make more than one topic/per problem

imdylan

2012-10-29 00:02:48

From: NKN
Don't make more than one topic/per problem

k sorry, just really on a deadline and need help

From: NKN
Mouse(x,y,3,3,Mouse_Right);
WaitOption('Gold',300);

Something like that


right clicks the gold charm but doesnt select it or click it?

Daniel

2012-10-29 00:26:26

Removed duplicate threads, merged posts and cleaned thread. Please do not do it again :)

riwu

2012-10-29 00:39:54

From: imdylan
k sorry, just really on a deadline and need help



right clicks the gold charm but doesnt select it or click it?

The default rs uptext doesn't work since it's private server. The simplest way (but possibly less reliable) to do this is to measure the y-distance between your click and the option you want it to choose, then after right clicking do something like:
wait(RandomRange(100,200)); //wait for option menu
GetMousePos(x,y); //declare x,y as integer;
Mouse(x, y + dist, 5, 2, mouse_Left); //replace dist with the dist you measured

The more advanced methods would be using OCR/bitmap/TPA to detect the option.

rj

2012-10-29 15:51:51

From: riwu
The default rs uptext doesn't work since it's private server. The simplest way (but possibly less reliable) to do this is to measure the y-distance between your click and the option you want it to choose, then after right clicking do something like:
wait(RandomRange(100,200)); //wait for option menu
GetMousePos(x,y); //declare x,y as integer;
Mouse(x, y + dist, 5, 2, mouse_Left); //replace dist with the dist you measured

The more advanced methods would be using OCR/bitmap/TPA to detect the option.


as the drops pile up he wouldn't be picking up hold charms everytime though

marc2333

2012-11-05 02:40:33

DTM is his only solution

follow this guide and use it to creat an image with the "gold charm"

http://www.youtube.com/watch?v=SlS4q9MiFX4

Good luck :)