SRL Archive - OSR Help

How to right click object?


ssshhhaaa

2012-04-17 07:47:40

I need a function that can right click a character and then trade.

I know that this function can click the character :

FindObjCustom(x, y, ['Over text'], [colour], tolerance);
Mouse(x,y,4,4,true);

But is there a function that can right click, using over text and colour, and then select the trade option.

Thanks for the help :)

Paradoxium

2012-04-17 07:53:06

i suggest using a rotated dtm to find your character and then just use ClickMouse2();

In those () you can put mouse_right or mouse_left, after use chooseoption(if that is still working, Im pretty sure it is…) and voila :D

ssshhhaaa

2012-04-17 10:03:06

So what would a rotated dtm be?

Joe

2012-04-17 10:12:48

Mouse(x,y,4,4,true);
but instead of true
Mouse(x,y,4,4,False);
and findrotated is just finding the dtm on an angle- better for finding your DTM.
You can find it in the SRL includes

ssshhhaaa

2012-04-17 10:14:52

Oh it worked thanks a lot, also managed to trade the Npc. :))

Paradoxium

2012-04-17 21:07:46

great! glad it worked :D