SRL Archive - OSR Help

FindNPCChatText?


fJX

2012-03-28 03:04:36

I'm trying to get the script to click the the first option when talking to jarvald to get onto waterbirth, the option is "1. YES" with the other option being "2. NO"

i'm using this currently,

ClickContinue(true, false);
wait(4000);
FindNPCChatText('es',clickleft)
wait(5000);

But it doesn't seem to click the option, i've tried '1', 'YES', 'es' and a few other things and nothing seems to work :confused:

Any help/ideas please?

begginer

2012-03-28 03:36:46

There is some kind of option that clicks the green arrow called clickcontinue;
I am not sure about that.

fJX

2012-03-28 03:43:54

From: begginer
There is some kind of option that clicks the green arrow called clickcontinue;
I am not sure about that.


Yeah, I got that part working, it hits the spacebar to continue passed that and then two chatboxes come up asking yes or no, but for some reason my script won't click these and just ends :(

iBlank

2012-03-28 13:39:46

I'm by no means an expert scripter, but do the two options have a different background than the usual NPC chat text and this makes the function not work? I hope you understand what I am asking. If no one can help you, maybe you could try using a dtm until you find your answer!

Edit: Footballjds's simplicity is much better than using a dtm.

footballjds

2012-03-28 13:41:58

if i'm not mistaken the coords for the options in chat don't change. Why over-complicate it? a simple Mousebox would work.

Abu

2012-03-28 13:44:21

Check here

Been buggy due to RS updates

fJX

2012-03-28 13:53:12

From: footballjds
if i'm not mistaken the coords for the options in chat don't change. Why over-complicate it? a simple Mousebox would work.


Yeah I ended up doing just that last night, lmao.

@abu_jwka, yeah I found this out recently over the irc, oh well. Thanks for the info anyways.

Ashaman88

2012-03-28 13:57:46

Typesendex('1',false);

That would work too