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 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.
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.
Last edited by J J; 02-25-2013 at 08:35 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.
Last edited by Fishh; 02-25-2013 at 09:20 PM.
Hello, I managed to make a script using Simba. How do I add SMART to it?
Thank you for this, Danny. Going to use this on the scripts I make for 07scape![]()
Last edited by DannyRS; 02-25-2013 at 11:51 PM.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
Simba/Smart is quite easy to figure out, Danny would be nice if you could help us out with an improved SPS![]()
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
Nice job so far Danny![]()
Creds to DannyRS for this wonderful sig!
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.
[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 itI'm trying haha
![]()
Error: Exception: Font [P07UpChars] not found. at line 226
I keep getting the dame font errors and I have tried restarting....
Last edited by DannyRS; 02-26-2013 at 06:26 AM.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

@DannyRS
Simba Code: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
There are currently 1 users browsing this thread. (0 members and 1 guests)