[RELEASE][PYTHON/LUA][GUI] Bank-System

04/14/2015 22:21 Mr. 'Avenue™#1
Bank-GUI

Features
  • Einzahlung
  • Auszahlung
  • Jeder Spieler kann mehrere Bankkonten anlegen
  • Spieler können auf jedes Bankkonto überweisen
  • Spieler können, sofern sie ID & Passwort des Bankkontos haben, auf andere Bankkonten zugrifen
  • Es wird alles gelogt [administration]
  • Grafische Benutzeroberfläche (GUI) (wer das tutorial befolgt, kann's Ingame mit F7 aufrufen)

Folgende Tabellen werden gebraucht (quest-Datenbank):
04/14/2015 22:30 ​Remix#2
[Only registered and activated users can see links. Click Here To Register...]

mysql_query gibt so oder so einen String zurück.
So castest du einen String zu einem String.

Btw solltest lieber mit der Playerid arbeiten, wenn du eine neue Tabelle machst.
Im Falle eines neuen Chars mit dem Namen eines alten, hat der neue alles, was der alte hatte.
04/14/2015 22:40 Tuora#3
Heute gut drauf oder so?^^ nette Releases :D
danke
04/14/2015 23:19 .Despero™#4
Vahap Verspätetes 2000 Beiträge Releases? :D echt gute Arbeit von dir ;)
04/14/2015 23:34 Nick#5
In Bezug auf die Anleitung besteht dringender Korrekturbedarf, dort sind dir scheinbar ein paar Fehler im Zusammenhang mit den BB-Codes unterlaufen.

Die Aufmachung gefällt mir (trotz Schlichtheit) recht gut.

lg
04/14/2015 23:48 rollback#6
Schönes Release, wobei es am DB-Design eines zu meckern gibt :p

edit:

hätte das db design so gemacht:

Code:
CREATE TABLE bank_user (
id int(6) not null auto_increment,
account_id int(11) not null,
password varchar(41) not null,
name varchar(20) not null,
money int(20) not null default 0,
`time` datetime not null default CURRENT_TIMESTAMP,
primary key(id)
);

create table bank_deposit_log (
id int(10) not null auto_increment,
user_id int(6) not null,
money int(20) not null,
`time` datetime not null default CURRENT_TIMESTAMP,
primary key(id)
);

create table bank_login_log (
id int(10) not null auto_increment,
user_id int(6) not null,
tryed_password varchar(20) not null,
status boolean not null,
`time` datetime not null default CURRENT_TIMESTAMP,
primary key(id)
);

create table bank_transfer_log (
id int(10) not null auto_increment,
user_id int(6) not null,
transfer_to int(6) not null,
`value` int(10) not null default 0,
`time` datetime not null default CURRENT_TIMESTAMP,
primary key(id)
);

create table bank_withdraw_funds_log (
id int(10) not null auto_increment,
user_id int(6) not null,
money int(20) not null,
bank_name varchar(20) not null,
`time` datetime not null default CURRENT_TIMESTAMP,
primary key(id)
);

ALTER TABLE bank_deposit_log
SET FOREIGN KEY(user_id)
REFERENCES bank_user.id;

ALTER TABLE bank_login_log
SET FOREIGN KEY(user_id)
REFERENCES bank_user.id;

ALTER TABLE bank_transfer_log
SET FOREIGN KEY(user_id)
REFERENCES bank_user.id;

ALTER TABLE bank_transfer_log
SET FOREIGN KEY(transfer_to)
REFERENCES bank_user.id;

ALTER TABLE bank_withdraw_funds_log
SET FOREIGN KEY(user_id)
REFERENCES bank_user.id;
Dafür müssten natürlich auch Änderungen an der Quest gemacht werden
04/14/2015 23:59 Arvøs#7
Schönes System - Vielen Dank
04/15/2015 19:38 Mr. 'Avenue™#8
UPDATE:
- Registration hinzugefügt
- Tutorial ausgebessert
04/16/2015 09:01 STREL#9
Quote:
Originally Posted by Mr. 'Avenue™ View Post
UPDATE:
- Registration hinzugefügt
- Tutorial ausgebessert
Mr. 'Avenue™, nice work, I will we make a mod to accomplish another function(same work, the difference this don't save yang)
¿You give me your permission for it?
04/16/2015 13:19 Alergix2#10
bester mann!!! :DD
Danke dafür!
04/16/2015 19:42 fabian1233#11
:D
weiterentwicklung meines systems :D
[Only registered and activated users can see links. Click Here To Register...]
04/17/2015 00:34 Brodish#12
Bei mir spuckt er den Error in der Syserr aus:
PHP Code:
0417 00:30:18795 :: Failed to load script file PopupWindow.py
0417 00
:30:18796 :: error  No file or directory
0417 00
:30:18800 :: 
ui.py(line:2763LoadScriptFile
system
.py(line:192execfile
system
.py(line:161Run
system
.py(line:176__LoadTextFile__
system
.py(line:61__init__

LoadScriptFile1 
- <type 'exceptions.IOError'>:No file or directory

0417 00
:30:18800 :: ============================================================================================================
0417 00:30:18800 :: Abort!!!!


0417 00:30:18802 :: 
uiBank.py(line:26__LoadWindow
ui
.py(line:2769LoadScriptFile
exception
.py(line:36Abort

BankWindow
.LoadWindow.LoadObject - <type 'exceptions.SystemExit'>:

0417 00:30:18802 :: ============================================================================================================
0417 00:30:18802 :: Abort!!!! 
04/17/2015 23:28 Mr. 'Avenue™#13
Quote:
Originally Posted by Brodish View Post
Bei mir spuckt er den Error in der Syserr aus:
PHP Code:
0417 00:30:18795 :: Failed to load script file PopupWindow.py
0417 00
:30:18796 :: error  No file or directory
0417 00
:30:18800 :: 
ui.py(line:2763LoadScriptFile
system
.py(line:192execfile
system
.py(line:161Run
system
.py(line:176__LoadTextFile__
system
.py(line:61__init__

LoadScriptFile1 
- <type 'exceptions.IOError'>:No file or directory

0417 00
:30:18800 :: ============================================================================================================
0417 00:30:18800 :: Abort!!!!


0417 00:30:18802 :: 
uiBank.py(line:26__LoadWindow
ui
.py(line:2769LoadScriptFile
exception
.py(line:36Abort

BankWindow
.LoadWindow.LoadObject - <type 'exceptions.SystemExit'>:

0417 00:30:18802 :: ============================================================================================================
0417 00:30:18802 :: Abort!!!! 
Hab's mal hinzugefügt. Lade dir bitte das neueste Update (1.2) herunter.
04/18/2015 15:05 Undead Corporation#14
0418 16:00:18568 :: Traceback (most recent call last):

0418 16:00:18569 :: File "uiBank.py", line 150, in OnUpdate

0418 16:00:18569 :: AttributeError
0418 16:00:18569 :: :
0418 16:00:18569 :: 'module' object has no attribute 'BANK'
0418 16:00:18569 ::
04/18/2015 15:21 Mr. 'Avenue™#15
Quote:
Originally Posted by Undead Corporation View Post
0418 16:00:18568 :: Traceback (most recent call last):

0418 16:00:18569 :: File "uiBank.py", line 150, in OnUpdate

0418 16:00:18569 :: AttributeError
0418 16:00:18569 :: :
0418 16:00:18569 :: 'module' object has no attribute 'BANK'
0418 16:00:18569 ::
Add this to your constInfo.py:
Code:
# Banksystem
INPUT_IGNORE = 0
BANK = {
	"qid"	: 0,
	"questCMD" : "",
	"id" : "NaN",
	"pwd" : "",
	"Money" : 0,
	"loggedin" : 0,
}
# Banksystem [END]