summaryrefslogtreecommitdiff
path: root/generators
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-22 19:22:11 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-22 19:22:11 +0200
commit29e360742bf6f9ce4b0c30d895a6c5df2b8bd592 (patch)
tree163c2a9956d63b53ee3b3acbcbf5b3fa912e54dd /generators
parent40beeaeb1c299bf29bba1942457d043412d3493a (diff)
downloadevol-tools-29e360742bf6f9ce4b0c30d895a6c5df2b8bd592.tar.gz
evol-tools-29e360742bf6f9ce4b0c30d895a6c5df2b8bd592.tar.bz2
evol-tools-29e360742bf6f9ce4b0c30d895a6c5df2b8bd592.tar.xz
evol-tools-29e360742bf6f9ce4b0c30d895a6c5df2b8bd592.zip
Add generators tools. Now can generate accounts and chars db.
Diffstat (limited to 'generators')
-rw-r--r--generators/athena_template.txt1
-rwxr-xr-xgenerators/genusers.py34
-rw-r--r--generators/save/.placeholder0
3 files changed, 35 insertions, 0 deletions
diff --git a/generators/athena_template.txt b/generators/athena_template.txt
new file mode 100644
index 0000000..325c87a
--- /dev/null
+++ b/generators/athena_template.txt
@@ -0,0 +1 @@
+ 0,1,1 0,0,50 43,43,11,11 9,9,9,1,1,1 0,0 0,0,0 0,0,0 6,10,0 0,0,0,1108,0 002-3.gat,23,22 002-3.gat,16,18,0,0 0,1108,1,512,1,0,0,0,0,0,0,0 1,0
diff --git a/generators/genusers.py b/generators/genusers.py
new file mode 100755
index 0000000..48a721f
--- /dev/null
+++ b/generators/genusers.py
@@ -0,0 +1,34 @@
+#! /usr/bin/env python2.6
+# -*- coding: utf8 -*-
+
+import os
+import re
+
+with open ("save/account.txt", "w") as w:
+ w.write("0\ts1\tp1\t2011-01-21 00:08:54.247\tS\t905\t0\ta@a.com\t-\t0\t127.0.0.1\t!\t0\t")
+ for f in range(2000000, 2010000):
+ w.write(str(f))
+ w.write("\t")
+ w.write("u" + str(f) + "aaa\t")
+ w.write("!aaaaa$aaaaaaaaaaaaaaaaaaaaaaaa")
+ w.write("\t2011-01-20 01:09:48.708\tM\t1\t0\t")
+ w.write("a@a.com\t-\t0\t127.0.0.1\t!\t0\t\n")
+ w.write("2010000\t%newid%\n")
+
+with open ("athena_template.txt") as r:
+ template = r.read()
+ num = 2
+ with open ("save/athena.txt", "w") as w:
+ for f in range(150000, 155000):
+ for d in range(0, num):
+ w.write(str((f-150000)*num*10 + d + 150000))
+ w.write("\t")
+ w.write(str(f-150000+2000000))
+ w.write(",")
+ w.write(str(d))
+ w.write("\t")
+ w.write("u" + str(f) + "aaa" + str(d))
+ w.write(template)
+ w.write(str((f-150000)*num*10 + d + 150000 + 1))
+ w.write("\t%newid%\n")
+
diff --git a/generators/save/.placeholder b/generators/save/.placeholder
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/generators/save/.placeholder