SRL Archive - OSR Help

NPC Dialogue


shiningwhite

2012-05-20 03:20:27

Problem Solved, more specific final text. and FindNPCChatText('yes',Clickleft);


I've been searching for a solution to this problem for a while, I apologize if I miss something obvious.

What I want it to do is to press spacebar to continue through chat until there are options, then to press 1 for first option.


doconversation('Are',true);
wait(1000+random(500));
Presskey(1);

it wont continue past the first dialogue box though. 'Are you ready to go' is the result text i am searching for, the page before options.

riwu

2012-05-20 03:39:06

does that first dialogue box contains "Are" too?

Also PressKey's parameter isn't the thing that you want it to send, eg. if you want to send a "1" key u should use PressKey(31), PressKey isn't safe though as it is bot-like, try use
KeyDown(31);
wait(RandomRange(10,30));
KeyUp(31);
for more info on that refer to
http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html

Gucci

2012-05-20 13:03:38

Use FindNPCChatText('one word here', action to do) or FindNPCChatTextMulti(['word', 'word2', 'word3'], action) I use these in my scripts and they work well to get upto this point I use ClickContinue(True, True).

Like this:

ClickContinue(True, True);
FindNPCChatText('Are', mouse_left);