Hello Guys
Today i will present you what i am work on.
Sorry for my bad english in this post but i am german
I am Working on a User Control Panel that is Homepage based.
This User Control Panel will give the user the chance to configurate them Accounts by themselfs.
By the way it took the work from the Admin away
And it will clean up some Homepages. (In the truth the most are in a mess)
In this ucp (user control Panel) the user can edit them Passwords, choose 1 of 4 Gear Designs, do a faction change by paying 5k DP (customizable), and move theyr kills from one char to another.
Then i will make a counter who tells the User how mutch kills he doing in this week.
So i am still working on it so if you had ideas or want to help for better performance or security... you are welcome
But the most are not with the code i need.
I´ve find a script for faction change but in it you must only put the charname and then the scripts take the account to other faction. Now i will modify it to something like : Put Accountname and Passwort and then the Script Change the Faction but also clean the Chars Inventory because of Character Load Error if they had Light gear on or am i wrong ?
If you have login on your website (with the account of the server) you can try to make something like this:
Player need to login to the website > he goes on the panel and then he can choose the character for change his faction.
$sql = "SELECT UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = ? and Pw = ?";
$stmt = odbc_prepare($GLOBALS['dbConn'],$sql);
$args = array($account);
$args = array ($password);
odbc_execute($stmt,$args,);
'<br/>';
$userUID = odbc_result($stmt,'UserUID');
$sql = "SELECT Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID = ?";
$stmt = odbc_prepare($GLOBALS['dbConn'],$sql);
$args = array($userUID);
odbc_execute($stmt,$args);
'<br/>';
$country = odbc_result($stmt,'Country');
if ($country==0) {
$sql = "UPDATE PS_GameData.dbo.UserMaxGrow
SET Country = 1
WHERE UserUID = ?";
$stmt = odbc_prepare($GLOBALS['dbConn'],$sql);
$args = array($userUID );
odbc_execute($stmt,$args);
echo $character.' was successfully factioned changed from light to fury!';
}
if ($country==1) {
$sql = "UPDATE PS_GameData.dbo.UserMaxGrow
SET Country = 0
WHERE UserUID = ?";
$stmt = odbc_prepare($GLOBALS['dbConn'],$sql);
$args = array($userUID );
odbc_execute($stmt,$args);
echo $character.' was successfully factioned changed from fury to light!';
}
odbc_close($GLOBALS['dbConn']);
}
?>
but when i submit i become the following error:
Code:
Warning: odbc_execute() [function.odbc-execute]: Not enough parameters (1 should be 2) given in C:\xampp\htdocs\scriptsucp\FactionChange\factionchange.php on line 49
Warning: odbc_execute() [function.odbc-execute]: SQL error: [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification, SQL state 22005 in SQLExecute in C:\xampp\htdocs\scriptsucp\FactionChange\factionchange.php on line 56
Warning: odbc_execute() [function.odbc-execute]: SQL error: [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification, SQL state 22005 in SQLExecute in C:\xampp\htdocs\scriptsucp\FactionChange\factionchange.php on line 66
I dont see what the hell i forgot xD can you help ? ^^
Yaaaay I'm back a few days i was banned but now i am back xD
So cause of the ucp, i will use a script what controls login state from HP (And HP Login is InGame Account Login) This way i dont need a 2nd or 3rd login. But how to put a Inventory Clean into Faction Change Script?
Yes, only inventory they can put their gears into warehouse. Its only for not let the gear on from light you know ? xD Because i want fc for take their kills and points with them. Not for take gear to other faction you know?
Something like this is what you'd use to delete Gear, Weapons, Accessories and Capes from inventories and warehouse.
Code:
Delete From PS_GameData.dbo.CharItems -- Inventory
Where UserID = @UserID
and Type IN
(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,32,33,34,35,36,39,40)
Delete From PS_GameData.dbo.UserStoredItems -- Warehouse
Where UserID = @UserID
and Type IN
(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,32,33,34,35,36,39,40)
I used "IN" so you can easily add or remove item types from the delete query, if you want to delete ALL items, just remove the "and Type IN ..." part of the query.
[Selling] User Control Panel [S] E*G 09/22/2014 - elite*gold Trading - 0 Replies Ordnerstruktur:
http://i.epvpimg.com/ZaTIb.png
Screens:
http://i.epvpimg.com/8vQfc.png http://i.epvpimg.com/sVVhe.png http://i.epvpimg.com/Wr0wf.png http://i.epvpimg.com/af6rd.png http://i.epvpimg.com/j9Trh.png http://i.epvpimg.com/7tvqd.png
Beschreibung:
-> MySQL Improved (OOP Schreibweise)
User Control Panel Design 05/04/2013 - Artist Trading - 2 Replies Hey Community
Ich hätte ein User Control Panel zu verkaufen,
das UCP geht in die Themen richtung GTA:SA, aber wen
man die Render und Grafiken im Background etwas
ändert kann man es auch ganz schnell und Simple
für was anderes benutzen. Gemacht wurde das UCP
eigentlich für mein altes Projekt wo ich im Team war,
aber da der Server Leiter der Meinung war einfach
alles zu verkaufen weil er Preis stimmte benötige ich das
User Control Panel 06/11/2012 - Shaiya - 2 Replies Can some 1 pls share the shaiya user control panel ?if some1 stil have it.Ty anticipated.
[Hilfe] User Control Panel 06/29/2011 - Shaiya - 0 Replies hallo, ich habe ein großes problem. ich habe das user control panel, aber das hat große fehler, wo bekomm ich den gefixten scrip her für das UCP ???
bitte um schnelle hilfe
RaZoR elite*gold spenden
[Need Something] v15 User Control Panel 07/12/2010 - Flyff Private Server - 4 Replies Hello,
Im admin from a v15 server,
I need a user cp for my site,
Someone haves ??
Post it here please.