Page 1 of 1

Numbers are not in normal format,To make it operate

Posted: 05 Apr 2019, 09:35
by rjl1989
Numbers are not in normal format. They are very special. Can they be converted to normal values? To make it operate


12 3 4 5 6 8 9 10 This is a special number.

1 2 3 4 5 6 8 9 10 This is the normal number.


反外挂验证人员#3: 14 - 6 〓 ( ? )



console /反外挂验证人员#\d:\s\s\s\s(\d+)\s(.*)\s(\d+)\s\s.*/

eval($.lastMatch1$.lastMatch2$.lastMatch3)

Normal digits can be calculated Abnormal numbers cannot be calculated

Re: Numbers are not in normal format,To make it operate

Posted: 05 Nov 2019, 19:34
by 4epT
what is "Abnormal numbers" ?

Re: Numbers are not in normal format,To make it operate

Posted: 06 Nov 2019, 16:59
by fadreus
4epT wrote:what is "Abnormal numbers" ?
It's numbers, but in Chinese Language (font?) but can't be translated (it seems) as it is not Chinese Numerals (一 二 三 四 五 。。。)
To me, it appears as different font but no idea how it appear to openkore.

Re: Numbers are not in normal format,To make it operate

Posted: 07 Nov 2019, 12:31
by Mortimal
1. Use console log to understand(and store) how all special numbers is seen by Kore.
2. Use sms like this in console trigger:

Code: Select all

(\d*|specnum1|specnum2|specnum3|specnum4|specnum5|specnum6|specnum7|specnum8|specnum9|specnum10)\s(-|\+|/|\*)\s(\d*|specnum1|specnum2|specnum3|specnum4|specnum5|specnum6|specnum7|specnum8|specnum9|specnum10)
3. Than use texttonum solution for each result

Code: Select all

$i = @eval({"<text1>" => <num1>, "<text2>" => <num2>, ..., "<textN>" => <numN>}->{"<textX>"})
4. Than add/subst/mult/div...
5. ?????
6. PROFIT!!!