SRL Archive - Jr. Member General Help and Discussion

isMouseOverText Question


IROC-Z

2014-11-10 19:42:09

Say I was High Alching something and the code to check the mouse over text was


if (isMouseOverText(['Cast', 'ast'])) then

is there a way so it would look for "Cast" and "Yew" for example? I know if you add it in the function it would look for either or. Would it be a if this text and that text then do this? or is that not possible?

Wetish

2014-11-10 19:46:32

if (isMouseOverText(['Cast', 'ast'])) and (isMouseOverText(['Yew'])) then

IROC-Z

2014-11-10 19:49:49

From: Wetish
if (isMouseOverText(['Cast', 'ast'])) and (isMouseOverText(['Yew'])) then


Thanks!

KeepBotting

2014-11-10 21:58:42

From: Wetish
if (isMouseOverText(['Cast', 'ast'])) and (isMouseOverText(['Yew'])) then


if isMouseOverText(['Cast', 'Yew']) then

?

Justin

2014-11-10 22:04:20

From: KeepBotting
if isMouseOverText(['Cast', 'Yew']) then

?


I think he wants to make sure he is only alching Yew, if you put [Cast, Yew] then it will still alch anything (as the Cast option is true)

The Mayor

2014-11-10 22:56:19

Or if you want one condition you could go 'emy -> Yew' or whatever the overText is.

IROC-Z

2014-11-11 00:28:10

From: Justin
I think he wants to make sure he is only alching Yew, if you put [Cast, Yew] then it will still alch anything (as the Cast option is true)


From: The Mayor
Or if you want one condition you could go 'emy -> Yew' or whatever the overText is.


Thanks Mayor, yes I want to make sure it is both. The original issue was with super heating. It would sometimes click the bars and try and super heat those. Once changing it to the if, and, then statement it worked worthout clicking bars for two hours before I shut it down.

Thank you all for the responses!