PDA

View Full Version : [Announcement] SRL-5 Release!



Narcle
01-05-2012, 12:00 AM
SRL-5 Release!

How do you know you have SRL5?
The auto updater in Simba should say 1000+ for SRL5.
OR retrieve it straight from the source: SRL-5 on github (https://github.com/SRL/SRL-5)

Changes to YOUR scripts:
All .scar files are changed to .simba.
Changed stats.simba globalstats.simba and moved to srl/core/. You know longer have to include it in your script, it's included with SRL.
SetAngle and ClickNorth now take integer parameters to avoid waiting 2-4 seconds no matter what.

SRL_ANGLE_NONE
SRL_ANGLE_LOW
SRL_ANGLE_HIGH

Mouse functions now take a variant and SRL functions use Simba's mouse_left, mouse_right, etc. Scripters should switch as future versions of SRL will only take integers.

mouse_Left
mouse_Right
mouse_Middle
mouse_move



Function additions/changes:
LevelUpEx(ClickCont, ClickSkill: boolean): boolean; (http://villavu.com/forum/showthread.php?p=858719#post858719) added to antiban.simba. Credit to Flight.
function SetScreenMouse(Direction, CameraAngle: Variant): Boolean; (http://villavu.com/forum/showthread.php?t=67338) added to antiban.simba. Credit to Home and euphemism.
SetFightModeByLevel(TrainLowestSkill: boolean): boolean; (http://villavu.com/forum/showthread.php?t=62546) added to fighting.simba. Credit to Rich.
function IsMoneyPouchOpen: Boolean; (http://villavu.com/forum/showthread.php?t=69187) added to gametab.simba. Credit to Home.
function ToggleMoneyPouch(Open: Boolean): Boolean; (http://villavu.com/forum/showthread.php?t=69187)added to gametab.simba. Credit to Home.
function GetMoneyPouchAmount: LongInt; (http://villavu.com/forum/showthread.php?t=69187)added to gametab.simba. Credit to Home.
function DepositToPouch :Boolean; (http://villavu.com/forum/showthread.php?t=69187)added to gametab.simba. Credit to Home.
function WithdrawFromPouch(Amount :Integer) :Boolean; (http://villavu.com/forum/showthread.php?t=69187)added to gametab.simba. Credit to Home.
procedure MissMouse(eX, eY: Integer); (http://villavu.com/forum/showthread.php?t=68616) added to antiban.simba for those who wish to use a more random mouse movement method.
Several Belt gametab functions added, thanks to Kyle Undefined. Thread here (http://villavu.com/forum/showthread.php?t=70214).
Added some bank amount functions, credit to Daniel. Thread here (http://villavu.com/forum/showthread.php?t=69883).


Bug fixes/improvements:
CloseWindow() should be fixed/improved, and now returns true if it closed the bank.
Fixed an autocast issue with combat spells, thread here (http://villavu.com/forum/showthread.php?t=69148).
Cast() now returns true if spell is already set to autocast, thread here (http://villavu.com/forum/showthread.php?t=69006).
OpenBankNPC works 100% better, credit to Home. Thread here (http://villavu.com/forum/showthread.php?t=69117).
Fixed GetCurrentTab and TabExists for TAB_LOGOUT.
Logout() will now call CloseWindow if TAB_LOGOUT doesn't exist, report here (http://villavu.com/forum/showthread.php?t=67679).
Update to new summoning store icon in symbols.simba.
Added summoning obelisk icon in symbols.simba.
Fixed AutoCast combat spells returning wrong bool.
Added WindRush to auto-castable list.
Fixed GetCurrentTab and TabExists for TAB_LOGOUT.
Logout() will now call CloseWindow if TAB_LOGOUT doesn't exist.
Removed unnecessary exit causing issues in Cast().
Corrected summoning store and added summoning obelisk to symbols.simba.
Corrected documentation for gametab.simba.
FindBirdsNest fixed, thread here (http://villavu.com/forum/showthread.php?t=67883).
Fixed Deposit for single items when vType <> integer.
Fixed PS bug in WindMouse.
Players[].Worked now works after the player has taken breaks (shouldn't be ANY issues with it anymore)
OrderWorlds fixed by RISK, thread here (http://villavu.com/forum/showthread.php?t=69263).
ChooseOptionMultiEx won't choose "Cancel" if action is set to Nothing.
WithdrawEx will not choose "Withdraw All-but-one" option if Amount is set to -1, credit to Shuttleu.
DepositAll (fixed on 1-4-2011)


Features:
Gaussian mouse implementation. Credit to Nava2.
Grand Exchange price grabbing functions in SRL/misc/online.simba. Credit to Nava2.

Use with MSI:
Find this line and remove the // in front of it. (in RunMe.simba)
//{$DEFINE SRL5} // Uncomment if you're testing SRL5
Documentation:
SRL-5 Documentation (docs.villavu.com/srl-5)

Original post from Coh3n.
Not all fixes/additions have been mentioned. Will add on to later.

Dynamite
01-05-2012, 12:16 AM
Guess I have to edit my scripts tomorrow then :sigh:

loli I joke. Thanks guys, can't wait till SRL 6! <3

Great work to everyone who has contributed!

-Boom

PatDuffy
01-05-2012, 12:18 AM
Love <3

Great job to all those who contributed.

Home
01-05-2012, 12:18 AM
Good work guys!


~Home

Mark
01-05-2012, 12:20 AM
Yeah Great work

DeSnob
01-05-2012, 12:22 AM
Nice! Now time to adapt..

begginer
01-05-2012, 12:30 AM
Nice feature. Awesome update too.

nobody u kno
01-05-2012, 12:43 AM
When i try to update SRL I get this:

No Plugins update available.
No SRL update available.
A new update of Simba is available!
Current version is 980. Latest version is 982

Justin
01-05-2012, 01:28 AM
Awesome, thanks for this

[Nathan]
01-05-2012, 01:52 AM
Nice! Time to update the scripts!

Flight
01-05-2012, 02:22 AM
If I might add something else in there, I believe all mouse values will have to be changed in scripts as well. For example:

Mouse(MMCX, MMCY, 5, 5, 1);

To:

Mouse(MMCX, MMCY, 5, 5, mouse_left);


Using 1/2/3 will result in an error, I believe somewhere in the smart.simba file.

Narcle
01-05-2012, 02:23 AM
If I might add something else in there, I believe all mouse values will have to be changed in scripts as well. For example:

Mouse(MMCX, MMCY, 5, 5, 1);

To:

Mouse(MMCX, MMCY, 5, 5, mouse_left);


Using 1/2/3 will result in an error, I believe somewhere in the smart.simba file.

Should of been fixed?

Kyle Undefined
01-05-2012, 02:29 AM
Woo! Awesome! :D

[Nathan]
01-05-2012, 02:32 AM
Should of been fixed?
I used just a 1 on MouseItem and it works fine, not sure if Mouse and MouseItem are coded differently...

Claymore
01-05-2012, 05:45 AM
Finally finished making my script compatible to SRL 5. I think, gotta run it first to make sure it doesnt do anything funny.

EDIT:

Dammit, this mouse change is tedious >,> i dont get the point.

Swatarianess
01-05-2012, 06:04 AM
GE functions <3 Looks awesome gonna update ASAP ^^

Flight
01-05-2012, 06:31 AM
Should of been fixed?

Maybe just recently. I had errors just a couple days ago relating to that, so unless it's been dealt with since then, the error still occurs.

Coh3n
01-05-2012, 06:35 AM
Maybe just recently. I had errors just a couple days ago relating to that, so unless it's been dealt with since then, the error still occurs.It was withing the last day I think.

Wizzup?
01-05-2012, 11:41 AM
Finally finished making my script compatible to SRL 5. I think, gotta run it first to make sure it doesnt do anything funny.

EDIT:

Dammit, this mouse change is tedious >,> i dont get the point.

What's wrong?

MaxPayne619
01-05-2012, 02:43 PM
Woha, Good Job SRL team :) <3 u all :)

nobody u kno
01-05-2012, 10:29 PM
How do I know Im at SRL5? I updated once and now it says theres no new update to srl. But when I run a script it still tries to deposit the money pouch instead of depositing the item bag.

Also says my simba is at 980 and there is a version 982 available. Do i need that?

Thanks

Nava2
01-05-2012, 10:33 PM
The mouse change should still allow for boolean values.. unless you are using the other values (middle and move) you do not need to worry about changing the true/false. I DO suggest getting used to scripting using them, though.

E: Yup, I was correct. I knew I wasn't silly enough to leave that.

https://github.com/SRL/SRL-5/blob/master/srl/core/mouse.simba#L245

The documetation has the wrong parameter, which IS my fault. If someone could fix that, I'd be grateful.

Flight
01-06-2012, 01:55 AM
The mouse change should still allow for boolean values.. unless you are using the other values (middle and move) you do not need to worry about changing the true/false. I DO suggest getting used to scripting using them, though.

I'll do just that! :)

DeiJaiVui
01-06-2012, 02:02 AM
Yay finally, been waiting for this. It was sad how we had to remove the define SRL 5 thing lol.

nobody u kno
01-06-2012, 05:04 AM
So if im running Narcles smelter and it still doesnt deposit all does that mean i do not have srl 5? If someone could answer would be nice

Flight
01-06-2012, 05:07 AM
So if im running Narcles smelter and it still doesnt deposit all does that mean i do not have srl 5? If someone could answer would be nice

I've heard reports recently of the same problem. Although this wouldn't identify if you have SRL 4 or 5, because there was a recent update that changed the coordinates of the quick-deposit button in the bankscreen. I dunno for sure if it's been taken care of yet in either SRL version.

Kyle Undefined
01-06-2012, 05:09 AM
SRL 5 takes care of that issue :)

litchfs
01-06-2012, 03:23 PM
Where do I go to download and install Simba 5?

Nava2
01-06-2012, 05:00 PM
Where do I go to download and install Simba 5?

Simba has not changed, it is SRL.

The Auto-updater will do it for you.

NEWTOSIMBA
01-07-2012, 03:38 AM
Fantasic work everyone. I'm new to scripting and reading this has
Helped me tremendously. I can fix the scrip I am working on woot woot.

Aztekd
01-09-2012, 01:19 AM
When i try to update SRL I get this:

No Plugins update available.
No SRL update available.
A new update of Simba is available!
Current version is 980. Latest version is 982

i get this same problem..

Coh3n
01-09-2012, 02:03 AM
Everyone has SRL5 by now, there's no need to manually update. If you have SRL, you have SRL5.

Elitezer0
01-09-2012, 08:10 AM
Changed them but still getting this

Exception in Script: Unable to find file 'srl/srl/misc/Smart.simba' used from ''

I'll just wait till he updates his script:D
Goodjob on the update tho.

rbloomer
02-17-2012, 02:13 AM
wrong spot