SRL Archive - Help and Support

Help with returning Numbers


maxzzz

2006-05-01 08:11:42

Hellow..

my question is how i can return the numbers in this picture..


the numbers are random and need to writed down in the little box next to the numbers..
any knows how to do this.. i was thinking of arrays which go trough all numbers till they match but that would be very hard for my computer..

Help is welcome.. thnx

driger1592

2006-05-01 08:14:24

As long as the numbers aren't completely black (color 0) you can make a font for it. I'll have a tut coming along hopefully mid-month.

maxzzz

2006-05-01 08:17:40

ehm,, the color is black i guess…
is there no srl function/procedure for this or i could make a new one of?

Pyro

2006-05-01 15:46:32

No you need to make your own font. This involves bitmapping all letters or numbers in your case. How do you think uptext was made? Unless these letters are exactly the same as the letters in runescape. (which i am 100% sure not) you wil have to bitmap them yourself

driger1592

2006-05-01 19:28:25

The text wasn't completely black in the screenshot here ;)

The Un-Named

2006-05-01 21:02:33

From: driger1592
As long as the numbers aren't completely black (color 0) you can make a font for it. I'll have a tut coming along hopefully mid-month.


Black and white are wildcards for scar. He can use white text and a black background then use findbitmapmask or somthing. ;)

maxzzz

2006-05-02 04:13:06

I think I'll wait for the tutorial :)

If I made a font for it, how do I return the numbers as a number variable?

driger1592

2006-05-02 08:05:11

Load up the font, then you can use a function like GetTextAtEx to return it as a string. Since it'll be numbers, you can return them as an integer by doing StrToInt()

maxzzz

2006-05-02 08:23:54

Ok tnx for now, can't wait for your tut :)

Can you PM me when your tut is done?

masquerader

2006-06-27 23:57:00

lol, i made the npc font a while back ;)

if you could look at the website source maybe you could figure which font it uses and then use

LoadCharsFromFont2, or else youre going to have to make a b/w font

btw, what website is that?

Avaphi

2006-06-29 20:53:02

Hey masq, If you were wondering, I didnt even know this site existed before searching it in google, but here is a link anyways… http://members.home.nl/maxthedragon/downloads.html