Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 23:32

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

Advertisement



Itemshop kauft immer 2 mal

Discussion on Itemshop kauft immer 2 mal within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
VłЯUS's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 190
Received Thanks: 75
Itemshop kauft immer 2 mal

Moin.

ja also..
wenn ich im IS was einkaufe bekomme ich die Sachen immer 2 mal ins Itemshop_lager!

zB ich kauf eine 66er Rüssi+9---> bekomm dann 2 ...>.<
Ich Benutze den Script von Hen!
Die HP : epic-world2 googlen und Metin2 Server Topliste - Statistik
dort steht dann die HP

Bitte um Hilfe!

Danke euch<3


€ :
<?PHP

if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {

if(isset($_GET['id']) && checkInt($_GET['id'])) {

$sqlCmd="SELECT vnum, preis, attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2 FROM ".SQL_HP_DB.".is_items WHERE id='".$_GET['id']."' LIMIT 1";
$sqlQry=mysql_query($sqlCmd,$sqlHp);
if(mysql_num_rows($sqlQry)==1) {

$getItem=mysql_fetch_object($sqlQry);
if($_SESSION['user_coins']>=$getItem->preis) {

$getGroesse = compareItems($getItem->vnum);
$belPos = checkPos($_SESSION['user_id']);
$possiblePos = findPos($belPos['islager'],$getGroesse['groesse']);
if(!empty($possiblePos)) {

$sqlCmd="UPDATE account.account SET coins=coins-".$getItem->preis." WHERE id='".$_SESSION['user_id']."' LIMIT 1";
$sqlQry=mysql_query($sqlCmd,$sqlServ);
$sqlLog="INSERT INTO ".SQL_HP_DB.".is_log (account_id,vnum,preis,zeitpunkt) VALUES ('".$_SESSION['user_id']."','".$getItem->vnum."','".$getItem->preis."','".$sqlZeit."')";
$qryLog=mysql_query($sqlLog,$sqlHp);
$sqlItem="INSERT INTO player.item
(owner_id,window,pos,count,vnum,attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2)
VALUES
('".$_SESSION['user_id']."','MALL','".$possiblePos[0]."','1','".$getItem->vnum."','".$getItem->attrtype0."', '".$getItem->attrvalue0."', '".$getItem->attrtype1."', '".$getItem->attrvalue1."', '".$getItem->attrtype2."', '".$getItem->attrvalue2."', '".$getItem->attrtype3."', '".$getItem->attrvalue3."', '".$getItem->attrtype4."', '".$getItem->attrvalue4."', '".$getItem->attrtype5."', '".$getItem->attrvalue5."', '".$getItem->attrtype6."', '".$getItem->attrvalue6."', '".$getItem->socket0."', '".$getItem->socket1."', '".$getItem->socket2."')";
$qryItem=mysql_query($sqlItem,$sqlServ) or die(mysql_error());
echo'<p class="meldung">Das item wurde erfolgreich gekauft. Sollte das Item nicht im Lager erscheinen, bitte umgehend bei einem Admin melden.</p>';

}
else {
echo'<p>Sie haben nicht genügend Platz in ihrem Itemshop-Lager. Ihr Guthaben wurde nicht verändert.</p>';
}

}
else {
echo'<p class="meldung">Sie haben nicht genug Coins.</p>';
}
}
else {
echo'<p class="meldung">Das angegebe Item existiert nicht.</p>';
}
}
else {
echo'<p class="meldung">Es wurde keine gültige ID eingegeben.</p>';
}
echo'<p><a href="javascript:history.back()">zurück</a></p>';
}
else {
echo'<p class="meldung">Sie müssen für diesen Bereich angemeldet sein.</p>';
}
?>
VłЯUS is offline  
Old 01/25/2011, 12:17   #2
 
elite*gold: 0
Join Date: Aug 2009
Posts: 2
Received Thanks: 0
#PUSH
Bitte um Hilfe!
Epic-World2 is offline  
Old 01/25/2011, 12:40   #3
 
gerald500's Avatar
 
elite*gold: 150
Join Date: Sep 2010
Posts: 1,049
Received Thanks: 275
da hast du einen fehler im script oder so würde ihn noch einmal überprüfen kenne den script von dem zwar nicht von dem du es hast aber fehler können immer passieren
gerald500 is offline  
Old 01/25/2011, 13:03   #4
 
VłЯUS's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 190
Received Thanks: 75
Ich finde aber nüx >.<
VłЯUS is offline  
Reply


Similar Threads Similar Threads
Itemshop - Kauft immer 2x
01/16/2011 - Metin2 Private Server - 4 Replies
Hallo - Ich habe ein Problem mit dem Itemshop Wenn ich mir ein Itemkaufe für 500 Coins - und wieder auf die hauptseite geh zieht es wieder 500 Coins ab - und man bekommt das Item 2 mal - Weißt einer warum ? wie kann man es wegmacht? Hier die is_buy.php <?PHP if(isset($_SESSION) && checkInt($_SESSION) && $_SESSION>=0) {
[Problem] ItemShop immer FAIL *.*
05/14/2010 - Metin2 Private Server - 9 Replies
Moin, also ich habe einmal den ItemShop von Matze + Lucy_girl Aber immer wen ich was kaufen will kommt: Kaufen fehlgeschlagen @ Deine neuer Coins Betrag ist : 8000 Da stimmt was nit :D @
Eventhelferin ist net da muss immer warum kennt jemand ne lösung damit sie immer da
12/19/2009 - Metin2 Private Server - 17 Replies
Leute ich hab ein problem ich hab bei eventhelferin paar items reingemacht aber eigentlich steht sie ja immer da wie der schmied und gemi aber die steht nicht mehr da schon von anfang an serve stand sie net da meine frage was muss ich machen damit sie immer da fest steht pls help gibs thx



All times are GMT +2. The time now is 23:32.


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.