Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 03:26

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

Advertisement



[Problem] ItemShop CMS von Hen. alles auf POS 0 !!

Discussion on [Problem] ItemShop CMS von Hen. alles auf POS 0 !! within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1


 
SnackWell's Avatar
 
elite*gold: 127
Join Date: Jan 2011
Posts: 199
Received Thanks: 55
[Problem] ItemShop CMS von Hen. alles auf POS 0 !!

Gelöst
SnackWell is offline  
Old 10/31/2012, 11:57   #2
 
elite*gold: 0
Join Date: Oct 2010
Posts: 16
Received Thanks: 4
Mhh ich versuche dir dabei zu helfen, weiß aber nicht ob ich das hinbekomme ;O müssten uns in verbindung setzen pn
Florianx is offline  
Old 10/31/2012, 12:06   #3
 
elite*gold: 0
Join Date: Jun 2008
Posts: 105
Received Thanks: 20
Es wird wohl an den Funktionen liegen:
PHP Code:
              $getGroesse compareItems($getItem->vnum);
              
$belPos checkPos($_SESSION['user_id']);
              
$possiblePos findPos($belPos['islager'],$getGroesse['groesse']); 
Die liegen natürlich in der functions.inc.

Ich vermute, dass bei der Berechnung mittels findPos was nicht stimmt und hier immer 0 rauskommt. Eigentlich sollte ein Array rauskommen und mit $possiblePos[0] wird beim Insert das erste freie Feld angesprochen und da hakt es wohl. Kenne das Script aber nicht und habe leider nicht die Zeit für mehr Infos.

PHP Code:
  function findPos($belegtePos,$iGroesse) {
    
$possPos=array();
    for(
$i=0;$i<45;$i++) {
    
      if(empty(
$belegtePos[$i])) {
      
        for(
$y=0;$y<$iGroesse;$y++) {
        
          
$aktPos=$i+($y*5);
          
$thisFits true;
          if(!isset(
$belegtePos[$aktPos]) && $aktPos<45) {
            
$thisFits true;
          }
          else {
            
$thisFits false;
            break;
          }
          
        }
        if(
$thisFits) { $possPos[]=$i; }
        
      }
    
    }
    return 
$possPos;
  } 
DarkDragoner is offline  
Old 10/31/2012, 13:45   #4


 
SnackWell's Avatar
 
elite*gold: 127
Join Date: Jan 2011
Posts: 199
Received Thanks: 55
Edit: Ich habs fertig danke
SnackWell is offline  
Reply


Similar Threads Similar Threads
[Umfrage] Wer hat alles schonmal den ItemShop-Bug genutzt?
04/15/2009 - Metin2 - 60 Replies
Hey Community, wollte mal wissen wer schon alles hier den Angeblichen ItemShop-Bug genutzt hat! Es interessiert mich einfach mal. Greetz // Wer ihn noch nie benutzt hat, brauch nicht abstimmen ;)



All times are GMT +2. The time now is 03:26.


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.