fewdox
New Member
Hi All, Anyone have a bank system via database MySql ...
if have please post link or code here tanks ..
:thumbup:
and if someone help me with this method form `buy points`..
i need to put bank system via database mysql in my ot ..
and buy points form with balance of bank ..
type ..
Test have 9000 gp in bank ..
Buy points form is .. if player have 9000 gp in bank .. he can buy 1 point ..
i have this db commands but i have one NPC via website . but i dont know how i make for the when player buyed 1 points .. he lost the balance money ..
example
1-> i deposited 9k in balance
2-> need buy 1 points (1 point price is 9k)
3-> db check if you have 9k
4-> after check ... but have a submit button . and you get 1 point in site
5->after 1 point added db remove the 9k from you account balance
Please help me .. i need this very munch .!!!!
if have please post link or code here tanks ..
:thumbup:
and if someone help me with this method form `buy points`..
i need to put bank system via database mysql in my ot ..
and buy points form with balance of bank ..
type ..
Test have 9000 gp in bank ..
Buy points form is .. if player have 9000 gp in bank .. he can buy 1 point ..
i have this db commands but i have one NPC via website . but i dont know how i make for the when player buyed 1 points .. he lost the balance money ..
example
1-> i deposited 9k in balance
2-> need buy 1 points (1 point price is 9k)
3-> db check if you have 9k
4-> after check ... but have a submit button . and you get 1 point in site
5->after 1 point added db remove the 9k from you account balance
PHP:
$player_data = $SQL->query("SELECT * FROM `players` WHERE `name` = '".$player."';")->fetch();
$SQL->query("UPDATE `accounts` SET `premium_points` = `premium_points` + '".$points."' WHERE `id` = '".$player_data['account_id']."'");
if($config['site']['shop_system'] == 1)
{
if($logged)
{
$user_premium_points = $account_logged->getCustomField('balance');
}
else
{
$user_premium_points = 'Login first';
}
Please help me .. i need this very munch .!!!!