Hi guys, I have looked at a few tutorials. I'm searching for a simple, but effective method in getting the uptext characters a couple methods look like they'll take ages and I don't have too much time
Thank you guys![]()
Hi guys, I have looked at a few tutorials. I'm searching for a simple, but effective method in getting the uptext characters a couple methods look like they'll take ages and I don't have too much time
Thank you guys![]()
If you know if any of the current fonts we have match with the old font then it's quite simple.
Check this out:
http://villavu.com/forum/showthread.php?t=60451
Tutorials:
| Utilizing the tools in Villavu | How to create Pythagoras theorem calculator in JavaScript | How to make a live signature of your Pascal Script | Concepts of Programming Tutorial | Worked on Frog Random with Justin for RS07
Tutorials:
| Utilizing the tools in Villavu | How to create Pythagoras theorem calculator in JavaScript | How to make a live signature of your Pascal Script | Concepts of Programming Tutorial | Worked on Frog Random with Justin for RS07
Tutorials:
| Utilizing the tools in Villavu | How to create Pythagoras theorem calculator in JavaScript | How to make a live signature of your Pascal Script | Concepts of Programming Tutorial | Worked on Frog Random with Justin for RS07
http://villavu.com/forum/showthread.php?t=94612
thats a snippet I made to find font in a certain area.
Tutorials:
| Utilizing the tools in Villavu | How to create Pythagoras theorem calculator in JavaScript | How to make a live signature of your Pascal Script | Concepts of Programming Tutorial | Worked on Frog Random with Justin for RS07
The tutorial telling people how to create your own uptext does not help much.. because once you create it chances are you have no idea how to include it into your script which the tut does not explain -.-
Once you have the folder with all the chars you need to load the font in the mainloop
Simba Code:LoadFont(Fontname, True);
Tutorials:
| Utilizing the tools in Villavu | How to create Pythagoras theorem calculator in JavaScript | How to make a live signature of your Pascal Script | Concepts of Programming Tutorial | Worked on Frog Random with Justin for RS07
Once you've loaded it you need to find the uptext. I used a box to find it,
Simba Code:(*
GetAbilityName
~~~~~~~~~~~~
.. code-block:: pascal
function GetAbilityName(Slot : Integer);
Returns the text of an abilities name in the hotbar
.. note::
by Xtrapsp
.. others::
Olly
JJ
Dynamite
Example:
.. code-block:: pascal
*)
function GetAbilityName(Slot: Integer) : string;
var
Ability : String;
Box, B : Tbox;
i: Integer;
P: TPoint;
cArr: TPointArray;
ResultTPA: String;
begin
Box := AbilitySlotToBox(Slot);
Writeln('found Slot');
Writeln(Box);
MMouse(randomRange(Box.x1, Box.x2), randomRange(Box.y1, Box.y2), 0, 0);
wait(100+Random(1000));
begin
Result := 'Undefined'; // Setting Result to equal nothing
if (findColorsSpiralTolerance(MSCX,MSCY,cArr,1774603,MSX1,MSY1,MSX2,MSY2,0)) then
begin
B := GetTPABounds(cArr);
SMART_DrawBoxEx(True,False,B,clyellow);
wait(100);
Result := GetTextAtExWrap(B.x1,B.y1,B.x2,B.y1+20,1,4,0,3111603,1,UpChars);
Writeln('Result: ' + Result);
end;
end;
end;
What this does is select and ability, find the title of it and print it.
Tutorials:
| Utilizing the tools in Villavu | How to create Pythagoras theorem calculator in JavaScript | How to make a live signature of your Pascal Script | Concepts of Programming Tutorial | Worked on Frog Random with Justin for RS07
There are currently 1 users browsing this thread. (0 members and 1 guests)