Fiesta P server erstellen

11/19/2011 19:01 Acceus#2461
kann pls wer ein Tut machen wie ich eine neue Waffe erstellen kann :D

LG Acceus
11/21/2011 16:31 convent#2462
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.
11/21/2011 17:08 [Dev]DelTa#2463
Quote:
Originally Posted by pokefan1234567 View Post
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

Das ist kein Fehler, deine Files sind veraltet, das mit den NPC's geht so:

Geh dahin wo der NPC stehen soll, und geb ein &coord
dann erscheinen da 3 Zahlen XXXX / XXXX / XX bzw XXX
schreib dir die auf und geh in deinen Serverfiles ordner
dort in den World Ordner
und da ist eine NPC.txt
geh da hin und such die npc's aus die du umstellen willst(Index Namen beachten)
und schreibst einfach die Koordinaten um, die letzen XX bzw XXX bzw Zahlen ist die Rotation des NPC'S kannst zwischen 180° - -180° einstellen ;)


Wenn du mehr fragen hast schreib mir ne PM, oder adde mich Skype(Addy bekommste wenn du mich pmst)

Quote:
Originally Posted by convent View Post
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.
Benutz doch die von fiemeCP
aber ich würde zuvor xDario fragen ob du einzelne Daten davon verwenden darfst

Quote:
Originally Posted by Superfrucht View Post
kann mir wer sagen wie der GM code für die scheidung lautet ?

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
11/21/2011 17:11 convent#2464
Quote:
Originally Posted by [Dev]DelTa View Post
Benutz doch die von fiemeCP
aber ich würde zuvor xDario fragen ob du einzelne Daten davon verwenden darfst
danke für die Info und werd mal mit ihn reden.

Ps: weist du wo ich die fiemeCP finde, alle seite von google sind off.
11/21/2011 17:12 [Dev]DelTa#2465
Quote:
Originally Posted by convent View Post
danke für die Info und werd mal mit ihn reden.
Kein Problem ;)
11/21/2011 17:31 convent#2466
weist du wo ich die fiemeCP herbekommen?
google is net gerade hilfreich.
11/22/2011 01:02 Superfrucht#2467
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
soweit ich weiß lautet der code für scheidung so : &weddingreset....
bloß weiß ich nicht was danach hin kommt pls helft mir weiter
11/22/2011 15:28 [Dev]DelTa#2468
Quote:
Originally Posted by convent View Post
weist du wo ich die fiemeCP herbekommen?
google is net gerade hilfreich.
eigentlich auf kryptodev.com und ******** glaube ich, ist es auch gehostet
11/22/2011 20:44 geniale Blähung#2469
Quote:
Originally Posted by Superfrucht View Post
soweit ich weiß lautet der code für scheidung so : &weddingreset....
bloß weiß ich nicht was danach hin kommt pls helft mir weiter
Ich meine sowieso, dass der Code bei den meisten Files buggy ist/nicht funktioniert.
11/23/2011 13:10 convent#2470
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:

PHP 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$resultSQLSRV_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_idSQLSRV_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$getOrderIdSQLSRV_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 />&copy;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");
bin für jede hilfe dankbar
11/23/2011 18:39 [Dev]DelTa#2471
Quote:
Originally Posted by convent View Post
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:

PHP 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$resultSQLSRV_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_idSQLSRV_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$getOrderIdSQLSRV_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 />&copy;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");
bin für jede hilfe dankbar
(!is_file("../includes/lang/$_POST[lang].language.useradmincp.php"))

Versuch mal

(!is_file("../includes/lang/$_POST['lang'].language.useradmincp.php"))
11/23/2011 21:50 Hassloch8#2472
Ich hab den server fertig ... die zonen starten... wie komme ich jetzt auf den server?
11/24/2011 11:57 Acceus#2473
Also ich hätte da mal 2.Fragen:

1.Wiie man eine nue Waffer erstellt und ins Spiel einbaut (bitte sehr genau erklären :D )
2.Wie ich den CD z.b. von Nova auf 0 setzen kann

schon mal vorher thx für jede Antwort^-^
11/24/2011 16:23 sunnyboystgt#2474
brauch mal hilfe map ist in wartung was mache ich falsch

ram ist genug da 10 GB 8 cores alles online nur map in wartung
11/24/2011 18:58 convent#2475
Quote:
Originally Posted by [Dev]DelTa View Post
(!is_file("../includes/lang/$_POST[lang].language.useradmincp.php"))

Versuch mal

(!is_file("../includes/lang/$_POST['lang'].language.useradmincp.php"))
macht nen neuen fehler