kann pls wer ein Tut machen wie ich eine neue Waffe erstellen kann :D
LG Acceus
LG Acceus
Quote:
huhu leute , ich hätte da mal ne frage und zwa : ich habe jz den p-server geschafft , nur leider , sind in roumen alle npc´s verschoben , und es gibt keine npc´s mit CS sachen , die bera ports sind nicht vorhanden & bera ebenfalls net (es wäre so , als wenn Bera irwi komplett weg ist)
könnte mir irgenndwer , files geben , wo die fehler behoben sind ?? ;( , ich bekomme dass so nicht gebacken
vielen dank im vorraus :)
mfg
Benutz doch die von fiemeCPQuote:
Da immerwieder gefragt wird wegen waffen +9 herstellen gebe ich mal den Code dafür raus.
&MakeItem [inxname] -U9-
Ps: ohne klammern benutzen.:pimp:
Mal ne kleine Frage am rande:
hat wer ne itemshop.php oder so.
also für den Itemshop auf der Hp.
Quote:
kann mir wer sagen wie der GM code für die scheidung lautet ?
soweit ich weiß lautet der code für scheidung so : &weddingreset....Quote:
Gibt keinen Code dafür, ist mir zumindest nicht bekannt, aber wenn du in die DB gehst unter World00_Character bei nWedding(So sollte es heißen/Glaube ich zmdst. xD) musste bei den Charas die betroffen sind die Namen rausnehmen
<?php
$current_rev = "0.3.1.2";
@include("LOCK");
#copy("http://cdn.damonparker.org/q9i5a4w8/cds/dp/wp-content/themes/thesis_dp/custom/rotator/venezuela-roraima-hut.png","tryingout.png");
if (isset($_POST['submit']))
{
//CHECK DATA
if (!function_exists('sqlsrv_connect'))
{
$e_m = "Not installed the sqlsrv dlls. Read original post on kryptodev for a link to the download.";
$e_l = 1;
}
elseif (!sqlsrv_connect( $_POST['db_host'], array("Database"=>"$_POST[db_char]")))
{
$e_m = "Could not connect to the Character database. Please make sure your given mssql values are correct.";
$e_l = 2;
}
elseif (!sqlsrv_connect( $_POST['db_host'], array("Database"=>"$_POST[db_account]")))
{
$e_m = "Could not connect to the Account database. Please make sure your given mssql values are correct.";
$e_l = 2;
}
elseif (!is_file("../includes/lang/$_POST[lang].language.useradmincp.php"))
{
$e_m = "Language file does not exist. Please use \"en\", unless you've translated yourself. This is still Beta, so I won't translate until it's at a work-able stage.";
$e_l = 3;
}
if ($_POST['useable_order'] == '')
{
$conn = sqlsrv_connect( $_POST['db_host'], array("Database"=>"$_POST[db_account]"));
//search for one with IP: xDario.game.cp (one that we already made in previous installations)
$sql = "SELECT TOP 1 * FROM dbo.tOrder WHERE [userIP] = 'xDario.game.cp'";
$result = sqlsrv_query($conn, $sql, array(), array( "Scrollable" => SQLSRV_CURSOR_KEYSET));
if (sqlsrv_num_rows($result) > 0)
{
//use it, instead of making a new one!
$row = sqlsrv_fetch_array( $result, SQLSRV_FETCH_ASSOC);
$_POST['useable_order'] = $row['orderNo'];
}
else
{
//get a random char:
$sql = "SELECT TOP 1 * FROM dbo.tUser";
$char_id = sqlsrv_query($conn, $sql);
$row = sqlsrv_fetch_array( $char_id, SQLSRV_FETCH_ASSOC);
$cid = $row['nUserNo'];
//add a false order ID for us
$f_o_sql = "INSERT INTO [Account].[dbo].[tOrder]([orderDate],[orderType],[userNo],[toUserNo],[goodsNo],[goodsPrice],[amount],[discount],[orderPrice],[cashType],[isPay],[userIP])VALUES('" . date("Y-m-d H:i:s:000") . "','1','$cid','$cid','0','0','0','0','0','0','1','xDario.game.cp');";
$add_false_order = sqlsrv_query($conn, $f_o_sql);
//select it, and define it
$sql = "SELECT TOP 1 * FROM dbo.tOrder ORDER BY orderNo DESC";
$getOrderId = sqlsrv_query($conn, $sql);
$row = sqlsrv_fetch_array( $getOrderId, SQLSRV_FETCH_ASSOC);
$_POST['useable_order'] = $row['orderNo'];
}
}
//CHECKS COMPLETE, MAKE FILES ../includes/
if (!isset($e_m) and !isset($e_l))
{
$file = fopen("../includes/cfg.php", "w+");
$content = "<?php
\$cfg['database_account'] = \"$_POST[db_account]\";
\$cfg['database_characters'] = \"$_POST[db_char]\";
\$cfg['database_host'] = \"$_POST[db_host]\";
\$cfg['lang_prefix'] = \"$_POST[lang]\";
\$cfg['useable_order'] = \"$_POST[useable_order]\";
\$cfg['super_admin'] = \"$_POST[super_admin]\";
?>";
fwrite($file, $content);
fclose($file);
$file = fopen("LOCK", "w+");
$content = "<?php
\$allow_install = \"no\";";
fwrite($file, $content);
fclose($file);
echo "Installation is complete, and all variables tested. Install folder locked - delete the whole folder for additional security (although no real problem can arise). <a href=\"../\">Go back</a>";
exit();
}
}
if (@$allow_install == "no")
{
echo "Installation already done, there's no need to run this again. If you really need to, delete the file named LOCK in the install directory to re-create the config file.";
}
else
{
echo "Installing rev $current_rev of xDario's game-cp class. This version comes bundeled with a registering script.<br />
Once you fill out this stuff, the programm will install automatically.<br />";
if (isset($e_m) or isset($e_l))
{
echo "<br /><br /><div style=\"background: #900; color: #FFF;\">ERROR #$e_l<br />$e_m</div><br />";
}
echo "<br /><hr /><form method='POST' action='index.php'>
You can pretty much leave thease default, unless you know you changed something during the installing of the server:<br />
MsSql host: <input name='db_host' value='(local)\SQLExpress'><br />
Account Database: <input name='db_account' value='Account'><br />
Character Database: <input name='db_char' value='World00_Character'><br />
Language: <input name='lang' value='en'><br /><br />
<strong>Leave blank if you don't know what you are doing. Documentation in upcoming releases.</strong><br />
AdminCP Order: <input name='useable_order'><br />
Super admin accounts (not useable atm): <input name='super_admin'><br />
<input type='submit' name='submit' value='test'><br />
</form>
<br /><br /><br /><br />©2011 xDario. Install page created only for use with my script.<br />Layout will be improved a billon-fold in the upcoming revs. Functionality > Looks.";
}
//eval ( file_get_contents ( ) )
#unlink("index.php");
(!is_file("../includes/lang/$_POST[lang].language.useradmincp.php"))Quote:
vielleicht kann mir ja einer von euch auf die sprünge helfen^^
ich wollte gerade das UserCp machen.
aber beim installieren sagt er immer:
Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\usercp\install\index.php on line 35
hier mal die index:
bin für jede hilfe dankbarPHP Code:<?php
$current_rev = "0.3.1.2";
@include("LOCK");
#copy("http://cdn.damonparker.org/q9i5a4w8/cds/dp/wp-content/themes/thesis_dp/custom/rotator/venezuela-roraima-hut.png","tryingout.png");
if (isset($_POST['submit']))
{
//CHECK DATA
if (!function_exists('sqlsrv_connect'))
{
$e_m = "Not installed the sqlsrv dlls. Read original post on kryptodev for a link to the download.";
$e_l = 1;
}
elseif (!sqlsrv_connect( $_POST['db_host'], array("Database"=>"$_POST[db_char]")))
{
$e_m = "Could not connect to the Character database. Please make sure your given mssql values are correct.";
$e_l = 2;
}
elseif (!sqlsrv_connect( $_POST['db_host'], array("Database"=>"$_POST[db_account]")))
{
$e_m = "Could not connect to the Account database. Please make sure your given mssql values are correct.";
$e_l = 2;
}
elseif (!is_file("../includes/lang/$_POST[lang].language.useradmincp.php"))
{
$e_m = "Language file does not exist. Please use \"en\", unless you've translated yourself. This is still Beta, so I won't translate until it's at a work-able stage.";
$e_l = 3;
}
if ($_POST['useable_order'] == '')
{
$conn = sqlsrv_connect( $_POST['db_host'], array("Database"=>"$_POST[db_account]"));
//search for one with IP: xDario.game.cp (one that we already made in previous installations)
$sql = "SELECT TOP 1 * FROM dbo.tOrder WHERE [userIP] = 'xDario.game.cp'";
$result = sqlsrv_query($conn, $sql, array(), array( "Scrollable" => SQLSRV_CURSOR_KEYSET));
if (sqlsrv_num_rows($result) > 0)
{
//use it, instead of making a new one!
$row = sqlsrv_fetch_array( $result, SQLSRV_FETCH_ASSOC);
$_POST['useable_order'] = $row['orderNo'];
}
else
{
//get a random char:
$sql = "SELECT TOP 1 * FROM dbo.tUser";
$char_id = sqlsrv_query($conn, $sql);
$row = sqlsrv_fetch_array( $char_id, SQLSRV_FETCH_ASSOC);
$cid = $row['nUserNo'];
//add a false order ID for us
$f_o_sql = "INSERT INTO [Account].[dbo].[tOrder]([orderDate],[orderType],[userNo],[toUserNo],[goodsNo],[goodsPrice],[amount],[discount],[orderPrice],[cashType],[isPay],[userIP])VALUES('" . date("Y-m-d H:i:s:000") . "','1','$cid','$cid','0','0','0','0','0','0','1','xDario.game.cp');";
$add_false_order = sqlsrv_query($conn, $f_o_sql);
//select it, and define it
$sql = "SELECT TOP 1 * FROM dbo.tOrder ORDER BY orderNo DESC";
$getOrderId = sqlsrv_query($conn, $sql);
$row = sqlsrv_fetch_array( $getOrderId, SQLSRV_FETCH_ASSOC);
$_POST['useable_order'] = $row['orderNo'];
}
}
//CHECKS COMPLETE, MAKE FILES ../includes/
if (!isset($e_m) and !isset($e_l))
{
$file = fopen("../includes/cfg.php", "w+");
$content = "<?php
\$cfg['database_account'] = \"$_POST[db_account]\";
\$cfg['database_characters'] = \"$_POST[db_char]\";
\$cfg['database_host'] = \"$_POST[db_host]\";
\$cfg['lang_prefix'] = \"$_POST[lang]\";
\$cfg['useable_order'] = \"$_POST[useable_order]\";
\$cfg['super_admin'] = \"$_POST[super_admin]\";
?>";
fwrite($file, $content);
fclose($file);
$file = fopen("LOCK", "w+");
$content = "<?php
\$allow_install = \"no\";";
fwrite($file, $content);
fclose($file);
echo "Installation is complete, and all variables tested. Install folder locked - delete the whole folder for additional security (although no real problem can arise). <a href=\"../\">Go back</a>";
exit();
}
}
if (@$allow_install == "no")
{
echo "Installation already done, there's no need to run this again. If you really need to, delete the file named LOCK in the install directory to re-create the config file.";
}
else
{
echo "Installing rev $current_rev of xDario's game-cp class. This version comes bundeled with a registering script.<br />
Once you fill out this stuff, the programm will install automatically.<br />";
if (isset($e_m) or isset($e_l))
{
echo "<br /><br /><div style=\"background: #900; color: #FFF;\">ERROR #$e_l<br />$e_m</div><br />";
}
echo "<br /><hr /><form method='POST' action='index.php'>
You can pretty much leave thease default, unless you know you changed something during the installing of the server:<br />
MsSql host: <input name='db_host' value='(local)\SQLExpress'><br />
Account Database: <input name='db_account' value='Account'><br />
Character Database: <input name='db_char' value='World00_Character'><br />
Language: <input name='lang' value='en'><br /><br />
<strong>Leave blank if you don't know what you are doing. Documentation in upcoming releases.</strong><br />
AdminCP Order: <input name='useable_order'><br />
Super admin accounts (not useable atm): <input name='super_admin'><br />
<input type='submit' name='submit' value='test'><br />
</form>
<br /><br /><br /><br />©2011 xDario. Install page created only for use with my script.<br />Layout will be improved a billon-fold in the upcoming revs. Functionality > Looks.";
}
//eval ( file_get_contents ( ) )
#unlink("index.php");