SRL Archive - OSR Help

Looking for assistance; please=D


AFools

2013-04-24 13:58:26

I am not Entirely new to scripting; I use to belong to this community around 07ish; but since then have had no involvement in scripting. It is good to see many old user still around.



I have one query at present. While will such a command as the one i will post work?

- Unknown identifier 'FindObjEx' (is the error i get)

Const

orecolor1 = 0000000;
orecolor2 = 0000000;
orecolor3 = 0000000;
orecolor4 = 0000000;

procedure FindingOre;
Var X,Y: Integer;
begin
if FindObjEx(X, Y, ['ine', 'ock'], [orecolor1, orecolor2, orecolor3, orecolor4], 10, 50, MSX1, MSY1, MSX2, MSY2) THEN
begin
MouseBox(X+5, Y+5, X+5, Y+5, mouse_left);
wait(3500+ random(250))
end;
end;






Thanks in advance.

MaetNameno

2013-04-24 14:06:34

I'm not sure what your asking. If you're asking if the code you made should work I think yes. If you're asking about the error I may be completely wrong here but do you have all the includes and told the script to use them?

AFools

2013-04-24 14:17:37

Well; i can run other peoples scripts. As I am more into trying to create my own again; and as i haven't scripted in some time.

I am just trying to make a simple (find rock) (mine rock) loop then well move onto (dropping ores) etc.

I believe i have all the includes. I cannot get this part to compile. though it appears as if it should.

This is starting to drive me a little insane.


** This part does not compile** i have change it with various other findobject commands. Is the problem in the way my variables or something?

AFools

2013-04-24 15:36:18

Thanks for the reply anyway; i think i have solved that part of it; with

FindObjCustom(X, Y, ['ine', 'ock'], [orecolor1, orecolor2, orecolor3, orecolor4], 5) THEN

But i still don't understand why the other one wouldn't compile; if anyone would like to answer go for it! =D

MaetNameno

2013-04-24 18:28:47

FindObjEx is for the P07Include. I'm not sure it's called the same throughout the other includes. That may be the problem if you're using a different one.

AFools

2013-04-24 19:45:58

It has to be something to with the syntax im using; because i can execute other peoples scripts which have that exact command; so it cant be my include. =D

mistake me if i'm wrong.

King

2013-04-24 22:39:42

From: Banjowak
It has to be something to with the syntax im using; because i can execute other peoples scripts which have that exact command; so it cant be my include. =D

mistake me if i'm wrong.


Can you post what includes you are using plus setup (SRLSetup ect..) if you don't want to post the whole script? I pasted your command into my script and it compiles fine. Feel free to PM the script as well. Are you calling setupSRL?