how to change Cubi amount when make a new account?
11-11-10
Szaer
Re: change Cubi amount when make a new account
You would have to look into the register php (I'm still exploring all the new server files so I havent gotten to that yet ;D). If you plan on doing this by hand you will want to see how the script is connecting to your dbo and how to insert information into it.
Actually I've never touched cubi scripts, but looking from dbo you'll want to create a php script that insterts into the 'usecashnow' table and records the user ID number, amount, etc. Seeing as you need the ID number I would think you have to make this a script that is executed directly after the register script and have it gather the user info such as the ID that we now need from the posted $username (or whatever the variable may be).
Of course you're probably best off finding a cubi script off of this forum. You'll still need to make it read the info first instead of making it as the account is created (because the ID is an automated number).
If anyone can correct me please do. I plan on working on pw web scripts after I'm done exploring the new servers. :T
12-11-10
Taiko
Re: change Cubi amount when make a new account
U mean change or its auto added when u make a new account?
If it is added to a new char once it is made then, there are couple of threads talking about that already. You should search for it tho at first.
I use pw hrace009, while creating direct id get 2 million cubi
my question is, how to change the 2 million to 0 cubi
I want the first time to make id get 0 cubi
where can I change it?
sorry my bad english:D:
12-11-10
Szaer
Re: change Cubi amount when make a new account
Whats the DIR to your register page? If you use the register in IP:80 it doesn't give you any extra cubi.
If you open up your register page though, you can just remove the cubi script. If you don't know how just post it here (post the contents of the reg page) and we'll help.
12-11-10
Taiko
Re: change Cubi amount when make a new account
Yes its like what Szaer said, the scripts is at ur registrations page. If u want to let ur player to have 0 cubi when register u can just disable / remove that scripts.
12-11-10
vixio_dv
Re: change Cubi amount when make a new account
Quote:
Originally Posted by alrock55
I use pw hrace009, while creating direct id get 2 million cubi
my question is, how to change the 2 million to 0 cubi
I want the first time to make id get 0 cubi
where can I change it?
sorry my bad english:D:
they are execute usecash procedure from mysql
12-11-10
343
Re: change Cubi amount when make a new account
or you could go about it another way...:
you could actually just start every char with X coins, and run the "GetCubi" pwAdmin plugin (granted this pretty much forces you to publicly open 8080 :( ) Then users could always decide just to keep and use the coin, or turn it into cubi themselves ;)
12-11-10
das7002
Re: change Cubi amount when make a new account
Quote:
Originally Posted by 343
or you could go about it another way...:
you could actually just start every char with X coins, and run the "GetCubi" pwAdmin plugin (granted this pretty much forces you to publicly open 8080 :( ) Then users could always decide just to keep and use the coin, or turn it into cubi themselves ;)
You could use a neat little php proxy to pull that off though, and only that page and it will be like it is actually php not the jsp server
13-11-10
hrace009
Re: change Cubi amount when make a new account
Quote:
Originally Posted by alrock55
I use pw hrace009, while creating direct id get 2 million cubi
my question is, how to change the 2 million to 0 cubi
I want the first time to make id get 0 cubi
where can I change it?
if (isset($_POST['login']))
{
$Link = MySQL_Connect($DB_Host, $DB_User, $DB_Password) or die ("Can't connect to MySQL");
MySQL_Select_Db($DB_Name, $Link) or die ("Database ".$DB_Name." do not exists.");
if (empty($Login) || empty($Pass) || empty($Repass) || empty($Email))
{
echo "<font color=white><b>All fields is empty.</b></font>";
}
/* elseif (ereg("[^0-9a-zA-Z_-]", $Login, $Txt))
{
echo "Login have a incorrect format.";
}
elseif (ereg("[^0-9a-zA-Z_-]", $Pass, $Txt))
{
echo "Password have a incorrect format.";
}
elseif (ereg("[^0-9a-zA-Z_-]", $Repass, $Txt))
{
echo "Repeat password have a incorrect format.";
}
*/
elseif (StrPos('\'', $Email))
{
echo "<font color=red><b>Email have a incorrect format.</b></font>";
}
else
{
$Result = MySQL_Query("SELECT name FROM users WHERE name='$Login'") or ("Can't execute query.");
if (MySQL_Num_Rows($Result))
{
echo "<font color=red><b>Account ".$Login." is exists</b></font>";
}
elseif ((StrLen($Login) < 4) or (StrLen($Login) > 10))
{
echo "<font color=red><b>Login must have more 4 and not more 10 symbols.</b></font>";
}
elseif ((StrLen($Pass) < 4) or (StrLen($Pass) > 10))
{
echo "<font color=red><b>Password must have more 4 and not more 10 symbols.</b></font>";
}
elseif ((StrLen($Repass) < 4) or (StrLen($Repass) > 10))
{
echo "<font color=red><b>Repeat password must have more 4 and not more 10 symbols.</b></font>";
}
elseif ((StrLen($Email) < 4) or (StrLen($Email) > 25))
{
echo "<font color=red><b>Email must have more 4 and not more 25 symbols.</b></font>";
}
if (isset($_POST['login']))
{
$Link = MySQL_Connect($DB_Host, $DB_User, $DB_Password) or die ("Can't connect to MySQL");
MySQL_Select_Db($DB_Name, $Link) or die ("Database ".$DB_Name." do not exists.");
if (empty($Login) || empty($Pass) || empty($Repass) || empty($Email))
{
echo "<font color=white><b>All fields is empty.</b></font>";
}
/* elseif (ereg("[^0-9a-zA-Z_-]", $Login, $Txt))
{
echo "Login have a incorrect format.";
}
elseif (ereg("[^0-9a-zA-Z_-]", $Pass, $Txt))
{
echo "Password have a incorrect format.";
}
elseif (ereg("[^0-9a-zA-Z_-]", $Repass, $Txt))
{
echo "Repeat password have a incorrect format.";
}
*/
elseif (StrPos('\'', $Email))
{
echo "<font color=red><b>Email have a incorrect format.</b></font>";
}
else
{
$Result = MySQL_Query("SELECT name FROM users WHERE name='$Login'") or ("Can't execute query.");
if (MySQL_Num_Rows($Result))
{
echo "<font color=red><b>Account ".$Login." is exists</b></font>";
}
elseif ((StrLen($Login) < 4) or (StrLen($Login) > 10))
{
echo "<font color=red><b>Login must have more 4 and not more 10 symbols.</b></font>";
}
elseif ((StrLen($Pass) < 4) or (StrLen($Pass) > 10))
{
echo "<font color=red><b>Password must have more 4 and not more 10 symbols.</b></font>";
}
elseif ((StrLen($Repass) < 4) or (StrLen($Repass) > 10))
{
echo "<font color=red><b>Repeat password must have more 4 and not more 10 symbols.</b></font>";
}
elseif ((StrLen($Email) < 4) or (StrLen($Email) > 25))
{
echo "<font color=red><b>Email must have more 4 and not more 25 symbols.</b></font>";
}