Register for your free account! | Forgot your password?

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

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

Advertisement



Hilfe beim itemshop.php

Discussion on Hilfe beim itemshop.php within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2013
Posts: 33
Received Thanks: 6
Hilfe beim itemshop.php

Hallo liebe Elite freunde, und zwar habe ich das Problem das man wenn man sich eine Rüssi oder Waffe im IS kauft nur 2 Slots bekommt und man muss es auf dem Server auf dem Itementbugger Entbuggen damit man den 3 Slot bekommt.
Aus gewissen Gründen möchte ich das so haben das man Automatisch 3 Slots bekommt. Ich habe schon was hier gefunden, aber bekomme es nicht hin.

Wäre super wenn mir jemand das in mein Skript machen könnte, bin am verzweifeln und wende mich hoffnungsvoll an euch.

PHP Code:
<?PHP
  
if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0)
  {
  
?>

<?

/********************************************************
 *                                                         *
 * Item Mall Script                                     *
 *                                                         *
 * Script and Template coded by                            *
 *                                                         *
 * © xXDangerous 2011 - 2012 <>     *
 *                                                         *
 *******************************************************/

/*
 * Initialize Category that has to be displayed
 */
$Category     trim(mysql_real_escape_string(@$_REQUEST['cat']));
$BuyItemID    trim(mysql_real_escape_string(@$_REQUEST['buy']));

if( 
$Category or $Category or empty($Category) ) {
    
$Category 0;
}

/*
 * Check wether the User is logged in or not
 */
$IsLogged false;

if(isset(
$_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
    
$IsLogged true;
} else {
    
$IsLogged false;
}

/*
 * Initialize Item Values that shall be listed
 */
require("./pages/IS_ItemIDs.php");
require(
"./inc/daten.inc.php");

/*
 * Set Time Limit when purchasing more Item's in a row
 */
$CanBuy                    false;
$IPBlockExpire            0;

$CheckIPReload_SQL        "SELECT * FROM account.account_IS_reload WHERE ip = '".$_SERVER['REMOTE_ADDR']."'";
$CheckIPReload_Query    mysql_query($CheckIPReload_SQL);
$CheckIPReload_Rows        mysql_num_rows($CheckIPReload_Query);

    if( 
$CheckIPReload_Rows == ) {
        
$CheckIPReload_Result mysql_fetch_array($CheckIPReload_Query);
        
$IPBlockExpire    $CheckIPReload_Result['expire'];
    } else {
        
mysql_query("INSERT INTO account.account_IS_reload (ip, expire) VALUES ('".$_SERVER['REMOTE_ADDR']."', '".(time()+5)."')");
    }
    
    if( 
time() >= $IPBlockExpire ) {
        
$CanBuy    true;
    }

/*
 * Required Item Shop Functions
 */
function GetItemSize($ItemID) {
    
    
/*
     * Get Item Size
     */
    
$ItemDetails_SQL        "SELECT size FROM player.item_proto WHERE vnum = '$ItemID'";
    
$ItemDetails_Query        mysql_query($ItemDetails_SQL);
    
$ItemDetails_Result        mysql_fetch_array($ItemDetails_Query);
    
        
$ItemSize            $ItemDetails_Result['size'];
    
    return 
$ItemSize;
}

function 
CheckMall_ItemPosition($ItemID$UserID) {
    
    
$AvailablePosition;
    
    
/*
     * Get Item Details
     */
    
$ItemSize                GetItemSize($ItemID);
    
    
/*
     * Get Account's empty slots from Mall
     */
    
$Mall_EmptySlot_SQL        "SELECT * FROM player.item WHERE owner_id = '".$_SESSION['user_id']."' AND window = 'MALL'";
    
$Mall_EmptySlot_Query    mysql_query($Mall_EmptySlot_SQL);
    
$Mall_EmptySlot_Rows    mysql_num_rows($Mall_EmptySlot_Query);
    
    if( 
$Mall_EmptySlot_Rows ) {
        
$TakenSlotsArray                = array();
        
        while( 
$Mall_EmptySlot_Result mysql_fetch_array($Mall_EmptySlot_Query) ) {
            
            
$Position             $Mall_EmptySlot_Result['pos'];
            
$ItemVnum            $Mall_EmptySlot_Result['vnum'];
            
$PosItemSize        GetItemSize($ItemVnum);
            
            if( 
$PosItemSize == ) {
                
array_push($TakenSlotsArray$Position);
            } elseif( 
$PosItemSize == ) {
                
array_push($TakenSlotsArray$Position, ($Position+5));
            } elseif( 
$PosItemSize == ) {
                
array_push($TakenSlotsArray$Position, ($Position+5), ($Position+10));
            }
            
        }
        
        for( 
$pos 0$pos 45$pos++ ) {
            if( !
in_array($pos$TakenSlotsArray) ) {
                if( 
$ItemSize == ) {
                    
$AvailablePosition $pos;
                    break;
                } elseif( 
$ItemSize == ) {
                    if( !
in_array(($pos+5), $TakenSlotsArray) ) {
                        
$AvailablePosition $pos;
                        break;
                    }
                } elseif( 
$ItemSize == ) {
                    if( !
in_array(($pos+5), $TakenSlotsArray) ) {
                        if( !
in_array(($pos+10), $TakenSlotsArray) ) {
                            
$AvailablePosition $pos;
                            break;
                        }
                    }
                } else {
                    if( !
in_array(($pos), $TakenSlotsArray) ) {
                        
$AvailablePosition $pos;
                        break;
                    }
                }
            }
        }
        
        if( empty(
$AvailablePosition) or $AvailablePosition ) {
            
$AvailablePosition 0;
        }
        
    } else {
        
$AvailablePosition 0;
    }
    
    return 
$AvailablePosition;
}

/*
 * Start - Buy Item
 */
if( !empty($BuyItemID) and is_numeric($BuyItemID) ) {
    
    
/*
     * Error Message
     */
    
$ShowISBuyItemMSG             false;
    
$BuyItemMessage                "";
    
$ShowISBuyItemMSG_Success     false;
    
    
/*
     * Check if given Item ID is a valid Item Shop Item
     */
    
$IsItemShopItem false;
    
$CategoryID        0;
    
$BuyItemCost     0;
    
    foreach( 
$WeaponIDs As $WeaponID ) {
        if( 
$WeaponID[0] == $BuyItemID ) {
            
$IsItemShopItem true;
            
$CategoryID     0;
            
$BuyItemCost    $WeaponID[1];
        }
    }
    
    foreach( 
$ArmorIDs As $ArmorID ) {
        if( 
$ArmorID[0] == $BuyItemID ) {
            
$IsItemShopItem true;
            
$CategoryID     1;
            
$BuyItemCost    $ArmorID[1];
        }
    }
    
    foreach( 
$GearIDs As $GearID ) {
        if( 
$GearID[0] == $BuyItemID ) {
            
$IsItemShopItem true;
            
$CategoryID     2;
            
$BuyItemCost    $GearID[1];
        }
    }
    
    foreach( 
$UpgradeIDs As $UpgradeID ) {
        if( 
$UpgradeID[0] == $BuyItemID ) {
            
$IsItemShopItem true;
            
$CategoryID     3;
            
$BuyItemCost    $UpgradeID[1];
        }
    }
    
    foreach( 
$StonesIDs As $StoneID ) {
        if( 
$StoneID[0] == $BuyItemID ) {
            
$IsItemShopItem true;
            
$CategoryID     4;
            
$BuyItemCost    $StoneID[1];
        }
    }
    
    foreach( 
$SpecialWeaponsIDs As $SpecialWeaponsID ) {
        if( 
$SpecialWeaponsID[0] == $BuyItemID ) {
            
$IsItemShopItem true;
            
$CategoryID     5;
            
$BuyItemCost    $SpecialWeaponsID[1];
        }
    }
    
    if( 
$IsItemShopItem == true ) {
        
        
/*
         * Check if Coins are enough
         */
        
$Player_SQL     "SELECT * FROM account.account WHERE id = '".$_SESSION['user_id']."'";
        
$Player_Query     mysql_query($Player_SQL);
        
$Player_Result     = @mysql_fetch_array($Player_Query);
        
$Player_Coins    $Player_Result['coins'];
        
$Player_Login    $Player_Result['login'];
        
        if( 
$Player_Coins and $Player_Coins >= $BuyItemCost ) {
            
            
/*
             * Check if ItemMall Banker has enough space for Items
             */
            
$AvailablePosition CheckMall_ItemPosition($ItemID$_SESSION['user_id']);
            
            if( 
$AvailablePosition >= ) {
                
                
/*
                 * Take amount of Coins from User's Account
                 */
                
$PlayerNewCoins     $Player_Coins $BuyItemCost;
                
$TakeCoins_SQL         "UPDATE account.account 
                                          SET coins = '
$PlayerNewCoins'
                                        WHERE id = '"
.$_SESSION['user_id']."'";
                
                
$BuyItem_SQL         "SELECT * FROM player.item_proto WHERE vnum = '$BuyItemID'";
                
$BuyItem_Query         mysql_query($BuyItem_SQL);
                
$BuyItem_Result     mysql_fetch_array($BuyItem_Query);
                
                
$HP_ItemShop_Log_SQL "INSERT INTO ".SQL_HP_DB.".is_log 
                                            (account_id, vnum, preis, zeitpunkt) 
                                        VALUES 
                                            ('"
.$_SESSION['user_id']."',
                                            '"
.$BuyItemID."',
                                            '"
.$BuyItemCost."',
                                            '"
.$sqlZeit."')";
                
                
$Server_Item_SQL    "";
                
                
/*
                 * Item_Award Query
                 */
                
$Server_Item_SQL        "INSERT INTO player.item_award 
                                                    (pid, 
                                                    login, 
                                                    vnum, 
                                                    count, 
                                                    given_time, 
                                                    socket0, 
                                                    socket1, 
                                                    socket2, 
                                                    mall) 
                                                VALUES 
                                                    ('"
.$_SESSION['user_id']."',
                                                    '
$Player_Login', 
                                                    '"
.$BuyItem_Result['vnum']."',
                                                    '1',
                                                    NOW(),
                                                    '1',
                                                    '1',
                                                    '1',
                                                    '1')"
;
                
                if( 
$CanBuy == true ) {
                    if( 
mysql_query($TakeCoins_SQL) ) {
                        
mysql_query("UPDATE account.account_IS_reload SET expire = '".(time()+5)."' WHERE ip = '".$_SERVER['REMOTE_ADDR']."'") or die(mysql_error());
                        
mysql_query($Server_Item_SQL) or die(mysql_error());
                        
mysql_query($HP_ItemShop_Log_SQL) or die(mysql_error());
                        
                        
$ShowISBuyItemMSG_Success     true;
                        
$BuyItemMessage                .= "Das Item wurde erfolgreich gekauft. <br>Falls es nicht im Item Shop Lager auftauchen sollte, <br>so bitte melde es umgehend einem Admin.<br>Bitte nur Waffen und Rüssis aus dem Itemshop bei dem Itemdebugger neben dem Lager entbuggen.";
                        
                        
$Category                     $CategoryID;
                    } else {
                        
$ShowISBuyItemMSG     true;
                        
$BuyItemMessage        .= "Ein Fehler trat auf. Versuche es später erneut.<br>";
                    }
                } else {
                    
$ShowISBuyItemMSG     true;
                    
$BuyItemMessage        .= "Du kannst nicht so oft nacheinander kaufen!<br>";
                }
                    
            } else {
                
$ShowISBuyItemMSG     true;
                
$BuyItemMessage        .= "Du hast nicht genügend platz in deinem Item Shop Lager.<br>";
            }
            
        } else {
            
$ShowISBuyItemMSG     true;
            
$BuyItemMessage        .= "Du hast nicht genügend Coins.<br>";
        }
        
    }
}
/*
 * End - Buy Item
 */

/*
 * Set up ItemShop Categories
 */
$Categories         = array("Waffen""Rüstungen""Equipment""Upgrades""Steine""Besondere Waffen");
$CategoryName         $Categories[$Category];

/*
 * Refresh Player Coins
 */
$Player_SQL     "SELECT coins FROM account.account WHERE id = '".$_SESSION['user_id']."'";
$Player_Query     mysql_query($Player_SQL);
$Player_Result     = @mysql_fetch_array($Player_Query);
$Player_Coins    $Player_Result['coins'];

/*
 * Show ItemShop Buttons
 */
?>
<div id="content">
    <div class="con-top">
        Itemshop
    <div class="datum">Server</div>
    </div>
    <div class="con-mid">
        <div class="textbox">
<a href="index.php?s=itemshop&cat=0">
    <input type="submit" value="Waffen" name="submit" class="btn">
        </a>
<a href="index.php?s=itemshop&cat=1">
    <input type="submit" value="Rüstungen" name="submit" class="btn">
        </a>
<a href="index.php?s=itemshop&cat=2">
    <input type="submit" value="Equipment" name="submit" class="btn">
        </a>
<a href="index.php?s=itemshop&cat=3">
    <input type="submit" value="Nuetzliches" name="submit" class="btn">
        </a>

    <br>
<?

/*
 * Show Error Message
 */
if( @$ShowISBuyItemMSG == true and @$ShowISBuyItemMSG_Success == false ) {
?>
<div id="content">
    <div class="postui2 text-title"></div>
    <div class="postui2 text-con">
        <div class="con-wrap">

            <div id="fuibar">            
                <div class="fuibarui fui-con">
                    <div class="fui-wrap">
                        <p class="meldung">Folgende Fehler trat auf: <br>
                        <? echo $BuyItemMessage?></p>
                    </div>
                </div> 
            
                <div class="fuibarui fui-end"></div>
            </div>

        </div>
    </div> 
    <div class="postui2 text-end"></div>
</div>
<?
} elseif( @$ShowISBuyItemMSG == false and @$ShowISBuyItemMSG_Success == true ) {
?>
<div id="content">
    <div class="postui2 text-title"></div>
    <div class="postui2 text-con">
        <div class="con-wrap">

            <div id="fuibar">            
                <div class="fuibarui fui-con">
                    <div class="fui-wrap">
                        <p class="meldung"><? echo $BuyItemMessage?></p>
                    </div>
                </div> 
            
                <div class="fuibarui fui-end"></div>
            </div>

        </div>
    </div> 
    <div class="postui2 text-end"></div>
</div>
<?
}
?>

<!-- Begin ItemShop Item Listing -->
<div id="content">
<?
if( $IsLogged == true ) {
/*
 * Create Item List
 */

$ItemValuesArray NULL;

/*
 * Select Item Values Category
 */
switch( $Category ) {
    case 
0:
        
$ItemValuesArray $WeaponIDs;
        break;
        
    case 
1:
        
$ItemValuesArray $ArmorIDs;
        break;
        
    case 
2:
        
$ItemValuesArray $GearIDs;
        break;
        
    case 
3:
        
$ItemValuesArray $UpgradeIDs;
        break;
        
    case 
4:
        
$ItemValuesArray $StonesIDs;
        break;
        
    case 
5:
        
$ItemValuesArray $SpecialWeaponsIDs;
        break;
}

foreach( 
$ItemValuesArray As $ItemID ) {
    
$Array_ItemID        $ItemID[0];
    
$Array_ItemCost        $ItemID[1];
    
$Array_ItemAmount    $ItemID[2];
    
$Array_ItemDesc        $ItemID[3];
    
    
$Item_SQL             "SELECT * FROM player.item_proto WHERE vnum = '$Array_ItemID'";
    
$Item_Query         mysql_query($Item_SQL);
    
$Item_Result         mysql_fetch_array($Item_Query);
    
    
$ItemName            $Item_Result['locale_name'];
    
$ItemCost            $Array_ItemCost;
    
    
$ItemDesc            "";
    
    switch( 
$Category ) {
        case 
0// Weapons
            
$ItemAttack_Increment     $Item_Result['value5'];
            
            
$ItemAttack_AP_Min        $Item_Result['value3'] + $ItemAttack_Increment;
            
$ItemAttack_AP_Max        $Item_Result['value4'] + $ItemAttack_Increment;
            
$ItemAttack_MA_Min        $Item_Result['value1'] + $ItemAttack_Increment;
            
$ItemAttack_MA_Max         $Item_Result['value2'] + $ItemAttack_Increment;
            
            
$Item_LimitType0        $Item_Result['limittype0'];
            
$Item_LimitValue0        $Item_Result['limitvalue0'];
            
$Item_LimitType1        $Item_Result['limittype1'];
            
$Item_LimitValue1        $Item_Result['limitvalue1'];
            
            
$Item_Applytype0        $Item_Result['applytype0'];
            
$Item_Applyvalue0        $Item_Result['applyvalue0'];
            
$Item_Applytype1        $Item_Result['applytype1'];
            
$Item_Applyvalue1        $Item_Result['applyvalue1'];
            
$Item_Applytype2        $Item_Result['applytype2'];
            
$Item_Applyvalue2        $Item_Result['applyvalue2'];
            
            
$Item_AddOntype            $Item_Result['addon_type'];
            
            
$Item_Antiflag            $Item_Result['antiflag'];
            
$Item_CharRace            "Für ";
            
            if( 
$Item_LimitType0 != ) {
                
$ItemDesc            .= "Level: " $Item_LimitValue0 "<br>";
            }
            
            if( 
$Item_LimitType1 != ) {
                
$ItemDesc            .= "Limit: " $itemBoni[$Item_LimitType1] . " " $Item_LimitValue1 "<br>";
            }
            
            
$ItemDesc                .=     "Angriffswert $ItemAttack_AP_Min - $ItemAttack_AP_Max <br>" .
                                        
"Magischer Angriffswert $ItemAttack_MA_Min - $ItemAttack_MA_Max";
            
            if( 
$Item_Applytype0 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype0] . " " $Item_Applyvalue0;
            }
            
            if( 
$Item_Applytype1 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype1] . " " $Item_Applyvalue1;
            }
            
            if( 
$Item_Applytype2 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype2] . " " $Item_Applyvalue2;
            }
            
            if( 
$Item_AddOntype == -or $Item_AddOntype == "-1" ) {
                
$ItemDesc            .= "<br>Waffe besitzt DSS und FKS";
            }
            
            
$ItemDesc                .= "";
            
            if( 
$Item_Antiflag == 32 or $Item_Antiflag == 288 ) {
                
$Item_CharRace        .= "Krieger, Ninja, Sura";
            } elseif( 
$Item_Antiflag == 44 or $Item_Antiflag == 300 ) {
                
$Item_CharRace        .= "Sura";
            } elseif( 
$Item_Antiflag == 52 or $Item_Antiflag == 308 ) {
                
$Item_CharRace        .= "Ninja";
            } elseif( 
$Item_Antiflag == 56 or $Item_Antiflag == 312 ) {
                
$Item_CharRace        .= "Krieger";
            } elseif( 
$Item_Antiflag == 28 or $Item_Antiflag == 284 ) {
                
$Item_CharRace        .= "Schamane";
            }
            
            
$ItemDesc                .= "<br>" $Item_CharRace;
            
            if( !empty(
$Array_ItemDesc) ) {
                
$ItemDesc            .= "<br>Sonstiges: $Array_ItemDesc";
            }
            
            break;
        
        case 
1// Armors
            
$Armor_BaseAC            $Item_Result['value1'];
            
$Armor_ACIncrement        = ($Item_Result['value5'] == 0) ? $Item_Result['value5'];
            
            
$TotalAC                = ($Armor_ACIncrement) + $Armor_BaseAC;
            
            
$Item_Applytype0        $Item_Result['applytype0'];
            
$Item_Applyvalue0        $Item_Result['applyvalue0'];
            
$Item_Applytype1        $Item_Result['applytype1'];
            
$Item_Applyvalue1        $Item_Result['applyvalue1'];
            
$Item_Applytype2        $Item_Result['applytype2'];
            
$Item_Applyvalue2        $Item_Result['applyvalue2'];
            
            
$Item_LimitType0        $Item_Result['limittype0'];
            
$Item_LimitValue0        $Item_Result['limitvalue0'];
            
$Item_LimitType1        $Item_Result['limittype1'];
            
$Item_LimitValue1        $Item_Result['limitvalue1'];
            
            
$Item_Antiflag            $Item_Result['antiflag'];
            
$Item_Wearflag            $Item_Result['wearflag'];
            
$Item_CharRace            "Für ";
            
            if( 
$Item_Antiflag == 56 or $Item_Antiflag == 312 ) {
                
$Item_CharRace        .= "Krieger";
            } elseif( 
$Item_Antiflag == 52 or $Item_Antiflag == 308 ) {
                
$Item_CharRace        .= "Ninja";
            } elseif( 
$Item_Antiflag == 44 or $Item_Antiflag == 300 ) {
                
$Item_CharRace        .= "Sura";
            } elseif( 
$Item_Antiflag == 28 or $Item_Antiflag == 284 ) {
                
$Item_CharRace        .= "Schamane";
            } elseif( 
$Item_Wearflag == 256 and $Item_Antiflag == ) {
                
$Item_CharRace        .= "alle Klassen";
            }
            
            if( 
$Item_LimitType0 != ) {
                
$ItemDesc            .= "Level: " $Item_LimitValue0 "<br>";
            }
            
            if( 
$Item_LimitType1 != ) {
                
$ItemDesc            .= "Limit: " $itemBoni[$Item_LimitType1] . " " $Item_LimitValue1 "<br>";
            }
            
            
$ItemDesc                .= "Verteidigung $TotalAC";
            
            if( 
$Item_Applytype0 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype0] . " " $Item_Applyvalue0;
            }
            
            if( 
$Item_Applytype1 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype1] . " " $Item_Applyvalue1;
            }
            
            if( 
$Item_Applytype2 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype2] . " " $Item_Applyvalue2;
            }
            
            
$ItemDesc                .= "<br>" $Item_CharRace;
            
            if( !empty(
$Array_ItemDesc) ) {
                
$ItemDesc            .= "<br>Sonstiges: $Array_ItemDesc";
            }
            
            break;
        
        case 
2// Gear
            
$Item_Applytype0        $Item_Result['applytype0'];
            
$Item_Applyvalue0        $Item_Result['applyvalue0'];
            
$Item_Applytype1        $Item_Result['applytype1'];
            
$Item_Applyvalue1        $Item_Result['applyvalue1'];
            
$Item_Applytype2        $Item_Result['applytype2'];
            
$Item_Applyvalue2        $Item_Result['applyvalue2'];
            
            
$Item_LimitType0        $Item_Result['limittype0'];
            
$Item_LimitValue0        $Item_Result['limitvalue0'];
            
$Item_LimitType1        $Item_Result['limittype1'];
            
$Item_LimitValue1        $Item_Result['limitvalue1'];
            
            if( 
$Item_LimitType0 != ) {
                
$ItemDesc            .= "Level: " $Item_LimitValue0 "<br>";
            }
            
            if( 
$Item_LimitType1 != ) {
                
$ItemDesc            .= "Limit: " $itemBoni[$Item_LimitType1] . " " $Item_LimitValue1 "<br>";
            }
            
            if( 
$Item_Applytype0 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype0] . " " $Item_Applyvalue0;
            }
            
            if( 
$Item_Applytype1 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype1] . " " $Item_Applyvalue1;
            }
            
            if( 
$Item_Applytype2 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype2] . " " $Item_Applyvalue2;
            }
            
            if( !empty(
$Array_ItemDesc) ) {
                
$ItemDesc            .= "<br>Sonstiges: $Array_ItemDesc";
            }
            
            break;
        
        case 
3// Upgrades
            
$ItemDesc                .= "Anzahl: $Array_ItemAmount <br>";
            
            if( !empty(
$Array_ItemDesc) ) {
                
$ItemDesc            .= "<br>Sonstiges: $Array_ItemDesc";
            }
            
            break;
        
        case 
4// Stones
            
$Item_Applytype0        $Item_Result['applytype0'];
            
$Item_Applyvalue0        $Item_Result['applyvalue0'];
            
$Item_Applytype1        $Item_Result['applytype1'];
            
$Item_Applyvalue1        $Item_Result['applyvalue1'];
            
$Item_Applytype2        $Item_Result['applytype2'];
            
$Item_Applyvalue2        $Item_Result['applyvalue2'];
            
            
$ItemDesc                .= "<br>Anzahl: $Array_ItemAmount <br>";
            
            if( !empty(
$Array_ItemDesc) ) {
                
$ItemDesc            .= "<br>Sonstiges: $Array_ItemDesc";
            }
            
            if( 
$Item_Applytype0 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype0] . " " $Item_Applyvalue0;
            }
            
            if( 
$Item_Applytype1 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype1] . " " $Item_Applyvalue1;
            }
            
            if( 
$Item_Applytype2 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype2] . " " $Item_Applyvalue2;
            }
            
            break;
        
        case 
5// Weapons
            
$ItemAttack_Increment     $Item_Result['value5'];
            
            
$ItemAttack_AP_Min        $Item_Result['value3'] + $ItemAttack_Increment;
            
$ItemAttack_AP_Max        $Item_Result['value4'] + $ItemAttack_Increment;
            
$ItemAttack_MA_Min        $Item_Result['value1'] + $ItemAttack_Increment;
            
$ItemAttack_MA_Max         $Item_Result['value2'] + $ItemAttack_Increment;
            
            
$Item_LimitType0        $Item_Result['limittype0'];
            
$Item_LimitValue0        $Item_Result['limitvalue0'];
            
$Item_LimitType1        $Item_Result['limittype1'];
            
$Item_LimitValue1        $Item_Result['limitvalue1'];
            
            
$Item_Applytype0        $Item_Result['applytype0'];
            
$Item_Applyvalue0        $Item_Result['applyvalue0'];
            
$Item_Applytype1        $Item_Result['applytype1'];
            
$Item_Applyvalue1        $Item_Result['applyvalue1'];
            
$Item_Applytype2        $Item_Result['applytype2'];
            
$Item_Applyvalue2        $Item_Result['applyvalue2'];
            
            
$Item_AddOntype            $Item_Result['addon_type'];
            
            
$Item_Antiflag            $Item_Result['antiflag'];
            
$Item_CharRace            "Für ";
            
            if( 
$Item_LimitType0 != ) {
                
$ItemDesc            .= "Level: " $Item_LimitValue0 "<br>";
            }
            
            if( 
$Item_LimitType1 != ) {
                
$ItemDesc            .= "Limit: " $itemBoni[$Item_LimitType1] . " " $Item_LimitValue1 "<br>";
            }
            
            
$ItemDesc                .=     "Angriffswert $ItemAttack_AP_Min - $ItemAttack_AP_Max <br>" .
                                        
"Magischer Angriffswert $ItemAttack_MA_Min - $ItemAttack_MA_Max";
            
            if( 
$Item_Applytype0 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype0] . " " $Item_Applyvalue0;
            }
            
            if( 
$Item_Applytype1 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype1] . " " $Item_Applyvalue1;
            }
            
            if( 
$Item_Applytype2 != ) {
                
$ItemDesc            .= "<br>" $itemBoni[$Item_Applytype2] . " " $Item_Applyvalue2;
            }
            
            if( 
$Item_AddOntype == -or $Item_AddOntype == "-1" ) {
                
$ItemDesc            .= "<br>Waffe besitzt DSS und FKS";
            }
            
            
$ItemDesc                .= "";
            
            if( 
$Item_Antiflag == 32 or $Item_Antiflag == 288 ) {
                
$Item_CharRace        .= "Krieger, Ninja, Sura";
            } elseif( 
$Item_Antiflag == 44 or $Item_Antiflag == 300 ) {
                
$Item_CharRace        .= "Sura";
            } elseif( 
$Item_Antiflag == 52 or $Item_Antiflag == 308 ) {
                
$Item_CharRace        .= "Ninja";
            } elseif( 
$Item_Antiflag == 56 or $Item_Antiflag == 312 ) {
                
$Item_CharRace        .= "Krieger";
            } elseif( 
$Item_Antiflag == 28 or $Item_Antiflag == 284 ) {
                
$Item_CharRace        .= "Schamane";
            }
            
            
$ItemDesc                .= "<br>" $Item_CharRace;
            
            if( !empty(
$Array_ItemDesc) ) {
                
$ItemDesc            .= "<br>Sonstiges: $Array_ItemDesc";
            }
            
            break;
    }

?>
    <div class="postui2 text-title"></div>
    <div class="postui2 text-con">
        <div class="con-wrap">

            <div id="fuibar">            
                <div class="fuibarui fui-title">
                    <h2><? echo $ItemName?></h2>
                </div>
                
                <div class="fuibarui fui-con">
                    <div class="fui-wrap">
                        <table style="border: 0px;" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="center" width="110" valign="middle">
                                    <img src="is_img/<? echo $Array_ItemID?>.gif" title="<? echo $ItemName?>" alt="<? echo $ItemName?>">
                                </td>
                                <td style="padding: 0px 10px;" align="left" valign="top">
                                    <? echo $ItemDesc?>
                                </td>
                                <td width="100" align="center" style="border-left: 1px groove #FFF;">
                                    Kosten <br>
                                    <? echo $Array_ItemCost?> Coins <br><br>
                                    <span class="btn">
                                        <input type="button" name="buy" value="Kaufen" class="btn" onclick="javascript: window.location.href = '<? echo $_SERVER['PHP_SELF']; ?>?s=itemshop&buy=<? echo $Array_ItemID?>&rand=<? echo $RandomSID?>'; this.style.display = 'none';">
                                    </span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div> 
            
                <div class="fuibarui fui-end"></div>
            </div>
        </div>
    </div>
<?
}

} else {
?>
    <div class="postui2 text-title"></div>
    <div class="postui2 text-con">
        <div class="con-wrap">

            <div id="fuibar">            
                <div class="fuibarui fui-con">
                    <div class="fui-wrap">
                        <p class="meldung">Das Item Shop ist nur für angemeldete Spieler betretbar.</p>
                    </div>
                </div> 
            
                <div class="fuibarui fui-end"></div>
            </div>
        </div>
    </div>
<?
}
?>
    <div class="postui2 text-end"></div>
</div>

    <?php
 
}
  else {
    echo
'<p class="meldung">Sie müssen für diesen Bereich angemeldet sein.</p>';
  }
?>
Ich wäre euch dankbar.
[SA]Ray is offline  
Old 06/30/2013, 21:06   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 1,183
Received Thanks: 746
Ich versteh nicht was du meinst?

Wie jetzt 2 Slots/3slots? Bitte genauere erklärung.
dopeness' is offline  
Old 06/30/2013, 21:07   #3
 
elite*gold: 0
Join Date: Jun 2013
Posts: 32
Received Thanks: 22
ADD mich in Skype.
.Incred[i]ble' is offline  
Old 06/30/2013, 21:18   #4
 
elite*gold: 0
Join Date: Apr 2013
Posts: 33
Received Thanks: 6
Also wenn man sich eine Rüssi/Waffe im Itemshop kauft hat man 2 Freis Slots für Steine, die soll aber 3 haben. Da liegt mein Problem.
[SA]Ray is offline  
Old 07/01/2013, 23:40   #5
 
elite*gold: 0
Join Date: Apr 2013
Posts: 33
Received Thanks: 6
Push
[SA]Ray is offline  
Reply


Similar Threads Similar Threads
Hilfe beim itemshop.php
06/30/2013 - Metin2 PServer Advertising - 4 Replies
Sorry falscher bereicht
CRC Error beim klick auf Itemshop
08/29/2011 - WarRock - 4 Replies
^Titel.. Ich bekomme einen CRC Error beim klick auf den Itemshop. Ich benutze keine Hacks! Screen: http://www.fotos-hochladen.net/uploads/lolwato4b3 t65mdy.png
[Bug]Beim Itemshop kauf!
07/01/2010 - WarRock - 11 Replies
Huhu wenn ich mir uf gamersfirst meine Waffen kaufen will kommt da immer ein Fehler , schaut euch ihn einfach selber an http://img580.imageshack.us/img580/6940/unbenannt xn.png



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


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.