Ok whenevere i try to use ClickSymbol it always gives me an error saying type mismatch. Will someone please explain this to me.
Ok whenevere i try to use ClickSymbol it always gives me an error saying type mismatch. Will someone please explain this to me.
Try to use clickobject instead.
ignore petrock6 lol, you have to use a bitmap for that, try findsymbol, you can use the name of the symbol instead(the coordinates will be in the first 2 slots, so use findsymbol(myx,myy,'bank',<dunno if more has to be put here.);
mouse(myx,myy,true);
(check SRL include for what to use exactly...)
Infractions, reputation, reflection, the dark side of scripting, they are.
i know. right now im haveing it click the anvil bitmap that is loaded with find symbol. Here's exactly what i wrote.
ClickSymbol('anvil');
How about trying something like this:
SCAR Code:procedure ClickAnvilSymbol;
var AnvilColor:Integer;
Times:Integer;
begin
repeat
AnvilColor:=GetSymbolColor(x,y,'Anvil')
wait(25)
Times:=Times+1
until(AnvilColor>0)or
(Times>19)
if(Times>19)then
TerminateScript;
Mouse(x,y,2,2,True)
flag;
end;
nono, just use FindSymbol. This function returns the found x and y coords of the MMSymbol. Use these coords to click the Mouse...
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
Ok but what do all the things in findsymbol mean? like (var rx, ry: Integer; Name: String): Boolean;
And you have made a "brand new include for training a pure"? And you dont know what var rx,ry:integer means?
hmmmm...
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
I made all my own procedures for that so i didn't need to use that stuff. So are going to tell me or just makefun
x,y are the integers, and in this case represent the coordinates of the symbol. After you have findsymbol then say mmouse(x,y,true)....
SUMMER BREAK be back when I want to
lol it was 1:30am here...its a var so that means youd write it out like this: FindSymbol(rx,ry,'anvil'); and if im not mitaken thats right...problem is now that iv made it correctly it just sits there and dosent do anything (my procedure)
it sets the location of the symbol to the variables you put in (rx,ry in this case)
so then you need mouse(rx,ry,1,1,true) after
ok so it would be this:
if(findsymbol(rx,ry,'anvil')=true)then
Mouse(rx,ry,true);
close, you don't need = true because the whole thing represents true, just like the condidtion (s=2) represents true (assuming it does of course), also you forgot the random parameters in mouse
if(findsymbol(rx,ry,'anvil')) then
Mouse(rx,ry,1,1,true);
There are currently 1 users browsing this thread. (0 members and 1 guests)