Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 08:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help me!]Items Über hamachi ip Homepage erstellen

Discussion on [Help me!]Items Über hamachi ip Homepage erstellen within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
merlin22081995's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 18
Received Thanks: 1
Question [Help]Items Über hamachi ip Homepage erstellen

Kann jemand das script so umschreiben dass man, über die Homepage Items in die Item_proto (serverside) einbauen kann??


Code:
<?PHP
  if($_SESSION['user_admin']>=$adminRights['Itemerstellung']) {
?>
<h2>Admin - Item erstellen</h2>
<?PHP
  
    if(isset($_POST['submit']) && $_POST['submit']=="erstellen") {
    
      if(checkInt($_POST['aid'])) {
        $sqlCmd = "SELECT COUNT(*) AS checkIn FROM account.account WHERE id='".$_POST['aid']."' LIMIT 1";
        $getCount = mysql_fetch_object(mysql_query($sqlCmd,$sqlServ));
        if($getCount->checkIn==1) {
          
          if(!empty($_POST['window']) && checkInt($_POST['position']) && !empty($_POST['itemtyp']) && checkInt($_POST['stufe']) && checkInt($_POST['stapelmenge'])) {
            if(!empty($_POST['vnum']) && checkInt($_POST['vnum'])) {
              $avnum=$_POST['vnum'];
            }
            else {
              if($_POST['itemtyp']>=11971 && $_POST['itemtyp']<=11974) {
                $_POST['stufe']=0;
              }
              $avnum=$_POST['itemtyp']+$_POST['stufe'];
            }
            $sqlCmd="INSERT INTO player.item 
              (owner_id,window,pos,count,vnum,socket0,socket1,socket2,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6)
              VALUES
              ('".$_POST['aid']."','".$_POST['window']."','".$_POST['position']."','".$_POST['stapelmenge']."','".$avnum."','".$_POST['socket0']."','".$_POST['socket1']."','".$_POST['socket2']."','".$_POST['boni0']."','".$_POST['boniv0']."','".$_POST['boni1']."','".$_POST['boniv1']."','".$_POST['boni2']."','".$_POST['boniv2']."','".$_POST['boni3']."','".$_POST['boniv3']."','".$_POST['boni4']."','".$_POST['boniv4']."','".$_POST['boni5']."','".$_POST['boniv5']."','".$_POST['boni6']."','".$_POST['boniv6']."')";
            $sqlQry = mysql_query($sqlCmd,$sqlServ) or die(mysql_error());
            if($sqlQry) {
              echo'<p class="meldung">Das Item wurde erfolgreich eingetragen.</p>';
            }
          }
          else { echo'<p class="meldung">Erstellen fehlgeschlagen. Sie haben falsche Daten eingegeben.</p>'; }          
        }
        else { echo'<p class="meldung">Keine vorhandene Account-ID.</p>'; }
      }
      else { echo'<p class="meldung">Keine valide Account-ID.</p>'; }
    
    }
  
  
  
?>
<form action="index.php?s=admin&a=create_item" method="POST">
  <table>
    <tr>
      <th class="topLine">Für AccountID:</th>
      <td class="tdunkel"><input type="text" name="aid" size="11" value="<?PHP echo $_GET['acc']; ?>" maxlength="11"/></td>
    </tr>
    <tr>
      <th class="topLine">Ort</th>
      <td class="thell">
        <select name="window">
          <option value="SAFEBOX">Lager</option>
          <option value="MALL">IS-Lager</option>
          <!-- <option value="INVENTORY">Inventar</option> -->
        </select>
      </td>
    </tr>
    <tr>
      <th class="topLine">Position (Max. 44)</th>
      <td class="tdunkel"><input name="position" type="text" size="20" value="0" maxlength="20"/></td>
    </tr>
    <tr>
      <th class="topLine">Item:</th>
      <td class="thell">
          <?PHP
            listItems();
          ?>
        <select name="stufe">
          <?PHP 
            for($i=0;$i<10;$i++) {
            
              echo "<option value=\"$i\">+$i</option>";
            
            }
          ?>
        </select>
        oder vnum 
        <input type="text" name="vnum" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine">Menge (bei stapelbaren Items):</th>
      <td class="tdunkel"><input type="text" name="stapelmenge" size="20" maxlength="20" value="1"/></td>
    </tr>
    <tr>
      <th class="topLine">Stein #1:</th>
      <td class="thell">
        <select name="socket0">
          <?PHP
            foreach($itemSteine AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
      </td>
    </tr>
    <tr>
      <th class="topLine">Stein #2:</th>
      <td class="tdunkel">
        <select name="socket1">
          <?PHP
            foreach($itemSteine AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
      </td>
    </tr>
    <tr>
      <th class="topLine">Stein #3:</th>
      <td class="thell">
        <select name="socket2">
          <?PHP
            foreach($itemSteine AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
      </td>
    </tr>
    <tr>
      <th class="topLine">Bonus (Bonus, Wert) #1:</th>
      <td class="tdunkel">
        <select name="boni0">
          <?PHP
            foreach($itemBoni AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
        <input type="text" name="boniv0" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine">Bonus (Bonus, Wert) #2:</th>
      <td class="thell">
        <select name="boni1">
          <?PHP
            foreach($itemBoni AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
        <input type="text" name="boniv1" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine">Bonus (Bonus, Wert) #3:</th>
      <td class="tdunkel">
        <select name="boni2">
          <?PHP
            foreach($itemBoni AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
        <input type="text" name="boniv2" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine">Bonus (Bonus, Wert) #4:</th>
      <td class="thell">
        <select name="boni3">
          <?PHP
            foreach($itemBoni AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
        <input type="text" name="boniv3" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine">Bonus (Bonus, Wert) #5:</th>
      <td class="tdunkel">
        <select name="boni4">
          <?PHP
            foreach($itemBoni AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
        <input type="text" name="boniv4" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine">Bonus (Bonus, Wert) #6:</th>
      <td class="thell">
        <select name="boni5">
          <?PHP
            foreach($itemBoni AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
        <input type="text" name="boniv5" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine">Bonus (Bonus, Wert) #7:</th>
      <td class="tdunkel">
        <select name="boni6">
          <?PHP
            foreach($itemBoni AS $aKey => $aValue) {
              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>
        <input type="text" name="boniv6" size="6" maxlength="6"/>
      </td>
    </tr>
    <tr>
      <th class="topLine" colspan="2" style="text-align:center;"><input type="submit" value="erstellen" name="submit"/> &bull; <input type="reset" value="reset"/></th>
    </tr>
  </table>
</form>
<?PHP
  }
  else {
    echo'<p class="meldung">Kein Zugriff auf diesen Bereich!</p>';
  }
?>
merlin22081995 is offline  
Old 03/31/2011, 14:08   #2
 
elite*gold: 0
Join Date: Sep 2010
Posts: 22
Received Thanks: 0
ich werds mal versuchen hin zu bekommen ich pn dich wenn ichs hab!
kingstylo010 is offline  
Old 03/31/2011, 14:12   #3
 
elite*gold: 0
Join Date: Sep 2010
Posts: 22
Received Thanks: 0
das ging ja leicht einfach die listItems(); in line 68 glaube ich raus nehmen das sieht dann so aus habs aber noch net getestet xD
--------------------------------------------------

<?PHP
if($_SESSION['user_admin']>=$adminRights['Itemerstellung']) {
?>
<h2>Admin - Item erstellen</h2>
<?PHP

if(isset($_POST['submit']) && $_POST['submit']=="erstellen") {

if(checkInt($_POST['aid'])) {
$sqlCmd = "SELECT COUNT(*) AS checkIn FROM account.account WHERE id='".$_POST['aid']."' LIMIT 1";
$getCount = mysql_fetch_object(mysql_query($sqlCmd,$sqlServ));
if($getCount->checkIn==1) {

if(!empty($_POST['window']) && checkInt($_POST['position']) && !empty($_POST['itemtyp']) && checkInt($_POST['stufe']) && checkInt($_POST['stapelmenge'])) {
if(!empty($_POST['vnum']) && checkInt($_POST['vnum'])) {
$avnum=$_POST['vnum'];
}
else {
if($_POST['itemtyp']>=11971 && $_POST['itemtyp']<=11974) {
$_POST['stufe']=0;
}
$avnum=$_POST['itemtyp']+$_POST['stufe'];
}
$sqlCmd="INSERT INTO player.item
(owner_id,window,pos,count,vnum,socket0,socket1,so cket2,attrtype0,attrvalue0,attrtype1,attrvalue1,at trtype2,attrvalue2,attrtype3,attrvalue3,attrtype4, attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalu e6)
VALUES
('".$_POST['aid']."','".$_POST['window']."','".$_POST['position']."','".$_POST['stapelmenge']."','".$avnum."','".$_POST['socket0']."','".$_POST['socket1']."','".$_POST['socket2']."','".$_POST['boni0']."','".$_POST['boniv0']."','".$_POST['boni1']."','".$_POST['boniv1']."','".$_POST['boni2']."','".$_POST['boniv2']."','".$_POST['boni3']."','".$_POST['boniv3']."','".$_POST['boni4']."','".$_POST['boniv4']."','".$_POST['boni5']."','".$_POST['boniv5']."','".$_POST['boni6']."','".$_POST['boniv6']."')";
$sqlQry = mysql_query($sqlCmd,$sqlServ) or die(mysql_error());
if($sqlQry) {
echo'<p class="meldung">Das Item wurde erfolgreich eingetragen.</p>';
}
}
else { echo'<p class="meldung">Erstellen fehlgeschlagen. Sie haben falsche Daten eingegeben.</p>'; }
}
else { echo'<p class="meldung">Keine vorhandene Account-ID.</p>'; }
}
else { echo'<p class="meldung">Keine valide Account-ID.</p>'; }

}



?>
<form action="index.php?s=admin&a=create_item" method="POST">
<table>
<tr>
<th class="topLine">Für AccountID:</th>
<td class="tdunkel"><input type="text" name="aid" size="11" value="<?PHP echo $_GET['acc']; ?>" maxlength="11"/></td>
</tr>
<tr>
<th class="topLine">Ort</th>
<td class="thell">
<select name="window">
<option value="SAFEBOX">Lager</option>
<option value="MALL">IS-Lager</option>
<!-- <option value="INVENTORY">Inventar</option> -->
</select>
</td>
</tr>
<tr>
<th class="topLine">Position (Max. 44)</th>
<td class="tdunkel"><input name="position" type="text" size="20" value="0" maxlength="20"/></td>
</tr>
<tr>
<th class="topLine">Item:</th>
<td class="thell">

<select name="stufe">
<?PHP
for($i=0;$i<10;$i++) {

echo "<option value=\"$i\">+$i</option>";

}
?>
</select>
oder vnum
<input type="text" name="vnum" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Menge (bei stapelbaren Items):</th>
<td class="tdunkel"><input type="text" name="stapelmenge" size="20" maxlength="20" value="1"/></td>
</tr>
<tr>
<th class="topLine">Stein #1:</th>
<td class="thell">
<select name="socket0">
<?PHP
foreach($itemSteine AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<th class="topLine">Stein #2:</th>
<td class="tdunkel">
<select name="socket1">
<?PHP
foreach($itemSteine AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<th class="topLine">Stein #3:</th>
<td class="thell">
<select name="socket2">
<?PHP
foreach($itemSteine AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #1:</th>
<td class="tdunkel">
<select name="boni0">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv0" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #2:</th>
<td class="thell">
<select name="boni1">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv1" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #3:</th>
<td class="tdunkel">
<select name="boni2">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv2" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #4:</th>
<td class="thell">
<select name="boni3">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv3" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #5:</th>
<td class="tdunkel">
<select name="boni4">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv4" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #6:</th>
<td class="thell">
<select name="boni5">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv5" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #7:</th>
<td class="tdunkel">
<select name="boni6">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv6" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine" colspan="2" style="text-align:center;"><input type="submit" value="erstellen" name="submit"/> &bull; <input type="reset" value="reset"/></th>
</tr>
</table>
</form>
<?PHP
}
else {
echo'<p class="meldung">Kein Zugriff auf diesen Bereich!</p>';
}
?>
kingstylo010 is offline  
Reply


Similar Threads Similar Threads
Könnte mir jmd über Teamviewer einen Server (kann auch Hamachi sein) erstellen??
09/12/2012 - Metin2 Private Server - 13 Replies
Suche eine erfahrene Person die bereit wäre mir einen P server über Teamviewer zu erstellen^^ wäre echt nett =))
[HowTo]Homepage über Hamachi
07/10/2012 - Metin2 PServer Designs, Websites & Scripts - 10 Replies
.....
Homepage über Appserv und Hamachi
08/31/2010 - Main - 0 Replies
Hi, ich hatte ein Tut gefunden wie man das macht. Als erstes habe ich AppServ installiert genau wie in der Anleitung Zweitens hab ich meine Hamachi Ip in den Browser eingegeben und dann kamm diese Homepage HomePage Drittens habe ich mir mit "Origo" eine Homepage erstellt und in den C:\AppServ\www reinkopiert und alles neu gestartet aber er bleibt immer noch bei der Homepage Was mache ich Falsch ???
Hamachi server erstellen Operation timed out hilfe über teamreviewer
06/30/2010 - Metin2 Private Server - 8 Replies
Hallo liebe Pvpler brauche ehct eure hilfe....habe es nun mit Raven und Profizocker94 serverfiles probiert ...Profizocker94 kann man in die tonne werfen und Raven hatte bisher gefunkt also bis operation timed out nun läd er ständig neu ohne ende.... wäre euch echt dankbar wen ihr mir weiterhelfen könnt..... Wen mir jemand per teamreviewer helfen will dan please ne pn oder hier reinposten.....schreib euch dan die daten. Habe auch Msn: [email protected]
Brauche Hilfe beim erstellen eines Privatservers der über Hamachi läuft
12/19/2009 - Metin2 Private Server - 4 Replies
Wie schon im Titel steht brauche ich Hilfe von euch Liebe Com. http://www.elitepvpers.com/forum/metin2-pserver-gu ides-strategies/342850-p-server-erstellen-etc-all- inc.html, unter diesem Link habe ich beide Toturials Probiert. Nach dem einstellen bei sysinstall in Vpc muss ich ja /etc/rc.d/netif restart eingeben und dann den server über FTERM starten. Wenn ich den server über FTERM starten will kommt immer Connection refused, und wenn ich dann bei Vps ./start eintippe kommt immer bla bla bla No...



All times are GMT +2. The time now is 08:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.