SRL Archive - OSR Help

I need help with finding npc !


newsbox

2011-12-21 17:08:21

like the title says… i need help finding an npc
im making a butterfly hunting script..
but i can´t figure out how to find and right click a butterfly i tried color , bitmap and DTM …..
i´m hoping som1 knows a way to find and click those litle fast flying things…

Thanks in advance

Kyle Undefined

2011-12-21 17:13:48


if(FindColor())then
begin
MMouse(x, y, 5, 5);
if(IsUpText())then
begin
Mouse(x, y, 0, 0, False);
Wait(RandomRange(250, 750));
ChooseOption();
end;
end;

Of course that's very very very simple pseudo code. The functions I call exist, you just have to fill them out.

newsbox

2011-12-21 17:27:00

ty for fast reply but i tryed it with color :(
do you know how small those butterflys are im sorry to say but checking for uptext is kinda useless here

idk why but it just doesnt find the color :O

Kyle Undefined

2011-12-21 17:29:31

I know nothing about hunting, so I was doing a generic NPC find. Screen shot of one?

newsbox

2011-12-21 17:46:09

yea they r rlly small

Kyle Undefined

2011-12-21 17:51:25

Well that's HD, you need to be in lowest and minimal settings. That would be a starting point.

newsbox

2011-12-22 11:52:03

thanks was on low graphics now putted it on minimal that hides the grass i hope its gonna work now :D

edit: still doesnt work tried color and bitmap
ther to small for dtm

Blumblebee

2011-12-22 14:46:27

From: newsbox
thanks was on low graphics now putted it on minimal that hides the grass i hope its gonna work now :D

edit: still doesnt work tried color and bitmap
ther to small for dtm


The Color is pretty different from it's surroundings so a TPA should be easily able to find it. Can you post the code that you use, and describe the problem of it not working, like does it find the color but not click fast enough, or simply not find the color all together?

newsbox

2011-12-23 10:06:41

ty for all your help ppl but i think i fixed it XD
i had findColor(x,y,color,xs,ys,xe,ye)
changed it to
findColor(x,y,color,MSX1,MSY1,MSX2,MSY2)
and now it does find them XD