SRL Archive - OSR Help

Talking to NPC's


xtrapsp

2012-03-17 21:05:52

Hey guys,

I've never really explored this area of simba.. I want my script to find a monk when his health is > 50 and then talk and ask to heal.

Now I came to the conclusion for finding the heal text I can use a dtm.

However.

I'm stumped with finding the text after right mouse clicking, I was thinking of using DTM's with that as well… but that's no good considering the box is a little see through.

    if FindObj(X, Y, 'monk', 2109238, 6) then
Mouse(x, y, 2, 2, False);

I looked at Uptext within the simba client itself. Didn't know which one to pick haha :P

Gucci

2012-03-20 18:18:58

So after right clicking on the monk you need to choose an option? That's what I think your asking so in that case use ChooseOption('eal'); put whatever the text with out the first letter of the word in the function.

So something like:

if FindObj(X, Y, 'monk', 2109238, 6) then
Mouse(x, y, 2, 2, False);
ChooseOption('eal');

Nebula

2012-03-20 19:28:00

ChooseOption();

FindNPCChatText();

xtrapsp

2012-03-24 08:53:28

Both helpful options! Thanks ^.^