GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
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:
Ah well, remind me about it later![]()
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
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)
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
Nevermind, everything is fixed, than you! I missed some of the set up guides.
Last edited by Saminator; 03-12-2015 at 09:40 PM.
@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?
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
@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
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
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).
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
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?
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
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
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
There are currently 1 users browsing this thread. (0 members and 1 guests)