View Single Post
Old 02-26-2008, 06:52 AM   #7
whatda 
Yellow Glove Drifter
 
Join Date: Feb 2008
Posts: 20

Default Popkart Registration Guide

let's check out this id checking function
StrNo is the string u input
every char in the string has a index, the first char in the string has a index 0
StrNo.substr(0,17) means get the substring of StrNo from the index 0, and the substring length is 17

for example, if we have a string aaa = "123456789012345678"
so:
index = 0, that's '1'
index =5, that's '6'

aaa.substr(0,3), that's "123"
aaa.substr(0,17),that's "12345678901234567"
aaa.substr(3,1), that's '4'

"=" means give it a value of
"==" means equal
"!" means not
+= means add a value on it
if string a = "haha"; a += "hehe"; then a == "hahahehe"

parseInt means convert a string to integer

feel sick about all the shit above? let's make it easier

that's how we gonna do:

for 15 length id:

just make a 15 length number

from the 7th to 12th number should be a valid date like 810625 (June.25, 1981) that would be your birthdate

for 18 length id:

just make a 18 length number, the 17th number should match your gender, male:1, female: 0

the 1st number should >= 1 and < 7

the 2nd number should >=1 and <=7

the 1~3 numbers should not all equal to each other unless they are "222"

the 1~4 numbers should not all equal to earh other

the numbers 7~14 should be a valid date like 19810625 (June.25, 1981) that would be your birthdate

at last, let's do some math :)

multiple each numbers from the first to the 17th with each value below:
7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2

then add them together, and divided it by 11, get the remainder

if the remainder is 0, change the last number (the 18th number in your ID number) to 1
if 1, 0
if 2, X (just the char x with upcase)
if 3, 9
4, 8
5,7
6,6
7,5
8,4
9,3
10,2

And that's how it's done.

Ivan Jiang

www.youtube.com/jiangyi1985


PS: link: http://member.tiancity.com/Registrat...aspx?From=kart

download: http://popkart.tiancity.com/homepage...load_game.html

chinese real-name: just copy any 2 or 3 chinese words characters from the page and paste into the blank

Click the spoiler to show the images
Spoiler


Last edited by RKBaller; 02-26-2008 at 10:53 PM.. Reason: Added spoiler
whatda is offline   Reply With Quote