PDA

View Full Version : [Unofficial] OldschoolRS07 Include



Pages : [1] 2 3 4

DannyRS
02-23-2013, 02:50 PM
About

THIS IS NOW OUTDATED

PLEASE UPDATE TO SRL-OSR HERE (https://github.com/SRL/SRL-OSR)

Must be called in this order:


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

SetupSRL;
P07_DeclarePlayer;
SetupP07Include;



This is not a Script. it is an include, it will not bot anything for you, you must write a script to use it!!


If you are unfamiliar with my similar project: Projectrs06 SRL Include (http://villavu.com/forum/showthread.php?t=95916) please take a moment to read and familiarize yourself with what it is,



{$I P07Include.Simba}
SetupP07Include; //call in your script


Designed for Brightness all the way to the right! (up full)


Setup

Designed for a browser (I'm using Chrome), not S.M.A.R.T, but it will probably work in there too (remember to drag the green target from Simba's toolbar onto the RS client)

NEW Video Tutorial by YoHoJo:
General Setup:http://youtu.be/Iox4LylEj40
Get SMART to load RS07 (So you can minimize the bot): http://youtu.be/0N-RWHwHHAY


Save and Move P07Include To: Simba\Includes\


Save, Extract and Move P07UpChars(folder) To: Simba\Fonts\



Example how to use in a Script:


Program testP07;

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

//LOGIN INFO STUFF
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Begin

P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
Wait(2000);
If (Not P07_LoggedIn) Then
P07_LogInPlayer;
P07_MakeCameraAngleHigh;
P07_MakeCompassNorth;

Writeln(P07_GetUpText);

If P07_BankScreen Then
WriteLn('Bank is Open');
If P07_InvFull Then
WriteLn('Inventory is Full');

End.

Matsetst
02-23-2013, 03:14 PM
ah sweet :D

OwnageVesta
02-23-2013, 03:22 PM
Thanks man! :D

DannyRS
02-23-2013, 03:25 PM
It's largely just a modified version of the private server include we developed to work for 07, so if you find any errors I made while copying and pasting stuff, please let me know so I can update :)

imangry
02-23-2013, 03:26 PM
Works well upto i try use If (P07_IsUpTextMultiCustom(['Mine','Rocks']))Then

then it seems to crash with the error:

Error: Exception: Font [P07UpChars] not found. at line 107
The following DTMs were not freed: [0, 1]

I have installed them both in the right place I just don't see what im doing wrong.
Any help?

DannyRS
02-23-2013, 03:27 PM
Works well upto i try use If (P07_IsUpTextMultiCustom(['Mine','Rocks']))Then

then it seems to crash with the error:

Error: Exception: Font [P07UpChars] not found. at line 107
The following DTMs were not freed: [0, 1]

I have installed them both in the right place I just don't see what im doing wrong.
Any help?

Try Restarting Simba to load the new Font you just added? Alternatively make sure it's only one folder that contains bitmap's (not a folder inside a folder that windows makes when you extract sometimes)

imangry
02-23-2013, 03:32 PM
Try Restarting Simba to load the new Font you just added? Alternatively make sure it's only one folder that contains bitmap's (not a folder inside a folder that windows makes when you extract sometimes) Thanks forgot to restart. :duh:

DannyRS
02-23-2013, 03:33 PM
Thanks forgot to restart. :P

Let me know if everything works ok, there's quite a bit to test by myself, I tried my best to make sure I got everything working perfect before releasing publicly :)

And I'm running several scripts using it, they seem to be working just fine!

rj
02-23-2013, 03:39 PM
yesshhh!!

DannyRS
02-23-2013, 03:40 PM
yesshhh!!

No gold-farming scripts without decent anti-leech please :p preferably no public gold farming ones at all ^^

rj
02-23-2013, 03:48 PM
No gold-farming scripts without decent anti-leech please :p preferably no public gold farming ones at all ^^

DW will have anti leech

The Killer
02-23-2013, 03:51 PM
hmm, I presume you havn't got randoms done yet? :P

DannyRS
02-23-2013, 03:54 PM
hmm, I presume you havn't got randoms done yet? :P

I have a few of em done, but that's far too much for me to do alone lol, didn't add any randoms to the Include as the code is very messy atm,

I'm sure the SRL Random Team shall return soon tho!!

rj
02-23-2013, 04:19 PM
I added basic randoms that logs out if it can't find anything, also found a smokey rock:


{
Smoke info
Best color: 6850447
tolerance 4
Hue mod 0.11
Sat mod 0.38
CTS:2
}

It's the best I could do

anony
02-23-2013, 05:07 PM
Thank you!

the elve age
02-23-2013, 06:03 PM
I'm new to all this Simba business :P, but basically just code that allows simba to load the RS07 client? Right? Like I said, I haven't used Simba since it was called Scar.

rj
02-23-2013, 06:09 PM
I'm new to all this Simba business :P, but basically just code that allows simba to load the RS07 client? Right? Like I said, I haven't used Simba since it was called Scar.

Your from mopar right? And simba can load RS but you can also just use it with the browser

lil str kid
02-23-2013, 06:11 PM
Your from mopar right? And simba can load RS but you can also just use it with the browser

Out of curosity how can it be loaded within simba so you can do whatever you want on your computer?

DannyRS
02-23-2013, 06:14 PM
I'm new to all this Simba business :P, but basically just code that allows simba to load the RS07 client? Right? Like I said, I haven't used Simba since it was called Scar.

no thats S.M.A.R.T, this gives you:

http://i.imgur.com/2rsPap1.png

rj
02-23-2013, 06:15 PM
Out of curosity how can it be loaded within simba so you can do whatever you want on your computer?

On Runescape? You have to use the SMART include, on RS 2007 I'm not sure but I know it's easy you can just edit smart params. I'm not the person to ask though

marc2333
02-23-2013, 06:42 PM
Hey, what is an anti leech ? Is it like just a part of the code where user needs to complete/custum the script ? Not planning on making gold farming bots but I was just curious.

intensity254
02-23-2013, 06:49 PM
"[Error] C:\Simba\Includes\P07Include.simba(57:3): Unknown identifier 'MMouse' at line 56" Any idea?

BigRedJapan
02-23-2013, 06:49 PM
So basicly its the same ways as coding just we need to put P07_ before every procedure and string!

rj
02-23-2013, 06:53 PM
Danny, the drop procedure needs to be updated to look more human like :) also it hits the logout button a lot by accident.

DannyRS
02-23-2013, 06:55 PM
"[Error] C:\Simba\Includes\P07Include.simba(57:3): Unknown identifier 'MMouse' at line 56" Any idea?

you need {$I SRL/SRL.Simba} aswell before {$I P07Include.Simba}


Danny, the drop procedure needs to be updated to look more human like :) also it hits the logout button a lot by accident.

:O I'll take a look

rj
02-23-2013, 06:57 PM
you need {$I SRL/SRL.Simba} aswell before {$I P07Include.Simba}



:O I'll take a look

Also I think the login procedure may need to be fixed it's hard to explain the bug test it out yourself

DannyRS
02-23-2013, 07:00 PM
Also I think the login procedure may need to be fixed it's hard to explain the bug test it out yourself

are you sure you used green target, both work flawless for me

dont drag it onto the navbar!

intensity254
02-23-2013, 07:02 PM
I'm lost. I keep getting the same error and I have everything set up properly.

DannyRS
02-23-2013, 07:04 PM
I'm lost. I keep getting the same error and I have everything set up properly.

run this


Program testP07;

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

//LOGIN INFO STUFF
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Begin
P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
End.

Emperia
02-23-2013, 07:05 PM
are you sure you used green target, both work flawless for me

dont drag it onto the navbar!

The drop procedure is bugged just like rjj95 said, it doesnt drop properly and it accidently switches to the logout tab.

But it's working fairly good other than that, keep it up! :)

DannyRS
02-23-2013, 07:06 PM
The drop procedure is bugged just like rjj95 said, it doesnt drop properly and it accidently switches to the logout tab.

But it's working fairly good other than that, keep it up! :)

how can i recreate this bug?

Emperia
02-23-2013, 07:07 PM
how can i recreate this bug?

I'm sorry, I don't quite understand what you're asking me atm.

DannyRS
02-23-2013, 07:09 PM
I'm sorry, I don't quite understand what you're asking me atm.

are you just calling P07_DropAll; and it's buggy? it works flawlessly for me

Emperia
02-23-2013, 07:11 PM
are you just calling P07_DropAll; and it's buggy? it works flawlessly for me

I suppose, well it drops like 8 items max in the inventory, accidently drops item(s) which it shouldn't drop, and it goes to the logout sometimes so you'll have to open up the inventory yourself.

intensity254
02-23-2013, 07:12 PM
run this


Program testP07;

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

//LOGIN INFO STUFF
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Begin
P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
End.


Did it. "Program testP07;

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

//LOGIN INFO STUFF
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Begin
P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
End."

Everything is setup but I can't get it working.

DannyRS
02-23-2013, 07:13 PM
I suppose, well it drops like 8 items max in the inventory, accidently drops item(s) which it shouldn't drop, and it goes to the logout sometimes so you'll have to open up the inventory yourself.

what the hell lol, do you have team viewer so you can show me?



Did it.

Everything is setup but I can't get it working.

did you install simba right? http://www.youtube.com/watch?v=mho1ek92jgY

Emperia
02-23-2013, 07:16 PM
what the hell lol, do you have team viewer so you can show me?

I don't sorry, I was just about to say it works well now, but after the 3rd/4th inventory drop it accidently went on the logout tab again. Seems to happen every now and then.

eShade
02-23-2013, 07:19 PM
Dropping works fine for me, thanks :)

Emperia
02-23-2013, 07:27 PM
It has accidently logged me out twice now, hmm.

DannyRS
02-23-2013, 07:33 PM
It has accidently logged me out twice now, hmm.

2mins double checking math

Emperia, run this for me with a full inv plz, show me the image that opens in simba,


Program DropDebugger;

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

Procedure P07_DebugBoxes(DSlotX,DSlotY:Integer);
Var
xsx,ysy,R,C:Integer;
FoundItem:T2DPointArray;
Begin
SetLength(FoundItem,1);
xsx:=565;
ysy:=215;
For R:=0 To 3 Do
Begin
For C:=0 To 6 Do
Begin
if (R=DSlotX) and (C=DSlotY) Then
Begin
FoundItem[0]:=[Point((xsx+(R*42)),(ysy+(C*36))),Point((xsx+(R*42) +27),(ysy+(C*36)+25))];
DebugATPA(FoundItem,'testbox');
End;
End;
End;
End;

Begin
SetupP07Include;
ActivateClient;
P07_DebugBoxes(1,6);
End.

The Killer
02-23-2013, 07:45 PM
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Why not just use the TUser record in the srl include?
Other than that GoodJob :), Don't know why you didn't keep it SRL+ but that's your choice at the end of the day.

DannyRS
02-23-2013, 07:48 PM
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Why not just use the TUser record in the srl include?
Other than that GoodJob :), Don't know why you didn't keep it SRL+ but that's your choice at the end of the day.

1. SetupSRL will break the include
2. its not a script so why, most tutorials here require up-text and etc

rj
02-23-2013, 07:49 PM
Btw, a lot of people are getting this error:

http://i.imgur.com/T7C1518.png
What is it?

The Killer
02-23-2013, 07:53 PM
Btw, a lot of people are getting this error:

http://i.imgur.com/T7C1518.png
What is it?
The fonts are wrong or have been loaded wrong.

rj
02-23-2013, 07:53 PM
The fonts are wrong or have been loaded wrong.

Is it the script or the include?

DannyRS
02-23-2013, 07:55 PM
Btw, a lot of people are getting this error:

What is it?

"a lot of people" means who, just you? try a simba restart?

is this on uptext?

rj
02-23-2013, 08:09 PM
"a lot of people" means who, just you? try a simba restart?

is this on uptext?

check my powerminer thread I'm not getting it

DannyRS
02-23-2013, 08:15 PM
check my powerminer thread I'm not getting it

its your forum crap not the include :p

rj
02-23-2013, 08:22 PM
its your forum crap not the include :p

Hows the form messing with it?

DannyRS
02-23-2013, 08:22 PM
Hows the form messing with it?

Font settings idk, the guy got it working anyway, maybe wasn't

bot2stake1
02-23-2013, 08:26 PM
Thanks a lot for putting this up, I am able to run rjj95's powerminer now (got it working)

CC94
02-23-2013, 08:47 PM
How do i add this bro? Im a new fag

bdenizb
02-23-2013, 08:48 PM
It says:

P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
Wait(2000);
If (Not P07_LoggedIn) Then
P07_LogInPlayer;
P07_MakeCameraAngleHigh;
P07_MakeCompassNorth;

Writeln(P07_GetUpText);

If P07_BankScreen Then
WriteLn('Bank is Open');
If P07_InvFull Then
WriteLn('Inventory is Full');

purezfire
02-23-2013, 08:48 PM
Looks great! How would i get this working with smart 8 though? Is there any way to change the link the smart client loads?

DannyRS
02-23-2013, 08:49 PM
How do i add this bro? Im a new fag

read the OP.

Ashaman88
02-23-2013, 08:54 PM
randoms are really annoying on here :( can't bot forever like on reg rs

purezfire
02-23-2013, 08:54 PM
danny help with smart pl0xx
refer to my post above if you can, im totally stumped.

bdenizb
02-23-2013, 08:55 PM
It also says:

[Error] C:\Simba\Includes\P07Include (1).simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.

CC94
02-23-2013, 08:57 PM
wheres simba\fonts i cant find it.

CC94
02-23-2013, 09:02 PM
Exception in Script: Unable to find file 'P07Include.Simba'

i added the things to font and includs like Op said??

DannyRS
02-23-2013, 09:04 PM
Exception in Script: Unable to find file 'P07Include.Simba'

i added the things to font and includs like Op said??

In the wrong places then

http://en.wikipedia.org/wiki/Folder_%28computing%29

bdenizb
02-23-2013, 09:06 PM
Plz answer man :)

CC94
02-23-2013, 09:08 PM
Alright thanks.

DannyRS
02-23-2013, 09:12 PM
It also says:

[Error] C:\Simba\Includes\P07Include (1).simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.

dont try to compile the Include, you need in a script,

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

bdenizb
02-23-2013, 09:14 PM
Do you have skype, I need some serious help!! :D

jake115
02-23-2013, 09:17 PM
danny look at your messages

DannyRS
02-23-2013, 09:24 PM
danny look at your messages

I do read all my pm's, I don't sell scripts sorry!

mcbain
02-23-2013, 10:19 PM
Woo! Thank youuuu. time to start scripting for myself :D

DannyRS
02-23-2013, 10:21 PM
Woo! Thank youuuu. time to start scripting for myself :D

That's exactly what I want to hear !!

unregistered user
02-23-2013, 11:49 PM
anyone have a working findbank / template i could use?

btw tyvm danny!

J J
02-23-2013, 11:54 PM
Nice release man I'll look into making some scripts tomorrow!

DannyRS
02-23-2013, 11:58 PM
Nice release man I'll look into making some scripts tomorrow!

Aww ty for not flaming me about making something public !

it probably looks a tad messy (no-one really see's it anyway), but meh its all working, I just fixed loginplayer a tad coz jagex think it's funny to make it so whenever you click the client anywhere on screen the username/password focus switches ! should log you in every time now,

edit - found another different text screen, added that and re-committed the update (1.2), the autoupdater seems to work for me atleast ;)

killer06
02-24-2013, 01:17 AM
thanks mate currently power minning dat iron. but need to baby sit like every 20mins.

and thanks to the guy at first site wich posted smoking rock colors, works fine :P

punkerpunk13
02-24-2013, 01:33 AM
Thanks for this. Really needed the camera angle functions.. :P

sprunt
02-24-2013, 01:50 AM
Sorry im new but im getting;

[Error] C:\Simba\Includes\P07Include.Simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.

DannyRS
02-24-2013, 01:51 AM
Sorry im new but im getting;

[Error] C:\Simba\Includes\P07Include.Simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.

You don't compile it, it's not a script lol

killer06
02-24-2013, 02:09 AM
in a random event if the tab disappears the open tab function will always click on it if you call it. just wanted you to know.

DannyRS
02-24-2013, 02:11 AM
in a random event if the tab disappears the open tab function will always click on it if you call it. just wanted you to know.

Yea the old version had a failsafe for that, but I felt it best to always try and reset, I'll put it back next update ;)

Twinki
02-24-2013, 02:38 AM
I'm new to scripting with Simba, and was wondering if I have to use P07_FindObj(1267066, 10, 15, ['pen', 'lose', 'oor'], 3)

I'm watching YohoJo's tutorial vids and i'm confused with if P07_FindObj(1267066, 10, 15, ['pen', 'lose', 'oor'], 3) and FindObjCustom(x, y, ['att', 'ack'], [123456, 345678], 5);

Do I have to use your FindObj for 07? If so can I just put P07_FindObj in front of (x, y, ['att', 'ack'], [123456, 345678], 5);

DannyRS
02-24-2013, 02:53 AM
I'm new to scripting with Simba, and was wondering if I have to use P07_FindObj(1267066, 10, 15, ['pen', 'lose', 'oor'], 3)

I'm watching YohoJo's tutorial vids and i'm confused with if P07_FindObj(1267066, 10, 15, ['pen', 'lose', 'oor'], 3) and FindObjCustom(x, y, ['att', 'ack'], [123456, 345678], 5);

Do I have to use your FindObj for 07? If so can I just put P07_FindObj in front of (x, y, ['att', 'ack'], [123456, 345678], 5);

I didn't write that function ^^ I can't remember what it does and I'm in bed atm, contact Awkwardsaw and ask him how to use it ^^, some functions are written by the devs from P06Iclude, the writer's name is above the function in blue text :p

If you are that new to Simba, I'd strongly suggest looking into making your own object finding procedure

Twinki
02-24-2013, 02:56 AM
I didn't write that function ^^ I can't remember what it does and I'm in bed atm, contact Awkwardsaw and ask him how to use it ^^, some functions are written by the devs from P06Iclude, the writer's name is above the function in blue text :p

It just finds an object, pretty much the same as FindObj. Was just wondering if I have to use yours in 07, since it goes by color I don't see any difference from using yours and FindObj(var cx, cy: Integer; Text: string; Color, Tol: Integer): Boolean;

Muusta
02-24-2013, 02:57 AM
What do you mean with: SetupP07Include; //call in your script

Ive done everything right, i tried the code you told another user to try, the one that popped up a blue box.

SeanStar
02-24-2013, 04:02 AM
19310
Works great! I even got it to work with smart! Very nice! (Changing the param page to http://oldschool1.runescape.com/,j1 and setting RSReady to True)

goobernoob
02-24-2013, 04:39 AM
Anyone have skype and willing to help me?

Zaros
02-24-2013, 08:02 AM
For whatever reason, P07_LoginPlayer wasn't working correctly (not going to the password field) .. fixed it by slowing it down and making it send tab

DannyRS
02-24-2013, 09:20 AM
For whatever reason, P07_LoginPlayer wasn't working correctly (not going to the password field) .. fixed it by slowing it down and making it send tab

I think I had it send enter, should do the same thing :O



What do you mean with: SetupP07Include; //call in your script

Ive done everything right, i tried the code you told another user to try, the one that popped up a blue box.

This is not a script, it's not going to bot anything for you lol

YoHoJo
02-24-2013, 09:29 AM
For whatever reason, P07_LoginPlayer wasn't working correctly (not going to the password field) .. fixed it by slowing it down and making it send tab

Same for me. What's the key/code for tab?

Would be nice for login function to detect weather or not you've clicked Existing User or not too (just as an extra).

Why name Inventory Slot 1 0?
SRL has never done this before? Number the slots starting at 1 instead of 0 please.

Zaros
02-24-2013, 09:33 AM
I think I had it send enter, should do the same thing :O
Enter being 13, yes? Well it SHOULD work, but it wasn't.



Same for me. What's the key/code for tab?

Would be nice for login function to detect weather or not you've clicked Existing User or not too (just as an extra).

I took a stab at it being ASCII code for the keys, I guess I was right. Tab is 9.

DannyRS
02-24-2013, 09:41 AM
Same for me. What's the key/code for tab?

Would be nice for login function to detect weather or not you've clicked Existing User or not too (just as an extra).

Why name Inventory Slot 1 0?
SRL has never done this before? Number the slots starting at 1 instead of 0 please.

I just decided to keep eveything in programming language, because I didn't know what in SRL started at 0, and what started at 1, kinda too late to change it now, and it's better to have it one way or the other throughout all functions,

What do you mean detect if you've clicked existing user?


Enter being 13, yes? Well it SHOULD work, but it wasn't.

I took a stab at it being ASCII code for the keys, I guess I was right. Tab is 9.

Ok guess I'll change it to 9 later :/ enter works fine for me

ILikeSmoothHeads
02-24-2013, 09:47 AM
Could someone help me with setting up smart for 07? I tried to change the url to oldschool, but it's not working:

Says cannot get smart params:
** Failed To Grab Smart Parameters **
** Please check your internet connection/firewall **
Successfully executed.

skype: smooth.heads if anyone can help

oszolom
02-24-2013, 10:58 AM
I have problem, but my bot see colors coper, tin and iron. only he dont click on Copper.

Please help.

Simba 0.99 has been released. The release pages will be updated in a few
days.

The latest Simba is Simba 992. Changes from 991 are mostly just lape
updates: http://villavu.com/forum/showthread.php?t=94351


Thank you for using Simba,
Hakuna Matata.

Compiled successfully in 16 ms.
Successfully executed.

SirBanana
02-24-2013, 12:25 PM
My include just updated. Removed P07_FindObj ?

DannyRS
02-24-2013, 12:29 PM
My include just updated. Removed P07_FindObj ?

yes because it was rather bad, I'll add a good one later

The Killer
02-24-2013, 12:49 PM
Going to try and make a lobster fisher with this ^.^, wish me luck?
The fonts work now right? :d

DannyRS
02-24-2013, 12:56 PM
Going to try and make a lobster fisher with this ^.^, wish me luck?
The fonts work now right? :d

font's always did, goodluck :)

Zippers
02-24-2013, 01:07 PM
Hey danny, can you add me on skype? I need your help: vespuccipb

DannyRS
02-24-2013, 01:07 PM
Hey danny, can you add me on skype? I need your help: vespuccipb

busy atm, leave me a PM with your issue

Zippers
02-24-2013, 01:22 PM
I really don't get how to edit a script and make it work for the 2007 client.
Sorry for being new, can someone please assist me on skype I would really appreciate it: vespuccipb

Rob Schneider
02-24-2013, 02:38 PM
Very nice include! Currently I've only tried P07_IsUpTextMultiCustom (which works extremely well by the way). Thanks for this!

turkkanka
02-24-2013, 03:25 PM
Compiled successfully in 1810 ms.
Checking P07Include VersionNumber
Local : 1.0 / Latest : 1.3
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
Compiled successfully in 1779 ms.
Checking P07Include VersionNumber
Local : 1.0 / Latest : 1.3
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
keeps saying this over and over. i even manually placed the includes in the right folders /simba. any help im just too nooby.
im using this include for the 2007 powerminer.

turkkanka
02-24-2013, 03:26 PM
not to mention i restarted the computer, my script and all.

DannyRS
02-24-2013, 03:42 PM
Compiled successfully in 1810 ms.
Checking P07Include VersionNumber
Local : 1.0 / Latest : 1.3
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
Compiled successfully in 1779 ms.
Checking P07Include VersionNumber
Local : 1.0 / Latest : 1.3
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
keeps saying this over and over. i even manually placed the includes in the right folders /simba. any help im just too nooby.
im using this include for the 2007 powerminer.

re-download it from my original post? I checked auto-updater is working fine

turkkanka
02-24-2013, 03:54 PM
aight i updated everything, all is well now. One thing the firewall warning is from this include i guess?

l6bustank
02-24-2013, 04:10 PM
anyone tried it yet?

thekilar
02-24-2013, 04:14 PM
For some reason the uptext keeps returning an empty String, thanks though :).

DannyRS
02-24-2013, 04:20 PM
For some reason the uptext keeps returning an empty String, thanks though :).

did you drag the green target from Simba onto the RS window? and install the Font?


aight i updated everything, all is well now. One thing the firewall warning is from this include i guess?

No idea


anyone tried it yet?

I use this myself for some things ^^ so yes

SmellyPenguin
02-24-2013, 06:31 PM
Thank you very much for this! I am going to try my best to develop a simple bot :)

Pinecones
02-24-2013, 07:08 PM
This works well. The only problem I have noticed is that with FindObj, when it seems to find the object itll move the mouse again and then terminate. Meaning... as the mouse jumps around to find the object, once it finds it, it moves the mouse once more and stops.

sanchitsharma
02-24-2013, 07:29 PM
Exception in Script: Unable to find file 'AntiLeech.Simba'

DannyRS
02-24-2013, 07:30 PM
Exception in Script: Unable to find file 'AntiLeech.Simba'

that's script related don't post it here

johnnyhart
02-24-2013, 07:42 PM
Thanks for this! Works great. Any idea how to get it working in SIMBA? I've got it working in chrome but can't work out how to do it in SIMBA. Thanks again :)

DannyRS
02-24-2013, 07:45 PM
Thanks for this! Works great. Any idea how to get it working in SIMBA? I've got it working in chrome but can't work out how to do it in SIMBA. Thanks again :)

what...?

Zaros
02-24-2013, 07:47 PM
Ok guess I'll change it to 9 later :/ enter works fine for me

Yeah, I mean when I normally log in I can use enter.. Just not sure why it wouldn't work now.

johnnyhart
02-24-2013, 08:11 PM
what...?

Sorry, I meant SMART not SIMBA :D

DannyRS
02-24-2013, 08:12 PM
Sorry, I meant SMART not SIMBA :D

Oh, I'm not dealing with SMART ^^

beow
02-24-2013, 10:56 PM
Checking P07Include VersionNumber
Local : 1.0 / Latest : 1.4
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
It says the local is 1.0 but when i open p07include.simba it states that it is 1.4. not sure why simba still thinks its only 1.0 :(
redownloading include and restarting my pc does nothing to fix the issue

DannyRS
02-24-2013, 11:00 PM
Checking P07Include VersionNumber
Local : 1.0 / Latest : 1.4
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
It says the local is 1.0 but when i open p07include.simba it states that it is 1.4. not sure why simba still thinks its only 1.0 :(
redownloading include and restarting my pc does nothing to fix the issue

very weird, search for p07include.simba on pc delete all, re-download

Eejit
02-24-2013, 11:24 PM
Looks good.

Just one question, is there any was to see an api for this? I'm fairly new to Simba scripting.

DannyRS
02-24-2013, 11:35 PM
Looks good.

Just one question, is there any was to see an api for this? I'm fairly new to Simba scripting.

After including in a script, open in left hand side of simba Includes->P07Include

djborec
02-25-2013, 12:35 AM
I tried out your Include ,but I still have problem with uptext while opening bank in al kharid it does not work . I do not know what could be wrong ,interesting is that when I stop and then start script again it works like charm . But once I press disable SMART and again enable is not working.

DannyRS
02-25-2013, 12:37 AM
I tried out your Include ,but I still have problem with uptext while opening bank in al kharid it does not work .

drag over it, take a screenshot, show me, and I'll check if it is

unfeared
02-25-2013, 01:08 AM
Awesome, thanks alot, really. My first post in 6 years.

DannyRS
02-25-2013, 01:32 AM
Awesome, thanks alot, really. My first post in 6 years.

Haha, welcome out of the lurking closet!

YoHoJo
02-25-2013, 01:53 AM
Dropping no longer works.
It right clicks, but doesn't find the ChooseOption texts.
So DropAll just goes around right clicking random inveteracy slots until the end.

Edit:
Having trouble finding uptext at times
ex:
http://puu.sh/27Wrr
Is rturning:

' r
9c-
4 9c-
9c-
9c-
Or blank lines.

Wetish
02-25-2013, 02:23 AM
@YoHoJo

I was having some problems with it not obtaining any text because the coordinates were put off because of the navigation bar. Call this before your texting finding:

SRL_EnableNavBar;

YoHoJo
02-25-2013, 02:32 AM
@YoHoJo

I was having some problems with it not obtaining any text because the coordinates were put off because of the navigation bar. Call this before your texting finding:

SRL_EnableNavBar;

Thanks for help, I actually already call that.
It's just that sometimes text is not ready properly if the screen/background is 'odd'. So just gotta move camera or something.

SmellyPenguin
02-25-2013, 02:45 AM
Wow, I've been looking through some of the functions and I love them! So many possibilities with this bot! Also, I'm working on a rune essence miner (my first script). If I do release it, will omitting a couple breaks and quotes be substantial enough to act as an anti-leech function?

SmellyPenguin
02-25-2013, 02:51 AM
Function P07_GetUpText: String;

Returns the text in the upperleft corner of Project06 (often referred to as UpText).

What does that do? Is that only got Project06? If not, what text is this referring to?

Edit: Nevermind, I was thinking of something else :P

ineedbot
02-25-2013, 03:16 AM
Now how about 2007 SPS?

rj
02-25-2013, 03:21 AM
Now how about 2007 SPS?

No, if he releases it it should only be SRL members +

ineedbot
02-25-2013, 03:53 AM
whatever, i do a comparison to the original sps and 06 sps, theres only like 15 changes... ill do it myself.

rj
02-25-2013, 04:05 AM
whatever, i do a comparison to the original sps and 06 sps, theres only like 15 changes... ill do it myself.

Don't release it if you do.

SmellyPenguin
02-25-2013, 04:17 AM
Don't release it if you do.

I don't think you can restrict his ability to release code that is allowed on these forums.

"No, if he releases it it should only be SRL members +"

Implies that that is your opinion.

JPHamlett
02-25-2013, 04:44 AM
Nothing works for me with this.....countColor doesn't even work........

Countcolor(56656, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2);

Haven't looked into it yet.

Zaros
02-25-2013, 05:38 AM
Dropping no longer works.
It right clicks, but doesn't find the ChooseOption texts.
So DropAll just goes around right clicking random inveteracy slots until the end.

Edit:
Having trouble finding uptext at times
ex:
http://puu.sh/27Wrr
Is rturning:

Or blank lines.

Yeah, I'm having trouble with making mine drop stuff out of the inv... Damn ChooseOption. I tried calling SRL_EnableNavBar beforehand.. doesn't seem to do anything for me.

I'll go mess around with it and see if I make any progress

DannyRS
02-25-2013, 06:32 AM
JUST FYI - I'm pretty sure if you call SetupSRL; this include will not work, I don't know what the hell goes on in there, but it breaks it, so smart pairing stuff must be called manually, and you need to switch SetupSRL; with SetupP07Include;

When you load 07 applet in smart, does the smaller than current NavBar come with it too?

Like I said I'm VMing not using smart, chrome browser, drag green target onto the main screen (don't drag it onto the navigation bar)



Yeah, I'm having trouble with making mine drop stuff out of the inv... Damn ChooseOption. I tried calling SRL_EnableNavBar beforehand.. doesn't seem to do anything for me.

I'll go mess around with it and see if I make any progress

@Zaros, please tell me this is P07_ChooseOptionMulti and not ChooseOption?, remember 99% of the official options won't work on 07,


Thanks for help, I actually already call that.
It's just that sometimes text is not ready properly if the screen/background is 'odd'. So just gotta move camera or something.
YoHoJo, I'm guna guess here when you have smart enabled and you call SetupSRL, it offset's everything by 50 pixels? Alternatively the client is offset in smart by a few pixels, meaning it's looking in wrong place for the text, needs to be exact, because that's how I designed it,

YoHoJo JPHamlett, Could you Both try it in a browser for me please, not smart, and see if it works, maybe then I can locate the issue with SetupSRL; and remedy it

Zaros
02-25-2013, 06:44 AM
JUST FYI - I'm pretty sure if you call SetupSRL; this include will not work, I don't know what the hell goes on in there, but it breaks it, so smart pairing stuff must be called manually, and you need to switch SetupSRL; with SetupP07Include;

When you load 07 applet in smart, does the smaller than current NavBar come with it too?

Like I said I'm VMing not using smart, chrome browser, drag green target onto the main screen (don't drag it onto the navigation bar)




@Zaros, please tell me this is P07_ChooseOptionMulti and not ChooseOption?, remember 99% of the official options won't work on 07,

Yeah yeah, P07. I figured we could just assume at this point.. My bad :)

No navbar, just the applet.

DannyRS
02-25-2013, 06:57 AM
Yeah yeah, P07. I figured we could just assume at this point.. My bad :)

No navbar, just the applet.

Try it in a browser for me please? and just use a wait(2000); writeln(P07_GetUpText); I just tried it, works flawless for me :/

I believe it's smart / setupsrl that is causing the problem

Zaros
02-25-2013, 07:01 AM
Try it in a browser for me please? and just use a wait(2000); writeln(P07_GetUpText); I just tried it, works flawless for me :/

I believe it's smart / setupsrl that is causing the problem

Actually even in smart the uptext works pretty well (I tested it previously), the P07_ChooseOptionMulti doesn't for me. I think you're probably right about it being smart. Now if I could find that offset... lol

DannyRS
02-25-2013, 07:06 AM
Actually even in smart the uptext works pretty well (I tested it previously), the P07_ChooseOptionMulti doesn't for me. I think you're probably right about it being smart. Now if I could find that offset... lol

I don't know why SetupSRL breaks the font, I'll have to look into it lol, try P07_ChooseOptionMulti(['Something']); In a browser for me?

If the uptext is sometimes working Idk why the hell the options is not because their the same font :/

Everything still works for me in a browser

YoHoJo
02-25-2013, 07:25 AM
Danny, no it's just the Text being read wrong.

I'm using, SMART and including/calling old SRL, but I use the EnableNavBar function which gets rid of any offsets problems.

The UpText is read properly most of the times, but certain background etc cause it to be read all wrong.

Also any plans to 'break this up' into separate include files just like SRL used to be?

Also going back to my inventory slot comment, I really think we should keep it in line with how SRL standards always were. Making inv slot 1 called 1, and not 0, etc.

DannyRS
02-25-2013, 07:35 AM
Danny, no it's just the Text being read wrong.

I'm using, SMART and including/calling old SRL, but I use the EnableNavBar function which gets rid of any offsets problems.

The UpText is read properly most of the times, but certain background etc cause it to be read all wrong.

Also any plans to 'break this up' into separate include files just like SRL used to be?

Also going back to my inventory slot comment, I really think we should keep it in line with how SRL standards always were. Making inv slot 1 called 1, and not 0, etc.

Hmm, maybe the tolerance needs to be higher, but the text always works for me, is your brightness up full? The only backgrounds that should affect it is stuff like, snow behind white text and such, but if you make sure to use one string from the white and one from the Blue/Yellow/Orange, then it should be ok

I was going to break it up eventually, but seeing as it's just me doing this, I'm keeping it all in one for ease of install, because I don't want to bite of more than I can chew,

I'll change the inv and bank functions all to 1-28 rather than 0-27 when I commit the next update, but all the hate from people who already used it like this will be directed at you <3

BoxxyBabee
02-25-2013, 07:40 AM
Hello I am new into these forums and learning scripting for 2007 RS. I am writing a simple bot that involves walking and I am trying to use the P07_FindMMFlag function to delay the next command until the Mini Map flag disappears. However I can not seem to get wait from the function or change the Boolean return regardless of the mini map flag being present or not.

YoHoJo
02-25-2013, 07:40 AM
We need to find some people willing and able to get randoms working :D, JJ will be one for sure!

I'm to busy with school to take on something that big D: but I'll be writing regular scripts for sure!

I just want to make this as much at SRL always has been before, and will defiantly help you convert/add more functions over in a few days when I get the time to do so.

We should get a git up as I suggested in another thread so everyone can push and pull and whatever else so it'll all be more organized.

Is character chat etc stuff ready? As in the yellow text above people's heads?
Is that text same as UpText?
That will be useful for logging out when we get randoms for now until we get them working again.

DannyRS
02-25-2013, 07:44 AM
Hello I am new into these forums and learning scripting for 2007 RS. I am writing a simple bot that involves walking and I am trying to use the P07_FindMMFlag function to delay the next command until the Mini Map flag disappears. However I can not seem to get wait from the function or change the Boolean return regardless of the mini map flag being present or not.

Click the minimap, maybe wait about 500ms, then call it, it should then wait till the flag disappears till it breaks that loop,

@YoHoJo I don't know if the text is the same yet, I assume it is, but none of the chatbox text has been added to this

BoxxyBabee
02-25-2013, 07:49 AM
Thank you that was it. Sorry to be noobish but currently I am only using your included functions and looking to expand. Do you have a suggestion for beginning movement includes/algorithms (Such as walking to the bank a decent distance away)

DannyRS
02-25-2013, 07:52 AM
Thank you that was it. Sorry to be noobish but currently I am only using your included functions and looking to expand. Do you have a suggestion for beginning movement includes/algorithms (Such as walking to the bank a decent distance away)

You'll have to search the tutorials section for walking methods that only use color such as DTM, TPA, and color's,

Walking long distances is quite challenging in oldrs because of how much the color's shift when the minimap reloads

djborec
02-25-2013, 08:02 AM
I do not know if it helps with uptext problem, but if you stop and start your script ,it will work without any problems. So for me its probably SMART problem.

SmellyPenguin
02-25-2013, 08:37 AM
What would be the best method of detecting an NPC with your provided includes?

DannyRS
02-25-2013, 08:41 AM
What would be the best method of detecting an NPC with your provided includes?

It's best to write your own, but I added P07_FindObj (Official SRL FindObj by Starblaster), if you can find a tutorial on using that, maybe give that a go

SmellyPenguin
02-25-2013, 09:05 AM
It's best to write your own, but I added P07_FindObj (Official SRL FindObj by Starblaster), if you can find a tutorial on using that, maybe give that a go

I attempted to use FindColor and Mouse as it works for my walking (I have no idea what SPS is, I'm a newb) but it did nothing when I ran the script. I know that the script completed the procedure because the Writeln I put after the procedure showed.

Just tried P07_FindObj and it worked! Thank you very much! :)

Also, I don't feel the neccessity of making a new thread for such a small issue, but what does the variant "button" mean?
procedure Mouse(mousex, mousey, ranx, rany: Integer; button: variant);

BoxxyBabee
02-25-2013, 09:10 AM
I attempted to use FindColor and Mouse as it works for my walking (I have no idea what SPS is, I'm a newb) but it did nothing when I ran the script. I know that the script completed the procedure because the Writeln I put after the procedure showed.

Just tried P07_FindObj and it worked! Thank you very much! :)

Also, I don't feel the neccessity of making a new thread for such a small issue, but what does the variant "button" mean?
procedure Mouse(mousex, mousey, ranx, rany: Integer; button: variant);

Which mouse button you want to use. Such as mouse_left or mouse_right.
mouse_Right = 0
mouse_Left = 1
mouse_Middle = 2

SmellyPenguin
02-25-2013, 09:17 AM
Thank you BoxxyBabee.

BoxxyBabee
02-25-2013, 09:21 AM
I am not able to call the RadialWalk function. Getting the following error written and the Globals include opens up to line 664:

"Error: Exception: The bitmap[0] does not exist at line 664
The following DTMs were not freed: [0, 1]"

I assume this has to do with not being able to use SetUpSRL. Any work around?

DannyRS
02-25-2013, 11:38 AM
I am not able to call the RadialWalk function. Getting the following error written and the Globals include opens up to line 664:

"Error: Exception: The bitmap[0] does not exist at line 664
The following DTMs were not freed: [0, 1]"

I assume this has to do with not being able to use SetUpSRL. Any work around?

As far as I know radial walk cannot be used because it's built around the official minimap :/

xtrapsp
02-25-2013, 11:48 AM
Danny, You know if we are making a SPS map for this RS?

DannyRS
02-25-2013, 11:50 AM
Danny, You know if we are making a SPS map for this RS?

The map has to be client hacked / made from scratch by screenshotting, and with the minimap color's changing soo much constantly, map rotating by it'self -+25 degrees off the true north, SPS is not very viable

I tried it, and it only worked just barely and broke pretty bad once I relogged and got new map colors

xtrapsp
02-25-2013, 11:55 AM
The map has to be client hacked / made from scratch by screenshotting, and with the minimap color's changing soo much constantly, map rotating by it'self -+25 degrees off the true north, SPS is not very viable

I tried it, and it only worked just barely and broke pretty bad once I relogged and got new map colors

I'm pretty sure there was a method where you could remove the minimap over the top bit? So it is just a block of the minimap... I think it was somewhere in the blackbook of Runescape

DannyRS
02-25-2013, 12:03 PM
I'm pretty sure there was a method where you could remove the minimap over the top bit? So it is just a block of the minimap... I think it was somewhere in the blackbook of Runescape

I was trying to mod open source private server software to draw a full map from the array file the client has, but I'm bad at java, I got very close, but not quite :p

J J
02-25-2013, 12:44 PM
I'm not sure if you added this in a future release but I've made this for a script
Function P07_WaitChooseOptionMulti(Text: TStringArray; MaxTime: Integer): Boolean;
var
T: Integer;

begin
MarkTime(T);
while TimeFromMark(T) < MaxTime do
begin
if P07_ChooseOptionMulti(Text) then
begin
Result := True;
break;
end;
Wait(RandomRange(20, 60));
end;
end;

Pretty much the same as your WaitUptext one.

DannyRS
02-25-2013, 12:49 PM
J J

I think the way I wrote chooseoption will make that kinda useless, because it will move the mouse away from the options box to close it if the option is not found, just like the SRL one does,

Whats the advantage from doing it like that? I added a GetChooseOptions: TStringArray; to the next release that could be used to constantly monitor the window for X amount of time, what's the point of waitiption multi? Just to have a wait at the end? Or something else?

I could use that to make it check the options and compare the strings every loop and then choose the option when found? Is that what you want?

Also if your writing a script and post something I'll likely add to the Include, don't name it with P07_ because when I commit the update, you'll get Duplicate identifiers :p !!

unfeared
02-25-2013, 01:03 PM
What do you suggest using for walking right now in 07?

uaexed
02-25-2013, 01:04 PM
The compass and camera angle aren't working at all.

DannyRS
02-25-2013, 01:17 PM
The compass and camera angle aren't working at all.

The mouse must be over the client and you must have focus of the window for the key press to be sent to the client, I never tested the full 360 degree's one by one tho, so some may be broken,



What do you suggest using for walking right now in 07?

TPA or DTM probably but I'm still looking into what's best

Nations_collapse
02-25-2013, 01:20 PM
Reason why the uptext doesnt work in my browser to my simple script picker :(

(*
GetUpText
~~~~~~~~~

.. code-block:: pascal

function GetUpText : string;

Returns the text in the upperleft corner of Project06 (often referred to as UpText).

.. note::

by DannyRS

Example:

.. code-block:: pascal

DannyRS
02-25-2013, 01:23 PM
Reason why the uptext doesnt work in my browser to my simple script picker :(

(*
GetUpText
~~~~~~~~~

.. code-block:: pascal

function GetUpText : string;

Returns the text in the upperleft corner of Project06 (often referred to as UpText).

.. note::

by DannyRS

Example:

.. code-block:: pascal


I coppied the Layout of my other project and missed updating that documentation... Rest assured it is UpText for 07 and not a private server,

I'm only human and currently doing this completely by myself, so bear with me lol,

Did you use "SetupSRL"? Remove it if you did, and it should work

J J
02-25-2013, 04:45 PM
J J

I think the way I wrote chooseoption will make that kinda useless, because it will move the mouse away from the options box to close it if the option is not found, just like the SRL one does,

Whats the advantage from doing it like that? I added a GetChooseOptions: TStringArray; to the next release that could be used to constantly monitor the window for X amount of time, what's the point of waitiption multi? Just to have a wait at the end? Or something else?

I could use that to make it check the options and compare the strings every loop and then choose the option when found? Is that what you want?

Also if your writing a script and post something I'll likely add to the Include, don't name it with P07_ because when I commit the update, you'll get Duplicate identifiers :p !!
Oh I didn't really look at the code. If that is indeed what happens then it doesn't make sense.
I just wanted to right click then wait like 500 ms for a certain option to appear.

DannyRS
02-25-2013, 05:16 PM
Oh I didn't really look at the code. If that is indeed what happens then it doesn't make sense.
I just wanted to right click then wait like 500 ms for a certain option to appear.

Adding to a commit in a moment, along with 1-28 (used to be 0-27) array changes YoHoJo wanted, sorry everyone! please update your scripts

uaexed
02-25-2013, 05:19 PM
Will we be seeing SPS for 07 from you?

DannyRS
02-25-2013, 05:26 PM
Will we be seeing SPS for 07 from you?

SPS doesn't work well on OldRS Minimap, so unlikely, sorry

Maybe if I can get it working to a higher accuracy

johnnyhart
02-25-2013, 07:25 PM
Getting this error after 1.5 update:
Exception: Range check error at line 636
Line 636: If (Not FindColorTolerance(X,Y,13758452,600,175,620,197,16 )) Then

johnnyhart
02-25-2013, 07:26 PM
My bad, I didn't have the rs client targeted

DannyRS
02-25-2013, 07:29 PM
Getting this error after 1.5 update:
Exception: Range check error at line 636
Line 636: If (Not FindColorTolerance(X,Y,13758452,600,175,620,197,16 )) Then

What function did you call?


My bad, I didn't have the rs client targeted

Ah ok np ;)

johnnyhart
02-25-2013, 07:30 PM
Anyone got this working with SMART? Would really appreciate it if someone could help me get it running with SMART. Even if it's just a little hint. Thanks

DannyRS
02-25-2013, 07:31 PM
Anyone got this working with SMART? Would really appreciate it if someone could help me get it running with SMART. Even if it's just a little hint. Thanks

As far as I know this include will be buggy in smart, no Idea tho ^^

BoxxyBabee
02-25-2013, 07:43 PM
I have been working with DTMs with a little bit of success. The constant rotation of the minimap still causes the Radial DTM function to fail randomly after working 10 times before.

DannyRS
02-25-2013, 07:48 PM
I have been working with DTMs with a little bit of success. The constant rotation of the minimap still causes the Radial DTM function to fail randomly after working 10 times before.

I'm having most success with TPA and ATPA walking

DannyRS
02-25-2013, 08:01 PM
\Simba\Scripts\[07] Draynor Willow Banker [1.1].simba(137:3): Identifier expected at line 136
Compiling failed.

Is this issue normal? didnt really find from any tutorial clue...?

That's script related, please post issues with scripts in the creator's thread

J J
02-25-2013, 08:23 PM
Anyone got this working with SMART? Would really appreciate it if someone could help me get it running with SMART. Even if it's just a little hint. Thanks
Works for me except since the last update it does not read uptext (properly) anymore so my script is broken :(

Simba's GetColor does not work either.. I'm really confused what I did because it adds +25 to the Y offset for some reason when I didn't change anything :S

EDIT: My fault... finally managed to fix my offsets, uptext works fine now.

DannyRS
02-25-2013, 08:24 PM
Works for me except since the last update it does not read uptext (properly) anymore so my script is broken :(

mine work fine, are you using setupsrl or smart?

I didn't touch up-text I don't think

J J
02-25-2013, 08:35 PM
mine work fine, are you using setupsrl or smart?

I didn't touch up-text I don't think
Yeah was my own fault for some reason it was adding 25 to the Y values so I just changed the globals to 0. It worked fine before, after I added SPS to my script it started to fail.

DannyRS
02-25-2013, 08:37 PM
Yeah was my own fault for some reason it was adding 25 to the Y values so I just changed the globals to 0. It worked fine before, after I added SPS to my script it started to fail.

the offset's in main SRL mess with it lol :p does SPS work well for you? accuracy is bad for me

J J
02-25-2013, 08:58 PM
the offset's in main SRL mess with it lol :p does SPS work well for you? accuracy is bad for me
I edited SPS myself it works really well for me even though I'm in Al Kharid. I'll take a look at yours.

PRO tip:
KeyDown(17);
Result := SPS_Walk07Path(Path);
KeyUp(17);

To make it run without checking if you have run % and setting run to true etc.

DannyRS
02-25-2013, 09:04 PM
I edited SPS myself it works really well for me even though I'm in Al Kharid. I'll take a look at yours.

PRO tip:
KeyDown(17);
Result := SPS_Walk07Path(Path);
KeyUp(17);

To make it run without checking if you have run % and setting run to true etc.

didn't release my sps edit publicly :P

Fishh
02-25-2013, 09:18 PM
Currently getting this error:

Error: Exception: Font [P07UpChars] not found. at line 226
The following DTMs were not freed: [0, 1]

Fonts location: C:\Simba\Fonts\P07UpChars

Any help please? New to Simba and Pascal, just getting started.

Cheers.

EDIT: As far as I can see it should be found, it's in the right location.

DannyRS
02-25-2013, 09:19 PM
Currently getting this error:

Error: Exception: Font [P07UpChars] not found. at line 226
The following DTMs were not freed: [0, 1]

Fonts location: C:\Simba\Fonts\P07UpChars

Any help please? New to Simba and Pascal, just getting started.

Cheers.

Restart Simba to load the new font's

Fishh
02-25-2013, 09:22 PM
restart simba

I'm officially a moron.

Cheers, lol.

Knoot
02-25-2013, 11:45 PM
Hello, I managed to make a script using Simba. How do I add SMART to it?

Prometheus
02-25-2013, 11:49 PM
Thank you for this, Danny. Going to use this on the scripts I make for 07scape :)

DannyRS
02-25-2013, 11:49 PM
Hello, I managed to make a script using Simba. How do I add SMART to it?

No idea, not my area of focus, you will have to wait for someone to update S.M.A.R.T in the official Includes, sorry!


metheus;1177546']Thank you for this, Danny. Going to use this on the scripts I make for 07scape :)

No Problem, just trying to do my part!

speedster
02-26-2013, 12:40 AM
Simba/Smart is quite easy to figure out, Danny would be nice if you could help us out with an improved SPS :)

DannyRS
02-26-2013, 12:45 AM
Simba/Smart is quite easy to figure out, Danny would be nice if you could help us out with an improved SPS :)

Like I keep mentioning! SPS does not work very well in 07Scape, because of minimap wobble and color changes, so it's not really worth using it,

Until maybe the creator's of it can find a way to make it more viable

Sjoe
02-26-2013, 12:50 AM
Nice job so far Danny :)

DannyRS
02-26-2013, 12:57 AM
Nice job so far Danny :)

Aww thanks, guna go to bed now, it's been another long day of answering PM's lol

SmellyPenguin
02-26-2013, 01:48 AM
The mouse must be over the client and you must have focus of the window for the key press to be sent to the client, I never tested the full 360 degree's one by one tho, so some may be broken,




TPA or DTM probably but I'm still looking into what's best

I was experimenting with the compass functions and P07_MakeCompassDegree(k) didn't work too well. When I rotated the compass and ran the script again, it barely moved the compass, not making it the degrees I wanted. P07_MakeCompassNorth works and is close enough North for me :P

Also for walking, I used FindColor and Mouse. I don't remember how to do DTMs so I might look into it again.

Maxipads
02-26-2013, 03:42 AM
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] C:\Simba\Includes\P07Include.Simba(67:62): Invalid number of parameters at line 66
Compiling failed.

This is what I get when I try to run a script, it's got to to with the include I believe but can't figure out how to fix it :( I'm trying haha :)

rj
02-26-2013, 04:12 AM
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] C:\Simba\Includes\P07Include.Simba(67:62): Invalid number of parameters at line 66
Compiling failed.

This is what I get when I try to run a script, it's got to to with the include I believe but can't figure out how to fix it :( I'm trying haha :)

You don't run the script..

SlaveCooking
02-26-2013, 06:06 AM
Error: Exception: Font [P07UpChars] not found. at line 226

I keep getting the dame font errors and I have tried restarting....

DannyRS
02-26-2013, 06:24 AM
Error: Exception: Font [P07UpChars] not found. at line 226

I keep getting the dame font errors and I have tried restarting....

Read the instructions in my first post, it tells you what to do with the files



[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] C:\Simba\Includes\P07Include.Simba(67:62): Invalid number of parameters at line 66
Compiling failed.

This is what I get when I try to run a script, it's got to to with the include I believe but can't figure out how to fix it :( I'm trying haha :)

You are putting the wrong parameter's into something in your script, or you didn't put all files in their correct places

Justin
02-26-2013, 08:13 AM
DannyRS


function P07_DidClick(Red: Boolean; Time: integer): boolean;
var
TimeOut, x, y, w, h, R, G: integer;
B: TBox;
begin
GetMousePos(x, y);
GetClientDimensions(w, h);
B := IntToBox(x - 15, y - 15, x + 15, y + 15);
if B.x1 < 0 then B.x1 := 0;
if B.y1 < 0 then B.y1 := 0;
if B.x2 > w then B.x2 := w;
if B.y2 > h then B.y2 := h;
TimeOut := GetSystemTime + Time;
while (GetSystemTime < TimeOut) do
begin
R := CountColorTolerance(255, B.x1, B.y1, B.x2, B.y2, 15);
G := CountColorTolerance(65535, B.x1, B.y1, B.x2, B.y2, 15);
if Red then
begin
if (G > 8) then
Exit;
Result := (R > 20);
end else
begin
if (R > 5) then
Exit;
Result := (G > 35);
end;
if Result then
Exit;
end;
end;

function P07_DidRedClick: Boolean;
begin
Result := P07_DidClick(true, 1000);
end;

function P07_DidYellowClick: Boolean;
begin
Result := P07_DidClick(false, 1000);
end;


Might come in handy

DannyRS
02-26-2013, 08:27 AM
DannyRS

Might come in handy

What exactly does didclick do? Reading red and yellow for something and checking if the mouse is on screen?

I think something like this is what I need to stop people telling me the camera functions don't work, but Could you explain more what the getcolors are for? Or what this function is normally used for?

Does it just check if you clicked near something of that color? Or am I being stupid?

Justin
02-26-2013, 08:41 AM
What exactly does didclick do? Reading red and yellow for something and checking if the mouse is on screen?

I think something like this is what I need to stop people telling me the camera functions don't work, but Could you explain more what the getcolors are for? Or what this function is normally used for?

Does it just check if you clicked near something of that color? Or am I being stupid?

DidRedClick - When you click on a object on the MainScreen, When you are doing an action, Eg: Take Big Bones, when you click on the bones the Red 'X' shows.
DidYellClick - Same a DidRedClick but for yellow.

See images:

DidRedClick = True = http://puu.sh/28BPL
DidYellowClick = True = http://puu.sh/28BQ0

Sjoe
02-26-2013, 08:52 AM
DidRedClick - When you click on a object on the MainScreen, When you are doing an action, Eg: Take Big Bones, when you click on the bones the Red 'X' shows.
DidYellClick - Same a DidRedClick but for yellow.

See images:

DidRedClick = True = http://puu.sh/28BPL
DidYellowClick = True = http://puu.sh/28BQ0

I think he meant the DidClick part, but that just turns false. nvm

edit: I thought u would know this Danny lol

DannyRS
02-26-2013, 08:56 AM
DidRedClick - When you click on a object on the MainScreen, When you are doing an action, Eg: Take Big Bones, when you click on the bones the Red 'X' shows.
DidYellClick - Same a DidRedClick but for yellow.

See images:

DidRedClick = True = http://puu.sh/28BPL
DidYellowClick = True = http://puu.sh/28BQ0

Oh right I get it now, I'll add it, but you always know what type of click you did right? And you control when you click,

So what's the practical use? Could you give me an example of when that's going to be useful to use?



I think he meant the DidClick part, but that just turns false. nvm

I was confused by the names of the procedures because I thought didclick was just going to check if you had clicked the client or not

Sjoe
02-26-2013, 09:00 AM
Oh right I get it now, I'll add it, but you always know what type of click you did right? And you control when you click,

So what's the practical use? Could you give me an example of when that's going to be useful to use?




I was confused by the names of the procedures because I thought didclick was just going to check if you had clicked the client or not

Many practical uses danny! every object on MS that has an action will redclick.
So u know u clicked it correctly.


Ashaman uses it in his ape atoll, if it didn't redclick the obstacle, it clicks back on MSC as a failsafe.

DannyRS
02-26-2013, 09:06 AM
Many practical uses danny! every object on MS that has an action will redclick.
So u know u clicked it correctly.


Ashaman uses it in his ape atoll, if it didn't redclick the obstacle, it clicks back on MSC as a failsafe.

Ah I suppose that is kinda useful, for agility when clicking fast is key, I've never ran into a problem with just uptext as of yet :p

klonaro
02-26-2013, 09:50 AM
I get this error Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Simba\Scripts\Miner3.00.simba'

xtrapsp
02-26-2013, 10:08 AM
I get this error Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Simba\Scripts\Miner3.00.simba'

You're calling the new RS SRL.simba...

The Claw
02-26-2013, 10:15 AM
Is uptext working for you guys? It's not for me, RS07FindObject doesn't work

The Claw
02-26-2013, 11:42 AM
Found this thread: http://villavu.com/forum/showthread.php?t=97002
An 07 version of ClickToContinue and ChooseOption would be great.

NKN
02-26-2013, 12:00 PM
Found this thread: http://villavu.com/forum/showthread.php?t=97002
An 07 version of ClickToContinue and ChooseOption would be great.

AFAIK, ChooseOption works.
I'll make a ClickToContinue when I get home today, so I don't feel useless. :3

keeks
02-26-2013, 01:31 PM
nvm

DannyRS
02-26-2013, 01:44 PM
AFAIK, ChooseOption works.
I'll make a ClickToContinue when I get home today, so I don't feel useless. :3

That would require the NPC chat Font right? Or something messy like a DTM :/



Is uptext working for you guys? It's not for me, RS07FindObject doesn't work

It works if you use a browser and not smart, and don't call SetupSRL;, AFAIK, i've been using the uptext without problem since release

WT-Fakawi
02-26-2013, 01:55 PM
Breaking into this thread: Did you perform a roll back DannyRS? or did you start with SRL 5 and reverse engineered this?

DannyRS
02-26-2013, 02:00 PM
Breaking into this thread: Did you perform a roll back DannyRS? or did you start with SRL 5 and reverse engineered this?

I just started from scratch (well kind of when I started making an Include for a private server that almost matched 07, link in sig for that), by sort of reading SRL5 and trying to duplicate the process for 07Scape, and simply adding new constant's to the functions that didn't need new color's such as the FindObj,

Only problem I have is it's so large(SRL5), some of the name's don't match, And I was following some kind of "most useful functions first" because atm I don't really have a structure and it's not broken into specific Includes,

The only thing's I really had to mess with myself, and drastically alter were:

UpText-Because I couldn't find the official code for rs_getUpText
ChooseOption - because the options box is completely different in 07
Compass - because The radians in SRL5 worked off the red color's which I originally wrote this for a private server where there was no red arrow, and I think it's too short in 07?

WT-Fakawi
02-26-2013, 02:09 PM
I am asking this because I play rs-007 just for fun and I have observed that you really really need to put FindName back into findrandoms...without this, we all end up dead in Lumbridge. I am pretty sure we can work with a SRL from 2007 and incorporate this into Simba.

sprunt
02-26-2013, 02:10 PM
Trying to write my first ever woodcutting script.
Keeping getting this error when using your include.

[Error] C:\Simba\Includes\P07Include.Simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.

Please help :)

DannyRS
02-26-2013, 02:13 PM
I am asking this because I play rs-007 just for fun and I have observed that you really really need to put FindName back into findrandoms...without this, we all end up dead in Lumbridge. I am pretty sure we can work with a SRL from 2007 and incorporate this into Simba.

That find's your character name mentioned on the Mainscreen right? I think UpChar's is the same font, so it should be possible, only problem is, Simba works single threaded, so how would that work without manually calling it after every procedure, because the message only last's for a second or so on the screen, so how to get around that?


Trying to write my first ever woodcutting script.
Keeping getting this error when using your include.

[Error] C:\Simba\Includes\P07Include.Simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.

Please help :)

You need {$I SRL/SRL.Simba} before you Include my Include ;) it has all the mouse stuff

WT-Fakawi
02-26-2013, 02:17 PM
haha silly newby:) Findname has always been part of (old) SRL. And we used to call FNR at least once every second....or we'd end up dead in lumby :) flagged!

DannyRS
02-26-2013, 02:21 PM
haha silly newby:) Findname has always been part of SRL. And we used to call FNR at least once every second....or we'd end up dead in lumby :) flagged!

I wasn't here before random's had been long gone :p so that's a new challenge to me, so it's up to script writer's to make correct use of Findname? (or FNR)

I assume if the name is found, it then performs a more detailed check for the random's because people could just say your username?

sprunt
02-26-2013, 02:26 PM
You need {$I SRL/SRL.Simba} before you Include my Include ;) it has all the mouse stuff

Thank you for help, simple mistakes ha.

WT-Fakawi
02-26-2013, 02:30 PM
I wasn't here before random's had been long gone :p so that's a new challenge to me, so it's up to script writer's to make correct use of Findname? (or FNR)

I assume if the name is found, it then performs a more detailed check for the random's because people could just say your username?

We performed a rightclick under our name (Middle of yellow text) and read the chooseoption. That way we knew which random was adressing us. But that is all in SRLV4.1

DannyRS
02-26-2013, 02:34 PM
We performed a rightclick under our name (Middle of yellow text) and read the chooseoption. That way we knew which random was adressing us. But that is all in SRLV4.1

Hmm, makes sense, theres no GetText OCR in Simba that returns a position? So that would need to also be created, or did I miss something?

Edit- ClickText and FindTextTPAEx, they would work right?

Guzlord
02-26-2013, 04:06 PM
Hi, i am not sure if this is a anti leech but i can't get past this error:
Error: Exception: Font [P07UpChars] not found. at line 108
The following DTMs were not freed: [0, 1]
The following bitmaps were not freed: [0, 1]

I know that the DTMs, and bitmaps are warnings but i think P07Upchars is a error.
I already added the P07UpChars in my fonts folder.

DannyRS
02-26-2013, 05:40 PM
Version 1.6 should now work in S.M.A.R.T !

But, Only if you know how to get smart to load OldRS

Must be called in this order:


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

SetupSRL;
P07_DeclarePlayer;
SetupP07Include;

bovman11
02-26-2013, 05:52 PM
[Error] I:\Simba\Includes\P07Include.simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.


how to fix?

DannyRS
02-26-2013, 05:54 PM
[Error] I:\Simba\Includes\P07Include.simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.


how to fix?

You don't Compile or Run this

gboisen
02-26-2013, 06:59 PM
Keeps telling me I don't have 1.6 downloaded even though I do. I've tried restarting and re-downloading it, but I can't seem to get it to work.

DannyRS
02-26-2013, 07:09 PM
Keeps telling me I don't have 1.6 downloaded even though I do. I've tried restarting and re-downloading it, but I can't seem to get it to work.

You must have another P07Include.Simba saved in simba folder somewhere ?

Edit - tested updater

Compiled successfully in 468 ms.
Checking P07Include VersionNumber
Local : 1.5 / Latest : 1.6
New P07Include Version Available! Updating...
New P07Include Version Downloaded Please Restart Your Script!
Successfully executed.
Compiled successfully in 468 ms.
Checking P07Include VersionNumber
Local : 1.6 / Latest : 1.6
You Have The Latest Version of P07Include
Successfully executed.

gboisen
02-26-2013, 07:17 PM
You must have another P07Include.Simba saved in simba folder somewhere ?


Thanks! Deleted other version and its working fine.

tounsi
02-26-2013, 07:42 PM
Thanks for your work on this Danny!

I'm having a problem, the code in the script is correct, and after I run a script, the mouse would hover over what it has to click, but it doesn't click it
You think its a problem with the script or the setup of my runescape is wrong?

Thanks!

DannyRS
02-26-2013, 07:47 PM
Thanks for your work on this Danny!

I'm having a problem, the code in the script is correct, and after I run a script, the mouse would hover over what it has to click, but it doesn't click it
You think its a problem with the script or the setup of my runescape is wrong?

Thanks!

pm me the script plz

Gebapt
02-26-2013, 07:58 PM
Love to see SMART added, I Will try to script the next weeks aswell :)

MrFarbodD
02-26-2013, 08:10 PM
I get this:


[Hint] C:\Users\Farbod\Desktop\[07] Draynor Willow Banker [1.3].simba(130:10): Variable 'Result' never used at line 129
Compiled successfully in 359 ms.
Checking P07Include VersionNumber
Local : 1.6 / Latest : 1.6
You Have The Latest Version of P07Include
546 chopwaitt
546 chopwaitt
3588 chopwaitt
3588 chopwaitt
Successfully executed.

I've never used Simba before so do I now just run Runescape on my browser (Chrome) and let the bot do the work?

EDIT: Sorry posted in the wrong thread :(

tounsi
02-26-2013, 08:12 PM
pm me the script plz

Ok, I msged you, thanks in advance

Ryan [RuneCrafter]
02-27-2013, 12:08 AM
looking nice danny! good work man

DannyRS
02-27-2013, 01:05 AM
;1178686']looking nice danny! good work man

Thanks ;)

Added a whole load of useful stuff to V1.7 :


Procedure P07_ClickToContinue;
Function P07_CastSpell(SpellNumber: Integer): Boolean;
Procedure P07_AutoRetaliate(ToggleTo: Boolean);
Procedure P07_CombatStance(ToggleToNum: Integer);
Function P07_WearingItem(I: Integer): Boolean;
Function P07_GetMiniMapDots(WhatDotCol: String): TPointArray;
Function P07_CountMiniMapDots(WhatDotCol: String): Integer;
Function P07_DidClick(Red: Boolean; Time: Integer): boolean; //Creds to Justin

rj
02-27-2013, 01:16 AM
Function P07_DidClick(Red: Boolean; Time: Integer): boolean; //Creds to Justin OFMFMFMFFFOFOFMG

Procedure P07_ClickToContinue; ofmfmfmfmfmfmfmg

DannyRS
02-27-2013, 01:22 AM
Function P07_DidClick(Red: Boolean; Time: Integer): boolean; //Creds to Justin OFMFMFMFFFOFOFMG

Procedure P07_ClickToContinue; ofmfmfmfmfmfmfmg

Would of been nice to have the other font for ClickToContinue, but ah well to late for me to add another one now, DTM will have to do lol,

all the new functions have undergone only minor testing, so let me know of any error's

rj
02-27-2013, 01:25 AM
Will do, currently working on a muilti-fletcher, will release with no anti leech simply because it won't "ruin" legit trainers (does not take up rocks,trees etc etc)

Ian
02-27-2013, 02:26 AM
Would of been nice to have the other font for ClickToContinue, but ah well to late for me to add another one now, DTM will have to do lol,

all the new functions have undergone only minor testing, so let me know of any error's

P07_ChooseOptionMulti

gives this runtime error:
Error: Exception: You passed a wrong xe to a finder function: 1439. The client has a width of 764, thus the xe is out of bounds. at line 529

and highlights this line:
FindColors(OptionBoxTPA1, 4674653, P07_MSX1, P07_MSY1, P07_ClientWidth-1, P07_ClientHeight-1);

DannyRS
02-27-2013, 02:28 AM
P07_ChooseOptionMulti

gives this runtime error:

and highlights this line:
FindColors(OptionBoxTPA1, 4674653, P07_MSX1, P07_MSY1, P07_ClientWidth-1, P07_ClientHeight-1);

What the hell? Where's the 1439 coming from?

Did you Call SetupP07Include; and drag green target onto game client?

Sokil59
02-27-2013, 02:36 AM
AM I doing this correctly?

P07_Deposit( 1, DepositAll);

I want to deposit my entire inventory I gave the slot for the item and how many of them it should deposit. Btw I'm Using Sps for a walking method atm what should I use instead of this for rs 07 or is what I am doing ok? Here's a sample of the code for wlaking:
ToBank := [ Point(442, 144), Point(431, 186), Point(403, 218), Point(410, 261) ];
SPS_Setup(RUNESCAPE_SURFACE, ['5_8']);
SPS_WalkPath(ToBank); ( I used a rs 2013 map as I don't know how to use a rs 07 map as I am new to programming for simba).

Ian
02-27-2013, 02:36 AM
What the hell? Where's the 1439 coming from?

Did you Call SetupP07Include; and drag green target onto game client?

Yeah, I called it. I was using SMART not the client though.

Justin
02-27-2013, 02:37 AM
Function P07_DidClick(Red: Boolean; Time: Integer): boolean; //Creds to Justin OFMFMFMFFFOFOFMG

Procedure P07_ClickToContinue; ofmfmfmfmfmfmfmg

Not sure if serious or trolling....

DannyRS
02-27-2013, 02:38 AM
Yeah, I called it. I was using SMART not the client though.

I was just using it in smart fine, why does simba think your smart is that width?

Did you call it after SetupSRL and have smart enabled?

Justin
02-27-2013, 02:40 AM
DannyRS - What are the other main functions that need to be converted to work onto 07?

DannyRS
02-27-2013, 02:43 AM
DannyRS - What are the other main functions that need to be converted to work onto 07?

I have no idea, I was just looking through SRL5 and trying to find useful thing's to add, now it's time for bed :p you should take a look too, see if you can find anything that you think we would need ;)

rj
02-27-2013, 02:44 AM
Not sure if serious or trolling....
Being serious I needed the didredclick badly

Justin
02-27-2013, 03:14 AM
I have no idea, I was just looking through SRL5 and trying to find useful thing's to add, now it's time for bed :p you should take a look too, see if you can find anything that you think we would need ;)

Will be doing so when i finish work :)