Thanks! Added to OP.
Printable View
Hey, was reading your script to learn from it. Saw the part where you change the camera. I've made a script that turns the camera to an angle, without the possibility of turning to the current position. Just for the practice. Thought I share, you can use/modify it if needed.
Simba Code:procedure lookRandomDirection();
var
oldDirection, newDirection: integer;
begin
oldDirection := Round(minimap.getAngleDegrees());
case Random(2) of
0: newDirection := oldDirection - RandomRange(50, 200);
1: newDirection := oldDirection + RandomRange(50, 200);
end;
if (newDirection >= 360) then
newDirection := newDirection - 360;
if (newDirection <= -1) then
newDirection := newDirection + 360;
minimap.setAngle(newDirection, true);
end;
Thanks for the contribution!
I wrote this recently, I'm not sure if the functions do the same thing (too tired to think straight) but share & share alike!
Simba Code:function TRSMinimap.isAngle(deg:extended; turnTo:boolean = false):boolean; //Returns true if the current compass angle is within a few degrees of "deg"
var //Will also turn to "deg" if turnTo is true.
a:extended;
begin
a := self.getAngleDegrees();
result := inRange(round(a), (deg - 5), (deg + 5));
writeDebug('isAngle(): angle is currently ' + toStr(a) + ', threshold was ' + toStr(deg) + ', returning ' + lowercase(toStr(result)) + '');
if (not (result)) then
if (turnTo) then
begin
writeDebug('isAngle(): altering angle to ' + toStr(deg));
self.setAngle(deg);
end;
end;
E:
http://i.imgur.com/NHcjhW2.png
Ah well, remind me about it later :p
Hello
I have a problem with the iOak script. It logs in, everything is fine but then this happens:
[DEBUG] : Our location is currently: bank, took 656 ms.
[DEBUG] : Our location is currently: bank, took 640 ms.
[DEBUG] : Going to walk to: trees
[DEBUG] : Detecting trees
[DEBUG] : Preliminary ATPA length: 0
[ERROR] : *** FATAL ERROR: No trees found!
[WARNING] : *** Terminating script ***
Any idea what i'm doing wrong?
Thanks anyways!
https://villavu.com/forum/showthread.php?t=47714
Have you followed all instructions listed there? Post a screenshot of your SMART window (logged in)
Nevermind, everything is fixed, than you! I missed some of the set up guides.
@KeepBottingCode:[DEBUG] : Freeing BMPs
[DEBUG] : Freeing DTMs
Error: The given DTM Index[0] doesn't exist at line 329
Execution failed.
The following bitmaps were not freed: [SMART Debug Image]
File[D:\Simba\Includes\SRL-6/logs/SRL log (12-03-15 at 03.22.16 PM).txt] has not been freed in the script, freeing it now.
I get this error every time that I try to load the script... Am I doing something wrong?
@KeepBotting
Copied the whole code. I have no clue what I'm looking at...
Code:Loading extension D:\Simba\Extensions\associate.sex
Extension Disabled - Did not compile
[Error] (14:3): Duplicate identifier 'TCharArray' at line 14
Loading extension D:\Simba\Extensions\extension.sex
Extension Enabled
Extensions Updater Enabled!
Loading extension D:\Simba\Extensions\formatter.sex
Extension Enabled
Loading extension D:\Simba\Extensions\security.sex
Extension Disabled - Did not compile
Loading extension D:\Simba\Extensions\srl.sex
Extension Enabled
SRL Updater Enabled!
SPS Updater Enabled!
Plugins Updater Enabled!
Loaded Font BigChars
Loaded Font CharsNPC
Loaded Font CharsNPC07
Simba news:
Simba "Zealous Bugger" 1.1.0 has been released!
You can read all about it here[1], or head over to
the Github release page[2]
SRL-6 will remain backwards compatible with Simba 1.0 for some time, but we
encourage everyone to upgrade to the latest and greatest!
In a few days Simba 1.1.0 (version 1100) will also appear in the auto
updater.
If there are bugs, please - as always - let us know. We'll do our best to
fix them for you!
As always, see you on our homepage; https://villavu.com
Hakuna Matata!
[1] https://villavu.com/forum/showthread.php?t=110430
[2] https://github.com/MerlijnWajer/Simba/releases/tag/simba-1.1.0
Loaded Font CharsTrade
Loaded Font CharsTrade07
Loaded Font FriendChars
Loaded Font LoginChars
Loaded Font MouseoverChars
Loaded Font SmallChars
Loaded Font SmallChars07
Loaded Font SmallCharsNS
Loaded Font StatChars
Loaded Font StatChars07
Loaded Font UpChars
Loaded Font UpChars07
Loaded Font UpChars07_s
Loaded Font UpCharsEx
Loaded Font XPChars
Loaded Font UpChars_s
Compiled successfully in 1844 ms.
[DEBUG] : Directories exist, or have been created.
[DEBUG] : Files exist, or have been downloaded.
[DEBUG] : Spawning SMART client...
SRL: Logfile = D:\Simba\Includes\SRL-6/logs/SRL log (12-03-15 at 03.57.50 PM).txt
-- setupSRL()
---- Setting up SRL...
---- attempting to spawn smart, attempt #: 1
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world8.runescape.com/, f5393138164970851044]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 2
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world20.runescape.com/, f41947227212448709]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 3
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world37.runescape.com/, f56011823743556805]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 4
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world38.runescape.com/, f2333828369593862501]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 5
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world40.runescape.com/, f7679602353441892837]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 6
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world41.runescape.com/, f5241847770294961381]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- FATAL ERROR: smartSetupDrawing(): Unable to setup SMART drawing
[WARNING] : *** Terminating script ***
[DEBUG] : Freeing BMPs
[DEBUG] : Freeing DTMs
Error: The given DTM Index[0] doesn't exist at line 329
Execution failed.
The following bitmaps were not freed: [SMART Debug Image]
File[D:\Simba\Includes\SRL-6/logs/SRL log (12-03-15 at 03.57.50 PM).txt] has not been freed in the script, freeing it now.
@KeepBotting
Posted the whole thing because I don't know what I'm looking at...
Code:Loading extension D:\Simba\Extensions\associate.sex
Extension Disabled - Did not compile
[Error] (14:3): Duplicate identifier 'TCharArray' at line 14
Loading extension D:\Simba\Extensions\extension.sex
Extension Enabled
Extensions Updater Enabled!
Loading extension D:\Simba\Extensions\formatter.sex
Extension Enabled
Loading extension D:\Simba\Extensions\security.sex
Extension Disabled - Did not compile
Loading extension D:\Simba\Extensions\srl.sex
Extension Enabled
SRL Updater Enabled!
SPS Updater Enabled!
Plugins Updater Enabled!
Loaded Font BigChars
Loaded Font CharsNPC
Loaded Font CharsNPC07
Simba news:
Simba "Zealous Bugger" 1.1.0 has been released!
You can read all about it here[1], or head over to
the Github release page[2]
SRL-6 will remain backwards compatible with Simba 1.0 for some time, but we
encourage everyone to upgrade to the latest and greatest!
In a few days Simba 1.1.0 (version 1100) will also appear in the auto
updater.
If there are bugs, please - as always - let us know. We'll do our best to
fix them for you!
As always, see you on our homepage; https://villavu.com
Hakuna Matata!
[1] https://villavu.com/forum/showthread.php?t=110430
[2] https://github.com/MerlijnWajer/Simba/releases/tag/simba-1.1.0
Loaded Font CharsTrade
Loaded Font CharsTrade07
Loaded Font FriendChars
Loaded Font LoginChars
Loaded Font MouseoverChars
Loaded Font SmallChars
Loaded Font SmallChars07
Loaded Font SmallCharsNS
Loaded Font StatChars
Loaded Font StatChars07
Loaded Font UpChars
Loaded Font UpChars07
Loaded Font UpChars07_s
Loaded Font UpCharsEx
Loaded Font XPChars
Loaded Font UpChars_s
Compiled successfully in 1844 ms.
[DEBUG] : Directories exist, or have been created.
[DEBUG] : Files exist, or have been downloaded.
[DEBUG] : Spawning SMART client...
SRL: Logfile = D:\Simba\Includes\SRL-6/logs/SRL log (12-03-15 at 03.57.50 PM).txt
-- setupSRL()
---- Setting up SRL...
---- attempting to spawn smart, attempt #: 1
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world8.runescape.com/, f5393138164970851044]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 2
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world20.runescape.com/, f41947227212448709]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 3
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world37.runescape.com/, f56011823743556805]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 4
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world38.runescape.com/, f2333828369593862501]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 5
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world40.runescape.com/, f7679602353441892837]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 6
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world41.runescape.com/, f5241847770294961381]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- FATAL ERROR: smartSetupDrawing(): Unable to setup SMART drawing
[WARNING] : *** Terminating script ***
[DEBUG] : Freeing BMPs
[DEBUG] : Freeing DTMs
Error: The given DTM Index[0] doesn't exist at line 329
Execution failed.
The following bitmaps were not freed: [SMART Debug Image]
File[D:\Simba\Includes\SRL-6/logs/SRL log (12-03-15 at 03.57.50 PM).txt] has not been freed in the script, freeing it now.
Heres some of it.Code:---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world41.runescape.com/, f7087458365267445445]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- attempting to spawn smart, attempt #: 6
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- ERROR: Failed To Find Path: D:\Program Files (x86)\Java\
---------- WARNING: Failed to find your Java path
---------- HINT: If RS is failing to switch to OpenGL mode, add JRE to your systems path before JDK (if you have JDK)
-------- getJavaPath()
-------- Using parameters [http://world43.runescape.com/, f749839118128353988]
-------- Using plugins "opengl32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- FATAL ERROR: smartSetupDrawing(): Unable to setup SMART drawing
@KeepBotting
Here is the problem
Code:[DEBUG] : Directories exist, or have been created.
[DEBUG] : Files exist, or have been downloaded.
[DEBUG] : Spawning SMART client...
SRL: Logfile = D:\Simba\Includes\SRL-6/logs/SRL log (12-03-15 at 05.27.18 PM).txt
-- setupSRL()
---- Setting up SRL...
---- attempting to spawn smart, attempt #: 1
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found 1 free client(s), attempting to pair to one...
---------- smartSetAsTarget(): Succesfully set SMART[1364] as Simba's target
-------- Succesfully paired to a existing client, SMART[1364]
------ smartPairToExistingClient(): result = true
------ Succesfully initialized via pairing to a previously spawned client
---- initSmart()
------ smartSetupDrawing(): Succesfully setup SMART drawing
---- Waiting up to 5 minutes for RS to load...
---- Client is ready.
---- Setup SRL in 0 Seconds
-- setupSRL(): True
---- FATAL ERROR: TPlayerArray.setup(): Failure
Check out this post: https://villavu.com/forum/showthread...58#post1321658
I am having the same problem when trying to run the script.
Code:---- Waiting up to 5 minutes for RS to load...
------ __setInputBoxes(): Set username and password boxes
---- Client is ready.
---- Setup SRL in 34 Seconds
-- setupSRL(): True
---- FATAL ERROR: TPlayerArray.setup(): Failure
[WARNING] : *** Terminating script ***
[DEBUG] : Freeing BMPs
[DEBUG] : Freeing DTMs
Error: The given DTM Index[0] doesn't exist at line 329
Execution failed.
The following bitmaps were not freed: [SMART Debug Image]
File[C:\Simba\Includes\SRL-6/logs/SRL log (24-03-15 at 05.48.05 PM).txt] has not been freed in the script, freeing it now.
FIXED: To anyone having this problem: make sure your character is added to your SLR Player Manager (Player List).
The script now runs fine up until it has to bank.
It gets to the bank, selects the booth, but then doesn't know how to deposit the 28 oak logs.
It proceeds to bank 1 or 2 logs, then runs back to the trees and fills the inventory again, before returning to the bank and repeating the process.
Any suggestions?
Error: Duplicate declaration "copy" at line 296
Compiling failed.
not working for me turn it on and it justs logs me out to lobby and turns off wont download files properly i believe is issue
ok hold on np
[DEBUG] : Logging in...
[DEBUG] : Just logged in, waiting a bit...
[DEBUG] : Setup complete - player is logged in.
[DEBUG] : Setting camera.
[DEBUG] : Setting run.
[DEBUG] : Setting gametab.
[DEBUG] : Colors have been initalized.
[DEBUG] : DTMs have been initalized.
---- FATAL ERROR: map.setup(): Unable to load map or bitmap to map failed
[WARNING] : *** Terminating script ***
[DEBUG] : Logging out
[DEBUG] : F[DEBUG] : Freeing DTMs
[WARNING] : *** Terminated script ***
Successfully executed.
The following DTMs were not freed: [1]
The following bitmaps were not freed: [16] error client just logs out not much to screenshot
Okay, thanks. The remote files for the SPS map and progress report image are fine (http://puu.sh/dxMaI.png, http://puu.sh/dxLL1.png)
Go to C:/Simba/Scripts/iOak/ and ensure that the progress report (iOak_proggy.png) is there.
Then go to C:/Simba/Includes/SPS/img/ and ensure that the SPS map (varrock.png) is there.
If they are, delete them and let the script redownload.
ok ya i tried that already only got the proggy and was 0 kbs in file size but the other file didnt exist there
nvm didnt refresh page
there we go dled will let uk if works now ty
now spamm clicked from varrock bank to edgeville wilderness wall
Please don't double-post. Edit your original post and get my attention by mentioning me like: @KeepBotting;
Post a screenshot of your SMART window (in-game).
WAT DO U MEAN like it clicking? @KeepBotting
oh ok graphics page up or just plain
Thanks for the script KeepBotting! it works great, ill post proggies when i get some good ones