SRL Archive - OSR Help

how to efficiently detect a resource dungeon?


lure4fun

2012-05-31 21:49:21

i was searching for quite sometime on forums and i cant think of a good way to detect the door for a resource dungeon and i was also curious how i could get script to recognize if there was a certain amount of black pixels on the screen so that it could verify that i was inside the resource dungeon :d any help is appreciated :)

Nebula

2012-05-31 21:50:12

PercentBlackMM

YoHoJo

2012-05-31 21:55:11

ACA to detect/click resource dungeon door.
You can also verify if you are in/out of a resource dung by looking for/lack of MM Symbols.

lure4fun

2012-05-31 23:09:37

From: YoHoJo
ACA to detect/click resource dungeon door.
You can also verify if you are in/out of a resource dung by looking for/lack of MM Symbols.


thanks :)

Abu

2012-06-01 03:03:14

I'm actually gonna go with zmon on this one. Do something like:


function InDungeon: Boolean;
begin
if (PercentBlackMM > 20) then
Result := True;
end;

You can edit 20 to a different amount but it seems reasonable to me.


EDIT: Another easier way is to use FindSymbol if the Mining Symbol is present

YoHoJo

2012-06-01 03:07:08

zmon hasn't posted here?
:D And you went with BOTH of us!

Sirenia

2012-06-01 03:11:54

From: YoHoJo
zmon hasn't posted here?
:D And you went with BOTH of us!

He saw the newcomer thing and thought it was zmon I think :P

YoHoJo

2012-06-01 03:13:06

From: Sirenia
He saw the newcomer thing and thought it was zmon I think :P


Ha! Saw green newcomer title, but then Promising Newcomer underneath.
O man da human brain u no.