SRL Archive - OSR Help

Unofficial P07 Include Not working?


Dvsdvl

2013-03-02 06:36:40

My script compiles perfectly fine, but some functions in the P07 include don't work.

I have some ore in my inventory,

writeln(P07_InvCount);
Just returns 0, even though there's things in my inventory.

Also

P07_DropAll;
Does nothing.

Can someone help?


program EssMiner;

{$I SRL/SRL.Simba}
{$I P07Include.Simba}

Const
TITLE = 'EssMiner'; //Do not change
AUTHOR = 'Trixie'; //Do not change
VERSION = '1.0a'; //Do not change
WEILDING = 'True'; //Are you weilding your axe? (true or false only!)


var
WieldAxe:Boolean;
EssCol1,EssCol2,x,y:Integer;

Procedure SaveColors;
Begin
//Change these to 2 colors of essence!
EssCol1 := 8487307;
EssCol2 := 8487307;
End;

Procedure DropEss;
Begin
if (WieldAxe = True) then
Begin
P07_DropAll;
End;
if (WieldAxe = False) then
Begin
P07_DropAllExcept([1]);
End;
MoveMouse(x ,y);
ClickMouse(x, y, 1);
End;

Procedure FindEss;
begin
If P07_FindObj(x, y, 'Rune Essence', EssCol1, 25) or
P07_FindObj(x, y, 'Rune Essence', EssCol2, 25) Then
Begin
writeln('we found it');
End;
End;

Procedure MineEss;
begin

if(P07_InvFull = True) Then
Begin
DropEss;
End;
End;

begin
x := 304
y := 89

//You needn't touch this part, it's to check if you are holding your axe or not
if (StrToBool(WEILDING) = True) then
Begin
WieldAxe := True
End;

if (StrToBool(WEILDING) = False) then
Begin
WieldAxe := False
End;
//End of axe hold check

//MoveMouse(x, y);
//Wait(10);
//ClickMouse(x, y, 1);

Writeln(P07_InvCount);

Repeat
//MineEss;
Until(false);
end.

(I commented out some lines to find out why it wasn't dropping my items)

Thanks

Runehack123

2013-03-02 06:53:55

p07_InvCount returns an integer value so you do..
writeln(IntToStr(P07_InvCount));

As for your code..try this.
You have wieldaxe as global variable :confused: and then this weilding thing as a global const so I removed some unnecessaire>>
Const
WEILDING = 'True'; //Are you weilding your axe? (true or false only!)

Procedure DropEss;
Begin
if Weilding then
Begin
P07_DropAll;
End
Else
Begin
P07_DropAllExcept([1]);
End;
MoveMouse(x ,y);
ClickMouse(x, y, 1);
End;

I hope you like :o :o - nothing wrong with the include here.

Dvsdvl

2013-03-02 09:53:03

From: Runehack123
p07_InvCount returns an integer value so you do..
writeln(IntToStr(P07_InvCount));

As for your code..try this.
You have wieldaxe as global variable :confused: and then this weilding thing as a global const so I removed some unnecessaire>>
Const
WEILDING = 'True'; //Are you weilding your axe? (true or false only!)

Procedure DropEss;
Begin
if Weilding then
Begin
P07_DropAll;
End
Else
Begin
P07_DropAllExcept([1]);
End;
MoveMouse(x ,y);
ClickMouse(x, y, 1);
End;

I hope you like :o :o - nothing wrong with the include here.


I have this code now

Writeln(IntToStr(P07_InvCount));

It still returns 0 even though I have items in my inventory.

Eduard

2013-03-02 10:02:20

are you sure that you are seeing the inventory? (i.e. tab 4 selected?)

Dvsdvl

2013-03-02 10:04:01

From: Eduard
are you sure that you are seeing the inventory? (i.e. tab 4 selected?)


Yeah my inventory is open

Runehack123

2013-03-02 10:30:34

What about the other part? Is that working for you at least? :)
Maybe you don't have client selected or something or are not including 07 lib properly.
Be sure to put $i .. 07 etc.. at the top and SetUp07 etc.. at the start.

DannyRS

2013-03-02 10:37:08

Run this, see what it prints out?


program new;

{$I Srl/Srl.Simba}
{$I P07Include.Simba}

begin
SetupP07Include;
ActivateClient;
Writeline(IntToStr(P07_InvCount));
end;

Dvsdvl

2013-03-02 10:54:24

From: DannyRS
Run this, see what it prints out?


program new;

{$I Srl/Srl.Simba}
{$I P07Include.Simba}

begin
SetupP07Include;
ActivateClient;
Writeline(IntToStr(P07_InvCount));
end;


I had 1 thing in my inventory and it printed out what it should

Compiled successfully in 421 ms.
Checking P07Include VersionNumber
Local : 1.7 / Latest : 1.7
You Have The Latest Version of P07Include
1
Successfully executed.

Why didn't it work on my script?

DannyRS

2013-03-02 11:20:36

No SetupP07Include; at the start?

Dvsdvl

2013-03-02 11:24:47

From: DannyRS
No SetupP07Include; at the start?


I've just read the code you posted, I added that in.

It tells me that it needs a new version and I should restart my script. It's not starting at all now


Compiled successfully in 405 ms.
Checking P07Include VersionNumber
Local : 1.6 / Latest : 1.7
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.

DannyRS

2013-03-02 11:26:56

From: Dvsdvl
I've just read the code you posted, I added that in.

It tells me that it needs a new version and I should restart my script. It's not starting at all now


Compiled successfully in 405 ms.
Checking P07Include VersionNumber
Local : 1.6 / Latest : 1.7
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.


You have a second P07Include somewhere within your simba folder somewhere (maybe in scripts ?), you need to find and delete it ;)

Alternatively delete all versions of it, and re-download from my thread

Dvsdvl

2013-03-02 11:29:33

From: DannyRS
You have a second P07Include somewhere within your simba folder somewhere (maybe in scripts ?), you need to find and delete it ;)

Alternatively delete all versions of it, and re-download from my thread


I deleted it and downloaded a new one off your thread and I still get the

Checking P07Include VersionNumber
Local : 1.6 / Latest : 1.7
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
Message :/

DannyRS

2013-03-02 11:32:55

Search your simba folder for P07Include, delete all appearances of it, re-download, try again?

Dvsdvl

2013-03-02 11:55:27

From: DannyRS
Search your simba folder for P07Include, delete all appearances of it, re-download, try again?


Thanks, that worked ^-^

DannyRS

2013-03-02 12:24:33

From: Dvsdvl
Thanks, that worked ^-^


Great ;)

jman22son

2013-03-03 07:37:58

please help!!! I am so desperate to try a bot…
I keep getting this error with any script i try and use.. Quite disappointed right now. Could use assistance :)

Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Users\Tricksta\Downloads\DannyRS-BGA-V1.1 (1).simba'

DannyRS

2013-03-03 07:40:09

From: jman22son
please help!!! I am so desperate to try a bot…
I keep getting this error with any script i try and use.. Quite disappointed right now. Could use assistance :)

Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Users\Tricksta\Downloads\DannyRS-BGA-V1.1 (1).simba'


That's for main runescape only, not 07, and you need to watch the Simba setup video

http://villavu.com/forum/showthread.php?t=47714

madmatt9797

2013-03-03 13:51:59

How do i get this setup as a user? "Exception in Script: Unable to find file 'P07Inculude.Simba' used from 'C:\Simba\Scripts\P07_GnomeAgilityBeta2.6.simba'" is all i get