SRL Archive - OSR Help

A simple question.


Littma

2011-12-02 13:42:09

From my previous thread that I accidentally posted in the wrong section (oops, half asleep again!) it left off with a final question holding in my mind so I thought I'd post it here.

(UPDATED: Scroll down the first post!)


begin
oldCount := InvCount;
if(FindColorSpiralTolerance(x, y, 5874198, MSX1, MSY1, MSX2, MSY2, 41)) then
[B][COLOR="Navy"]//Some function to hover the mouse over the color that was found[/COLOR][/B]
if IsUpText('Take') then
Mouse(x, y, 0, 0, True);
Flag;
newCount := InvCount;
end;

I cannot seem to find that one function listed in the script above. It's a rather basic start though I'm still in the learning process so please bare with me :redface: Also is there a database with all the available commands with a description? I can't seem to find something like that and it would reduce a lot of questions I may have. Thanks in advance!

Edit:


begin
oldCount := InvCount;
if(FindColorSpiralTolerance(x, y, 12345, MSX1, MSY1, MSX2, MSY2, 41)) then
MMouse(x, y, 0, 0);
if IsUpText('Take') then
Mouse(x, y, 0, 0, True);
Flag;
newCount := InvCount;
end;
For some reason before I added the 'if IsUpText' function in the script it will simply stop right after that specific function. Seeing I'm attempting to make the script pick up an item and it does find the color, hover over the color, then executes. Any ideas on what I'm doing wrong?

RISK

2011-12-02 13:44:42

Are you looking to move the mouse to the color that is found?
MMouse(X, Y, 0, 0);

E:
The "Database" you are looking for would be the search function inbuilt in Simba:

Littma

2011-12-02 13:54:38

From: RISK
Are you looking to move the mouse to the color that is found?
MMouse(X, Y, 0, 0);

E:
The "Database" you are looking for would be the search function inbuilt in Simba:


You are my savior, thank you! <3

I really appreciate your help, you have no idea how much it means to me :redface:

RISK

2011-12-02 13:56:41

You are very welcome. I'm always glad to help and I'm very sure that everyone else is always glad to help. :) Please don't hesitate to request help if you need it in the future.

From: Littma
You are my savior, thank you! <3

I really appreciate your help, you have no idea how much it means to me :redface:

Home

2011-12-02 13:57:41

Wrong.

Littma

2011-12-02 14:12:25

From: Home
Wrong.


Pardon? Could you please clarify what is wrong apposed from simply saying wrong. If it's about the Flag command could you please clarify what is wrong about using it within the script so I can get a better understanding of where everyone is coming from?

RISK

2011-12-02 14:14:03

He accidentally posted in this thread when he meant to make his own thread, which he did here: http://villavu.com/forum/showpost.php?p=853640&postcount=1

From: Littma
Pardon? Could you please clarify what is wrong apposed from simply saying wrong.

Littma

2011-12-02 14:16:13

From: RISK
He accidentally posted in this thread when he meant to make his own thread, which he did here: http://villavu.com/forum/showpost.php?p=853640&postcount=1


Oh, alright sorry for the misunderstanding!