kitchenrange
2010-12-23 00:38:33
In making a script for something completely unrelated some questions have come up. After a quick check of the includes I'm not sure how to go about this.
Ok so I have an array of long integers well say
01.01
02.03
02.04
02.02
10.03
Is there any way to compare all those integers to see if the digits after the decimal are the same.
I think I have found a way by creating my own type. It feels very similar to object oriented programming in c++. The only question I have about that is if I can create an array of the type I create using record. To clarify a little further, those integers describe characteristics about the places they hold. 01.01 for instance represents an Ace of Spades. 02.01 would be a Deuce of Spades, and changing the second set would change its suit 01.02 being an Ace of Hearts.
Using record I have created a type TCard and given it "fields" Suit and Rank. If I can create an array of those types,
it would represent a Hand and shit could get wild.
Also, how would I go about reading text that has nothing to do with runescape? I mainly need this for text that I will supply a .bmp of in this thread. But it would also be good to read chat box text.
It seems I'm about to have to fire up the old mIRC.
Ok so I have an array of long integers well say
01.01
02.03
02.04
02.02
10.03
Is there any way to compare all those integers to see if the digits after the decimal are the same.
I think I have found a way by creating my own type. It feels very similar to object oriented programming in c++. The only question I have about that is if I can create an array of the type I create using record. To clarify a little further, those integers describe characteristics about the places they hold. 01.01 for instance represents an Ace of Spades. 02.01 would be a Deuce of Spades, and changing the second set would change its suit 01.02 being an Ace of Hearts.
Using record I have created a type TCard and given it "fields" Suit and Rank. If I can create an array of those types,
it would represent a Hand and shit could get wild.
Type TCard = record
Rank : integer;
Suit : integer;
end;Also, how would I go about reading text that has nothing to do with runescape? I mainly need this for text that I will supply a .bmp of in this thread. But it would also be good to read chat box text.
It seems I'm about to have to fire up the old mIRC.