So I will start up a little service where people can post a Function/Procedure that they want to know about and I will tell them about it and how to use it.
:) <3
-Boom
Printable View
So I will start up a little service where people can post a Function/Procedure that they want to know about and I will tell them about it and how to use it.
:) <3
-Boom
Your answers should be compiled and added to the docs for functions that don't have an example with them (90% of them)
One i dont understand are these :/
Simba Code:GetTextat()
GetTextatEx()
GetTextatExWrap()
GetTextATPA()
No idea of any of these 0.0 i saw how they were used for;
Simba Code:GetBlackChatMessage();
Confuses my brain so can you like explain it so i can get text from Screen :/
Simba Code:GetTextAt(const atX, atY, minvspacing, maxvspacing, hspacing,color, tol, len: integer;const font: string): string;
Reads text starting from X, Y.. min v spacing is the vertical spacing, hspacing is horizontal spacing. len = length of the text.. font = the font name such as:
'Courier New'..
As for GetTextAtEx.. it does the same thing except it finds text in a given box from X1, Y1, X2, Y2.. that way you don't need to specify the length of the text.. rest of parameters are the same as the above..
Now for GetTextWrapper.. don't use it.. just ignore it.. its a wrapper for the functions above..
GetBlackChatText is the system text that runescape displays in your chatbox.. such as stuff that happens in the game..
Example: 'the box slowly opens...', 'You haven't received any messages to which you can reply.'.. 'your dueling ring has 7 charges left'..
etc..
For GetTextATPA.. same as the above functions except it reads text from a T2DPointArray. That's all of them I think.
See here for other text functions I guess:
http://docs.wizzup.org/simba/scriptref/ocr.html
Ahhhh ok the Spacings are what made me get wierd texts like;
" Bse$2 de$f"s*oe"
instead of;
"Grand Exchange"
Makes sense thanks i'll try it again and see the outcome :). I havent seen many people explain the spacings but i get it its the spacings for the Vert spacings and Horizontal spacings ^^
I am so sorry, I don't even remember posting this thread xD
Thanks ggzz <3
Please, I beg of you, help me. I'm looking for some documentation of an api or something which contains all the functions/procedures which are built into Simba. Some of these functions would be like the bank ones where DepositAll; would do what it suggests. Where could I find functions like these? Thanks
http://i.imgur.com/LCgHK.png
See where the blue circle/oval/whatever is? Click there and start typing the name of a function and it will narrow everything down.. from there you can double click the narrowed down results and it will show you the documentation for the function.. if it doesn't, it's built into the simba.exe itself or a plugin and would require that you go here and look for it:
http://wizzup.org/simbafpcdoc/index-8.html
OR
https://github.com/MerlijnWajer/Simba
Another tip is that if you see someone using a function in a script you like, hold control button on the keyboard and click the function, it'll jump to the include or wherever the function's documentation is..
To add on to ggzz's post, simply try going to: C://Simba/Includes/SRL (As long as defaults are set)
You will find all of the include files in there with the functions and procedures inside them.
That is where you will learn the most.
-Boom
nvm
Hello
I don't get QuickTPASort
What are iLo ,iHi parameters? What criteria it use for sort?Code:procedure QuickTPASort(var A: TIntegerArray; var B: TPointArray; iLo, iHi: Integer; SortUp: Boolean);
Also I'm not sure if i understand InvertTPA. It just swap x and y in all TPoints?
And third question: is there any function ,which removes duplicated points from TPA?
edit:
Last one - Whats the difference between SortATPAFromFirstPoint and SortATPAFrom ?
Hi. first of all, Thank you for taking your time to help other people.
I made this procedure
Procedure ChopRoot;
var x, y: integer;
begin
if FindObj(x, y, 'hop', 2380663, 35) then
begin
FindNormalRandoms;
Mouse(x, y, 2, 2, true);
ChooseOption('hop');
if not FindObj(x, y, 'hop', 2446713, 35) then
begin
FindNormalRandoms;
Mouse(x, y, 2, 2, true);
ChooseOption('hop');
end;
end;
end;
According to what i think ive done, it shld chop one root, and if it doesnt find it, chop the other root...But it doesnt do that. it chops one root and then stops. Ik ive gone wrong somewhere, but Where?
Sorry if im not supposed to post this question here.
Thanks in advance! =]
Okay so I have created this procedure :
procedure WalkBank;
begin
FindNormalRandoms;
SPS_Setup(RUNESCAPE_SURFACE,['12_8','12_7']);
WriteLn('Inventory is full. Proceeding to bank.');
WalkToBank := [Point(4965, 3205), Point(4983, 3184), Point(5003, 3154), Point(5008, 3119), Point(5005, 3076), Point(5004, 3033), Point(4987, 2991), Point(4979, 2956), Point(4954, 2937), Point(4909, 2935), Point(4873, 2941), Point(4855, 2934), Point(4853, 2974)];
SPS_WalkPath(WalkToBank);
WriteLn('We have arrived at the bank.');
end;
Whenever I compile the whole script itself this happens
[Error] (38:1): Identifier expected at line 37
Compiling failed.
Still learning how to make a script. Just trying to compile the script before my first script is done =)
You need to declare 'WalkToBank' as a TPointArray - either globally, or preferrably locally - ie in the procedure you use it.
Simba Code:var
WalkToBank:TpointArray;
Which line of code is no 37 ?
I fixed it up but when I compile now a new tab in simba comes up with the title 'Sps' I know what it means but gives me this error in the Debug Box.
[Error] C:\Simba\Includes\Sps/Sps.simba(136:34): Unknown identifier 'MMCX' at line 135
Compiling failed.
MMCX, which is defined in globals.simba, is the x-coordinate for the Minimap centre.
globals.simba is loaded when you include srl.simba (I think)
Can you post all the code you have so far ?
The code for my script itself?
If so I can send it to you over MSN.
Phyaskou@hotmail.com
Send it to me via PM (private message)
You do this by left clicking my name (in my post), and choosing send private message
Sent it. I hope you know how to fix this :)
Yes, I've PM'd you the code.
You will also need to declare or remove SIGNED. It's only referenced once. OK ?
I took that out. THANK YOU SO MUCH!!
It has finally compiled.
Now for the final result....testing it out :)
Instead of taking it out, I see that you miss-spelt SIGNED ...
Simba Code:const
{==========Smart Setup==========}
World = 0; // Input the runescape world number right here for it to select. You may leave it as 0 if you would like it to select a random world.
MEMBERS = False; // Select False if you are not a member. Select True if you are a member.
SINGED = True;
... change it to SIGNED. As you need this and the other variables as well.
Good luck! :)
Oh. I guess I didn't notice that :O
Thanks for the advice and help. You've helped me finish my first script :)
No trouble at all. Good luck!
"[Error] (55:1): Identifier expected at line 54
Compiling failed."
This happened when I tried to compile my script after adding a proggy system. If anyone can help me I can send the entire script so you can help me out.
Just post the procedure / function that line 54 is in.
procedure WalkBank;
Getting this when I try to compile my SwampToad Picker :
"[Error] (59:12): Unknown identifier 'x' at line 58
Compiling failed."
if FindObj(x, y, 'taircase', 396561, 3) then
That is the line it says that at.
That worked and I forgot the ';' everytime after every procedure so it didn't compile until I figured it out.
Edit : Nvm. Fixed it up.
what does tpointarray do? I was making a universal walkbank; procedure and i cant seem to get it to stick? any tips, dymamite?
Alright I gotta question ok so basically I want it to click the circled water source symbol
http://i41.tinypic.com/w20qdx.jpg
and I never want it to click the other one to the north so I would like some help on FindSymbolMulti and stuff like that
also one more question
how do I do like
if not findobj for 5000 then
basicaly I want it if it cant find a warrior for five seconds then have it click on the circled water source to find more of em