Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 03:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HOWTO] Create User No

Discussion on [HOWTO] Create User No within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
janvier123's Avatar
 
elite*gold: 20
Join Date: Nov 2007
Posts: 2,853
Received Thanks: 1,876
[HOWTO] Create User No

Ok, here is how you create a user_no for the database

PHP Code
PHP Code:
$dk_time=strftime("%y%m%d%H%M%S");
list(
$usec1$sec1) = explode(" ",microtime());
$dk_user_no=$dk_time.substr($usec1,2,2);

echo 
$dk_user_no
Lets explain that:
strftime = "%y%m%d%H%M%S" = Year - Month - Day - Hour - Minutes - Seconds
NOTE: Year is only displayed with the last 2 digits!
NOTE: If we want the full year like 2011 we use a capital Y

That creates a time like: 110101
Ok then, if 20 uses register on that day, we need to add something more to it
so all users have a special code
for that we use microtime()

that gives us: 0.14240300 1293893126
we create a list so we need to delete some crap that microtime is saying
we need to cut the 2 number is 2 parts

PHP Code:
list($usec1$sec1) = explode(" ",microtime()); 
$usec1 = 0.14240300
$sec1 = 1293893126
and we explode the space between the numbers, cuz we dont need that
we are gonna use the 1st line called $usec1

then we subtract the last and first 2 digits, we dont need that
then add it all together

PHP Code:
$dk_time.substr($usec1,2,2); 
then we can give it a variable called $dk_user_no

It will result in:

11010115483761

Again:

11 => Year
01 => Month
01 => Day
15483761 => Special code created from the time

There you go
janvier123 is offline  
Thanks
2 Users
Old 01/04/2011, 13:04   #2
 
elite*gold: 0
Join Date: May 2008
Posts: 509
Received Thanks: 1,246
If people want to randomize it up a little bit they can use this reference .
=Warmonger= is offline  
Reply


Similar Threads Similar Threads
[HowTo] Create your own [SP] Trainer
06/04/2010 - S4 League Hacks, Bots, Cheats & Exploits - 39 Replies
Hallo Leute, da ich sehr viele PNs bekommen habe und auch sehr viele in Topics gefragt haben wie man einen Trainer mit AutoIT erstellt, stelle ich hier ein kleines Tutorial zur Verfügung! Ich bin nicht daran gewillt iwelche Beleidigungen gegen mich bzw. dieses Topic zu beantworten! Für Fragen bin ich sehr gerne offen! Was benötigen wir? AutoIT - Script Editor
how to create a user account
01/16/2010 - Shaiya - 3 Replies
hey.. how i create a user account on my private server?
[HoWTo] Create Wow Pserver
01/01/2010 - WoW Private Server - 3 Replies
Willkommen auf dem How to create a WoW Pserver 1.Downloaden wir hier für ganz wichtig die Novos Easys Mangos Server: Link: RapidShare: 1-CLICK Web hosting - Easy Filehosting 2. Nach dem Download downloadet ihr dannach Navicat 8 Link: RapidShare: 1-CLICK Web hosting - Easy Filehosting 3. Dann anschließend müsst ihr auch noch Net FRAMEWORK 3.5 haben Link: Downloaddetails: .NET Framework 3.5
[HELP]Create User Error
05/15/2009 - Dekaron Private Server - 3 Replies
Hello .. I Just Had This Error With My Pserver When I Create A Char http://img21.imageshack.us/img21/2449/fix1f.th.jp g Can U Help Plz ???? Thank YOu
How create patch in client for conected all user
04/18/2009 - Lineage 2 - 2 Replies
What setting should I do in the client to be able to connect players servare?



All times are GMT +2. The time now is 03:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.