[Release] Pokemon-Area based browser game

Page 34 of 78 FirstFirst ... 24262728293031323334353637383940414244 ... LastLast
Results 496 to 510 of 1163
  1. #496
    Account Upgraded | Title Enabled! felixcruzer is offline
    MemberRank
    May 2012 Join Date
    GermanyLocation
    289Posts

    Re: [Release] Pokemon-Area based browser game

    Created a tiny item shop script.

    Screen:
    Spoiler:




    If someone is interested in the script =>pm, i trade/exchange all edits with other edits/scripts for this game.

    I'm searching for:
    -Pokemon-area battle gui script
    -Respect.php (Give other Players Respect)
    -Any other Scripts

    *Item Shop is my first created script so don't flame me:3
    Last edited by felixcruzer; 05-07-13 at 05:33 PM.

  2. #497
    RaGEZONER || Webdevloper KiruHoshino is offline
    MemberRank
    Oct 2011 Join Date
    HungaryLocation
    648Posts

    Re: [Release] Pokemon-Area based browser game

    New Pokedex:
    image.png

    Code:
    <?
    #Script laden zodat je nooit pagina buiten de index om kan laden
    include("includes/security.php");
    
    $page = 'pokedex';
    #Goeie taal erbij laden voor de page
    include_once('language/language-pages.php');
    
    $have = explode(",", $gebruiker['pok_gezien']);
    $array = count($have);
    
    $zien = explode(",", $gebruiker['pok_bezit']);
    $array2 = count($zien);
    
    $totaal = mysql_num_rows(mysql_query("SELECT wild_id FROM pokemon_wild"));
    if(isset($_GET['world'])) $world = $_GET['world'];
    else $world = "Kanto";
    
    ?>
    <script>
    // When document is ready: this gets fired before body onload <img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
    $(document).ready(function(){
    	// Write on keyup event of keyword input element
    	$("#kwd_search").keyup(function(){
    		// When value of the input is not blank
    		if( $(this).val() != "")
    		{
    			// Show only matching TR, hide rest of them
    			$("#my-table tr").hide();
    			$("#my-table td:contains-ci('" + $(this).val() + "')").parent("tr").show();
    		}
    		else
    		{
    			// When there is no input or clean again, show everything back
    			$("#my-table tr").show();
    		}
    	});
    });
    // jQuery expression for case-insensitive filter
    $.extend($.expr[":"], 
    {
        "contains-ci": function(elem, i, match, array) 
    	{
    		return (elem.textContent || elem.innerText || $(elem).text() || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
    	}
    });
    </script>
    <div >
      <h2>Pokedex</h2><hr>
      <tr>
          <td><div style="padding-bottom:20px;"><center><strong><a href="?page=pokedex&world=Kanto">Kanto</a></strong> - <strong><a href="?page=pokedex&world=Johto">Johto</a></strong> - <strong><a href="?page=pokedex&world=Hoenn">Hoenn</a></strong> - <strong><a href="?page=pokedex&world=Sinnoh">Sinnoh</a></strong> - <strong><a href="?page=pokedex&world=Unova">Unova</a></strong></center></div></td>
        </tr>
      <div class="inhoud">
      <table style="padding: 5px;vertical-align: middle;border: 1px solid #000;">
      <tr>
    	<td colspan="2">Összesen <b><?php echo $array; ?></b> Pokémont láttál a <b><?php echo $totaal; ?></b>-ből, ebből <b><?php echo $array2; ?></b> darabot szereztél meg.</td>
      </tr>
      <tr>
      <td width="200px" style="padding: 5px;vertical-align: middle;border: 1px solid #000;">Pokémonok</td>
      <td width="550px" style="padding: 5px;vertical-align: middle;border: 1px solid #000;">Információk</td>
      </tr>
      
      <tr>
      <td>
      <div style="overflow:scroll; height: 640px;">
      <input type="text" id="kwd_search" value="" class="text_long"/>
    	<table class="general" id="my-table">
      <?php
    	$allpokemonsql = mysql_query("SELECT wild_id, naam FROM pokemon_wild WHERE wereld='".$world."' ORDER BY wild_id ASC");
    							while($allpokemon = mysql_fetch_array($allpokemonsql)){
    							$allpokemon['naam_goed'] = computer_naam($allpokemon['naam']);
    							
    	$bezit = explode(",", $gebruiker['pok_bezit']);
        if(in_array($allpokemon['wild_id'], $bezit)) {
    		$naam = "<font color='green'>".$allpokemon['wild_id'].". ".$allpokemon['naam_goed']."</font>";
    	} else {
    		$naam = "".$allpokemon['wild_id'].". ".$allpokemon['naam_goed']."";
    	}
    	?>
    	<tr>
    	<td><a href="?page=pokedex&world=<? echo $world; ?>&pokemon=<?php echo $allpokemon['wild_id']; ?>"><?php echo $naam; ?></a></td>
    	<td>
    	<?php
    		$have = explode(",", $gebruiker['pok_gezien']);
            if(in_array($allpokemon['wild_id'], $have)) {
            echo '<center><img src="./images/icons/pokeball.gif" width="14" height="14" alt="Gevangen" title="'.$txt['have_already'].' '.$allpokemon['naam_goed'].'" /></center>';
    		} else {
    		echo '<center><img src="./images/icons/pokeball_black.gif" width="14" height="14" alt="Niet gevangen" title="'.$txt['have_already'].' '.$allpokemon['naam_goed'].'" /></center>';
    		}
    
    		  ?>
    	</td></tr>
    	<?php
    							}
      ?>
    	</table>
      </div>
      </td>
      
      <td>
      <div style="overflow:scroll; height: 640px;">
      <?php
      if($_GET['pokemon'] == "") {
      $get = "460";
      } else {
      $get = $_GET['pokemon'];
      }
        $info = mysql_fetch_assoc(mysql_query("SELECT pokemon_wild.wild_id, naam, zeldzaamheid, type1, type2, gebied, wereld, COUNT(pokemon_speler.wild_id) AS hoeveelingame
    										FROM pokemon_wild
    										LEFT JOIN pokemon_speler
    										ON pokemon_wild.wild_id = pokemon_speler.wild_id
    										WHERE pokemon_wild.wild_id = '".$get."'
    										GROUP BY pokemon_wild.wild_id"));
      $levelensql = mysql_query("SELECT * FROM levelen WHERE wild_id = '".$get."' ORDER BY level ASC");
      $aantallevelen = mysql_num_rows($levelensql);
      
    	if($info['gebied'] == "Gras") $gebied2 = "Fű";
    	elseif($info['gebied'] == "Lavagrot") $gebied2 = "Láva";
    	elseif($info['gebied'] == "Water") $gebied2 = "Víz";
    	elseif($info['gebied'] == "Grot") $gebied2 = "Barlang";
    	elseif($info['gebied'] == "Strand") $gebied2 = "Strand";
    	elseif($info['gebied'] == "Vechtschool") $gebied2 = "Dojo";
    	elseif($info['gebied'] == "Spookhuis") $gebied2 = "Kísértet ház";
    
      if(empty($info['gebied'])) $gebied = "Nincs kedvenc helye";
      else $gebied = "".$gebied2." a kedvenc helye";
      
      $info['type1'] = strtolower($info['type1']);
      $info['type2'] = strtolower($info['type2']);
      
      if($info['zeldzaamheid'] == 1) {
    	$zeldzaam = "Gyakori Pokemon";
      } elseif($info['zeldzaamheid'] == 2) {
    	$zeldzaam = "Kicsit Ritka Pokemon";
      } elseif($info['zeldzaamheid'] == 3) {
    	$zeldzaam = "Nagyon ritka Pokemon";
      }
      if(empty($info['type2'])) $info['type'] = '<table><tr><td><div class="type '.$info['type1'].'">'.$info['type1'].'</div></td></tr></table>';
      else $info['type'] = '<table><tr><td><div class="type '.$info['type1'].'">'.$info['type1'].'</div></td><td> <div class="type '.$info['type2'].'">'.$info['type2'].'</div></td></tr></table>';
    
      echo'
          <table class="general">
            <tr>
    		<td width="50%"><p><b>Normál verzió</b></p></td>
    		<td width="50%"><p><b>Shiny verzió</b></p></td>
    		</tr>
    		<tr>
              <td width="50%" align="center"><img src="images/pokemon/'.$info['wild_id'].'.png" alt="normal '.$info['naam'].'" title="'.$info['naam'].'"></td>
    		  <td width="50%" align="center"><img src="images/shiny/'.$info['wild_id'].'.png" alt="Shiny '.$info['naam'].'" title="'.$info['naam'].'"></td>
            </tr>
          </table>';
    	  
    	  echo '
    	  <table class="general">
    		<tr>
    			<td width="50%"><b>Név</b></td>
    			<td width="50%">'.$info['naam'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Ritkaság</b></td>
    			<td width="50%">'.$zeldzaam.'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Régió</b></td>
    			<td width="50%">'.$info['wereld'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Tipús</b></td>
    			<td width="50%">'.$info['type'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Kedvenc helye</b></td>
    			<td width="50%">'.$gebied.'</td>
    		</tr>
    	  </table>
        <table class="general">';
    
    	if($aantallevelen == 0){
    		echo'
    			<tr>
    				<td colspan="2"><p><b>'.$txt['no_attack_or_evolve'].'</b></p></td>
    		 	</tr>';
    	}
    	elseif($aantallevelen > 0){
    		echo'
      		<tr>
      			<td width="100"><p><b>Szint</b></p></td>
      			<td width="100"><p><b>Támadás</b></p></td>
      		</tr>';			
    
      	while($levelen = mysql_fetch_assoc($levelensql)){
        	if($levelen['wat'] == 'att'){
        		echo'
        			<tr>
        				<td><p>'.$levelen['level'].'</p></td>
        				<td><p>'.$levelen['aanval'].'</p></td>
        		 	</tr>';
        	}
          else{
            $evolutie = mysql_fetch_assoc(mysql_query("SELECT wild_id, naam FROM pokemon_wild WHERE wild_id = '".$levelen['nieuw_id']."'"));
          }
          
        	if($levelen['wat'] == 'evo' && $levelen['level'] < 100){
            echo'
              <tr>
              <td>'.$levelen['level'].'</td>
              <td><b>Evolúció:</b> <a href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
              </tr>
            ';
        	}
        	elseif($levelen['wat'] == 'evo' && $levelen['stone'] != ''){
        		echo'
        			<tr>
        				<td><img src="images/items/'.$levelen['stone'].'.png" alt="'.$levelen['stone'].'" title="'.$levelen['stone'].'"></td>
        				<td><b>Evolúció:</b> <a href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
        		 	</tr>';
        	}
        	elseif($levelen['wat'] == 'evo' && $levelen['trade'] == 1){
        		echo'
        			<tr>
        				<td><img src="images/icons/trade.png" alt="Trade" title="Trade"></td>
        				<td><b>Evolúció:</b> <a href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
        		 	</tr>';
        	}
      	}
    	}
      echo '</table>';
      ?>
      </div>
      </td>
      </tr>
      </table>
      
      </div></div>

  3. #498
    Account Upgraded | Title Enabled! felixcruzer is offline
    MemberRank
    May 2012 Join Date
    GermanyLocation
    289Posts

    Re: [Release] Pokemon-Area based browser game

    Thank You, looks great Nice Work!<3

  4. #499
    Apprentice fitim is offline
    MemberRank
    Sep 2011 Join Date
    19Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by KiruHoshino View Post
    New Pokedex:
    image.png

    Code:
    <?
    #Script laden zodat je nooit pagina buiten de index om kan laden
    include("includes/security.php");
    
    $page = 'pokedex';
    #Goeie taal erbij laden voor de page
    include_once('language/language-pages.php');
    
    $have = explode(",", $gebruiker['pok_gezien']);
    $array = count($have);
    
    $zien = explode(",", $gebruiker['pok_bezit']);
    $array2 = count($zien);
    
    $totaal = mysql_num_rows(mysql_query("SELECT wild_id FROM pokemon_wild"));
    if(isset($_GET['world'])) $world = $_GET['world'];
    else $world = "Kanto";
    
    ?>
    <script>
    // When document is ready: this gets fired before body onload <img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
    $(document).ready(function(){
    	// Write on keyup event of keyword input element
    	$("#kwd_search").keyup(function(){
    		// When value of the input is not blank
    		if( $(this).val() != "")
    		{
    			// Show only matching TR, hide rest of them
    			$("#my-table tr").hide();
    			$("#my-table td:contains-ci('" + $(this).val() + "')").parent("tr").show();
    		}
    		else
    		{
    			// When there is no input or clean again, show everything back
    			$("#my-table tr").show();
    		}
    	});
    });
    // jQuery expression for case-insensitive filter
    $.extend($.expr[":"], 
    {
        "contains-ci": function(elem, i, match, array) 
    	{
    		return (elem.textContent || elem.innerText || $(elem).text() || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
    	}
    });
    </script>
    <div >
      <h2>Pokedex</h2><hr>
      <tr>
          <td><div style="padding-bottom:20px;"><center><strong><a rel="nofollow" href="?page=pokedex&world=Kanto">Kanto</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Johto">Johto</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Hoenn">Hoenn</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Sinnoh">Sinnoh</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Unova">Unova</a></strong></center></div></td>
        </tr>
      <div class="inhoud">
      <table style="padding: 5px;vertical-align: middle;border: 1px solid #000;">
      <tr>
    	<td colspan="2">Összesen <b><?php echo $array; ?></b> Pokémont láttál a <b><?php echo $totaal; ?></b>-ből, ebből <b><?php echo $array2; ?></b> darabot szereztél meg.</td>
      </tr>
      <tr>
      <td width="200px" style="padding: 5px;vertical-align: middle;border: 1px solid #000;">Pokémonok</td>
      <td width="550px" style="padding: 5px;vertical-align: middle;border: 1px solid #000;">Információk</td>
      </tr>
      
      <tr>
      <td>
      <div style="overflow:scroll; height: 640px;">
      <input type="text" id="kwd_search" value="" class="text_long"/>
    	<table class="general" id="my-table">
      <?php
    	$allpokemonsql = mysql_query("SELECT wild_id, naam FROM pokemon_wild WHERE wereld='".$world."' ORDER BY wild_id ASC");
    							while($allpokemon = mysql_fetch_array($allpokemonsql)){
    							$allpokemon['naam_goed'] = computer_naam($allpokemon['naam']);
    							
    	$bezit = explode(",", $gebruiker['pok_bezit']);
        if(in_array($allpokemon['wild_id'], $bezit)) {
    		$naam = "<font color='green'>".$allpokemon['wild_id'].". ".$allpokemon['naam_goed']."</font>";
    	} else {
    		$naam = "".$allpokemon['wild_id'].". ".$allpokemon['naam_goed']."";
    	}
    	?>
    	<tr>
    	<td><a rel="nofollow" href="?page=pokedex&world=<? echo $world; ?>&pokemon=<?php echo $allpokemon['wild_id']; ?>"><?php echo $naam; ?></a></td>
    	<td>
    	<?php
    		$have = explode(",", $gebruiker['pok_gezien']);
            if(in_array($allpokemon['wild_id'], $have)) {
            echo '<center><img src="./images/icons/pokeball.gif" width="14" height="14" alt="Gevangen" title="'.$txt['have_already'].' '.$allpokemon['naam_goed'].'" /></center>';
    		} else {
    		echo '<center><img src="./images/icons/pokeball_black.gif" width="14" height="14" alt="Niet gevangen" title="'.$txt['have_already'].' '.$allpokemon['naam_goed'].'" /></center>';
    		}
    
    		  ?>
    	</td></tr>
    	<?php
    							}
      ?>
    	</table>
      </div>
      </td>
      
      <td>
      <div style="overflow:scroll; height: 640px;">
      <?php
      if($_GET['pokemon'] == "") {
      $get = "460";
      } else {
      $get = $_GET['pokemon'];
      }
        $info = mysql_fetch_assoc(mysql_query("SELECT pokemon_wild.wild_id, naam, zeldzaamheid, type1, type2, gebied, wereld, COUNT(pokemon_speler.wild_id) AS hoeveelingame
    										FROM pokemon_wild
    										LEFT JOIN pokemon_speler
    										ON pokemon_wild.wild_id = pokemon_speler.wild_id
    										WHERE pokemon_wild.wild_id = '".$get."'
    										GROUP BY pokemon_wild.wild_id"));
      $levelensql = mysql_query("SELECT * FROM levelen WHERE wild_id = '".$get."' ORDER BY level ASC");
      $aantallevelen = mysql_num_rows($levelensql);
      
    	if($info['gebied'] == "Gras") $gebied2 = "Fű";
    	elseif($info['gebied'] == "Lavagrot") $gebied2 = "Láva";
    	elseif($info['gebied'] == "Water") $gebied2 = "Víz";
    	elseif($info['gebied'] == "Grot") $gebied2 = "Barlang";
    	elseif($info['gebied'] == "Strand") $gebied2 = "Strand";
    	elseif($info['gebied'] == "Vechtschool") $gebied2 = "Dojo";
    	elseif($info['gebied'] == "Spookhuis") $gebied2 = "Kísértet ház";
    
      if(empty($info['gebied'])) $gebied = "Nincs kedvenc helye";
      else $gebied = "".$gebied2." a kedvenc helye";
      
      $info['type1'] = strtolower($info['type1']);
      $info['type2'] = strtolower($info['type2']);
      
      if($info['zeldzaamheid'] == 1) {
    	$zeldzaam = "Gyakori Pokemon";
      } elseif($info['zeldzaamheid'] == 2) {
    	$zeldzaam = "Kicsit Ritka Pokemon";
      } elseif($info['zeldzaamheid'] == 3) {
    	$zeldzaam = "Nagyon ritka Pokemon";
      }
      if(empty($info['type2'])) $info['type'] = '<table><tr><td><div class="type '.$info['type1'].'">'.$info['type1'].'</div></td></tr></table>';
      else $info['type'] = '<table><tr><td><div class="type '.$info['type1'].'">'.$info['type1'].'</div></td><td> <div class="type '.$info['type2'].'">'.$info['type2'].'</div></td></tr></table>';
    
      echo'
          <table class="general">
            <tr>
    		<td width="50%"><p><b>Normál verzió</b></p></td>
    		<td width="50%"><p><b>Shiny verzió</b></p></td>
    		</tr>
    		<tr>
              <td width="50%" align="center"><img src="http://forum.ragezone.com/images/pokemon/'.$info['wild_id'].'.png" alt="normal '.$info['naam'].'" title="'.$info['naam'].'"></td>
    		  <td width="50%" align="center"><img src="http://forum.ragezone.com/images/shiny/'.$info['wild_id'].'.png" alt="Shiny '.$info['naam'].'" title="'.$info['naam'].'"></td>
            </tr>
          </table>';
    	  
    	  echo '
    	  <table class="general">
    		<tr>
    			<td width="50%"><b>Név</b></td>
    			<td width="50%">'.$info['naam'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Ritkaság</b></td>
    			<td width="50%">'.$zeldzaam.'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Régió</b></td>
    			<td width="50%">'.$info['wereld'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Tipús</b></td>
    			<td width="50%">'.$info['type'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Kedvenc helye</b></td>
    			<td width="50%">'.$gebied.'</td>
    		</tr>
    	  </table>
        <table class="general">';
    
    	if($aantallevelen == 0){
    		echo'
    			<tr>
    				<td colspan="2"><p><b>'.$txt['no_attack_or_evolve'].'</b></p></td>
    		 	</tr>';
    	}
    	elseif($aantallevelen > 0){
    		echo'
      		<tr>
      			<td width="100"><p><b>Szint</b></p></td>
      			<td width="100"><p><b>Támadás</b></p></td>
      		</tr>';			
    
      	while($levelen = mysql_fetch_assoc($levelensql)){
        	if($levelen['wat'] == 'att'){
        		echo'
        			<tr>
        				<td><p>'.$levelen['level'].'</p></td>
        				<td><p>'.$levelen['aanval'].'</p></td>
        		 	</tr>';
        	}
          else{
            $evolutie = mysql_fetch_assoc(mysql_query("SELECT wild_id, naam FROM pokemon_wild WHERE wild_id = '".$levelen['nieuw_id']."'"));
          }
          
        	if($levelen['wat'] == 'evo' && $levelen['level'] < 100){
            echo'
              <tr>
              <td>'.$levelen['level'].'</td>
              <td><b>Evolúció:</b> <a rel="nofollow" href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
              </tr>
            ';
        	}
        	elseif($levelen['wat'] == 'evo' && $levelen['stone'] != ''){
        		echo'
        			<tr>
        				<td><img src="http://forum.ragezone.com/images/items/'.$levelen['stone'].'.png" alt="'.$levelen['stone'].'" title="'.$levelen['stone'].'"></td>
        				<td><b>Evolúció:</b> <a rel="nofollow" href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
        		 	</tr>';
        	}
        	elseif($levelen['wat'] == 'evo' && $levelen['trade'] == 1){
        		echo'
        			<tr>
        				<td><img src="http://forum.ragezone.com/images/icons/trade.png" alt="Trade" title="Trade"></td>
        				<td><b>Evolúció:</b> <a rel="nofollow" href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
        		 	</tr>';
        	}
      	}
    	}
      echo '</table>';
      ?>
      </div>
      </td>
      </tr>
      </table>
      
      </div></div>
    Add this:

    Code:
    $s = mysql_query("SELECT `pokedex` FROM `gebruikers_item` WHERE `user_id`='".$_SESSION['id']."'");
    $r = mysql_fetch_assoc($s);
    $pokedex = $r['pokedex'];
    		
    if($pokedex == 0){
    echo '<div class="red">Buy a Pokedex!</div>';
    }
    else
    {
    //Code
    }

  5. #500
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    i have made my rpg hack proof :D

    i am sharing alot of scripts check them out on my site and pm me if u want any of them

    Pokemon Star

  6. #501
    Apprentice fitim is offline
    MemberRank
    Sep 2011 Join Date
    19Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Raftaar View Post
    i have made my rpg hack proof :D

    i am sharing alot of scripts check them out on my site and pm me if u want any of them

    Pokemon Star
    Hack proof?

  7. #502
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by KiruHoshino View Post
    New Pokedex:
    image.png

    Code:
    <?
    #Script laden zodat je nooit pagina buiten de index om kan laden
    include("includes/security.php");
    
    $page = 'pokedex';
    #Goeie taal erbij laden voor de page
    include_once('language/language-pages.php');
    
    $have = explode(",", $gebruiker['pok_gezien']);
    $array = count($have);
    
    $zien = explode(",", $gebruiker['pok_bezit']);
    $array2 = count($zien);
    
    $totaal = mysql_num_rows(mysql_query("SELECT wild_id FROM pokemon_wild"));
    if(isset($_GET['world'])) $world = $_GET['world'];
    else $world = "Kanto";
    
    ?>
    <script>
    // When document is ready: this gets fired before body onload <img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
    $(document).ready(function(){
    	// Write on keyup event of keyword input element
    	$("#kwd_search").keyup(function(){
    		// When value of the input is not blank
    		if( $(this).val() != "")
    		{
    			// Show only matching TR, hide rest of them
    			$("#my-table tr").hide();
    			$("#my-table td:contains-ci('" + $(this).val() + "')").parent("tr").show();
    		}
    		else
    		{
    			// When there is no input or clean again, show everything back
    			$("#my-table tr").show();
    		}
    	});
    });
    // jQuery expression for case-insensitive filter
    $.extend($.expr[":"], 
    {
        "contains-ci": function(elem, i, match, array) 
    	{
    		return (elem.textContent || elem.innerText || $(elem).text() || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
    	}
    });
    </script>
    <div >
      <h2>Pokedex</h2><hr>
      <tr>
          <td><div style="padding-bottom:20px;"><center><strong><a rel="nofollow" href="?page=pokedex&world=Kanto">Kanto</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Johto">Johto</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Hoenn">Hoenn</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Sinnoh">Sinnoh</a></strong> - <strong><a rel="nofollow" href="?page=pokedex&world=Unova">Unova</a></strong></center></div></td>
        </tr>
      <div class="inhoud">
      <table style="padding: 5px;vertical-align: middle;border: 1px solid #000;">
      <tr>
    	<td colspan="2">Összesen <b><?php echo $array; ?></b> Pokémont láttál a <b><?php echo $totaal; ?></b>-ből, ebből <b><?php echo $array2; ?></b> darabot szereztél meg.</td>
      </tr>
      <tr>
      <td width="200px" style="padding: 5px;vertical-align: middle;border: 1px solid #000;">Pokémonok</td>
      <td width="550px" style="padding: 5px;vertical-align: middle;border: 1px solid #000;">Információk</td>
      </tr>
      
      <tr>
      <td>
      <div style="overflow:scroll; height: 640px;">
      <input type="text" id="kwd_search" value="" class="text_long"/>
    	<table class="general" id="my-table">
      <?php
    	$allpokemonsql = mysql_query("SELECT wild_id, naam FROM pokemon_wild WHERE wereld='".$world."' ORDER BY wild_id ASC");
    							while($allpokemon = mysql_fetch_array($allpokemonsql)){
    							$allpokemon['naam_goed'] = computer_naam($allpokemon['naam']);
    							
    	$bezit = explode(",", $gebruiker['pok_bezit']);
        if(in_array($allpokemon['wild_id'], $bezit)) {
    		$naam = "<font color='green'>".$allpokemon['wild_id'].". ".$allpokemon['naam_goed']."</font>";
    	} else {
    		$naam = "".$allpokemon['wild_id'].". ".$allpokemon['naam_goed']."";
    	}
    	?>
    	<tr>
    	<td><a rel="nofollow" href="?page=pokedex&world=<? echo $world; ?>&pokemon=<?php echo $allpokemon['wild_id']; ?>"><?php echo $naam; ?></a></td>
    	<td>
    	<?php
    		$have = explode(",", $gebruiker['pok_gezien']);
            if(in_array($allpokemon['wild_id'], $have)) {
            echo '<center><img src="./images/icons/pokeball.gif" width="14" height="14" alt="Gevangen" title="'.$txt['have_already'].' '.$allpokemon['naam_goed'].'" /></center>';
    		} else {
    		echo '<center><img src="./images/icons/pokeball_black.gif" width="14" height="14" alt="Niet gevangen" title="'.$txt['have_already'].' '.$allpokemon['naam_goed'].'" /></center>';
    		}
    
    		  ?>
    	</td></tr>
    	<?php
    							}
      ?>
    	</table>
      </div>
      </td>
      
      <td>
      <div style="overflow:scroll; height: 640px;">
      <?php
      if($_GET['pokemon'] == "") {
      $get = "460";
      } else {
      $get = $_GET['pokemon'];
      }
        $info = mysql_fetch_assoc(mysql_query("SELECT pokemon_wild.wild_id, naam, zeldzaamheid, type1, type2, gebied, wereld, COUNT(pokemon_speler.wild_id) AS hoeveelingame
    										FROM pokemon_wild
    										LEFT JOIN pokemon_speler
    										ON pokemon_wild.wild_id = pokemon_speler.wild_id
    										WHERE pokemon_wild.wild_id = '".$get."'
    										GROUP BY pokemon_wild.wild_id"));
      $levelensql = mysql_query("SELECT * FROM levelen WHERE wild_id = '".$get."' ORDER BY level ASC");
      $aantallevelen = mysql_num_rows($levelensql);
      
    	if($info['gebied'] == "Gras") $gebied2 = "Fű";
    	elseif($info['gebied'] == "Lavagrot") $gebied2 = "Láva";
    	elseif($info['gebied'] == "Water") $gebied2 = "Víz";
    	elseif($info['gebied'] == "Grot") $gebied2 = "Barlang";
    	elseif($info['gebied'] == "Strand") $gebied2 = "Strand";
    	elseif($info['gebied'] == "Vechtschool") $gebied2 = "Dojo";
    	elseif($info['gebied'] == "Spookhuis") $gebied2 = "Kísértet ház";
    
      if(empty($info['gebied'])) $gebied = "Nincs kedvenc helye";
      else $gebied = "".$gebied2." a kedvenc helye";
      
      $info['type1'] = strtolower($info['type1']);
      $info['type2'] = strtolower($info['type2']);
      
      if($info['zeldzaamheid'] == 1) {
    	$zeldzaam = "Gyakori Pokemon";
      } elseif($info['zeldzaamheid'] == 2) {
    	$zeldzaam = "Kicsit Ritka Pokemon";
      } elseif($info['zeldzaamheid'] == 3) {
    	$zeldzaam = "Nagyon ritka Pokemon";
      }
      if(empty($info['type2'])) $info['type'] = '<table><tr><td><div class="type '.$info['type1'].'">'.$info['type1'].'</div></td></tr></table>';
      else $info['type'] = '<table><tr><td><div class="type '.$info['type1'].'">'.$info['type1'].'</div></td><td> <div class="type '.$info['type2'].'">'.$info['type2'].'</div></td></tr></table>';
    
      echo'
          <table class="general">
            <tr>
    		<td width="50%"><p><b>Normál verzió</b></p></td>
    		<td width="50%"><p><b>Shiny verzió</b></p></td>
    		</tr>
    		<tr>
              <td width="50%" align="center"><img src="http://forum.ragezone.com/images/pokemon/'.$info['wild_id'].'.png" alt="normal '.$info['naam'].'" title="'.$info['naam'].'"></td>
    		  <td width="50%" align="center"><img src="http://forum.ragezone.com/images/shiny/'.$info['wild_id'].'.png" alt="Shiny '.$info['naam'].'" title="'.$info['naam'].'"></td>
            </tr>
          </table>';
    	  
    	  echo '
    	  <table class="general">
    		<tr>
    			<td width="50%"><b>Név</b></td>
    			<td width="50%">'.$info['naam'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Ritkaság</b></td>
    			<td width="50%">'.$zeldzaam.'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Régió</b></td>
    			<td width="50%">'.$info['wereld'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Tipús</b></td>
    			<td width="50%">'.$info['type'].'</td>
    		</tr>
    		<tr>
    			<td width="50%"><b>Kedvenc helye</b></td>
    			<td width="50%">'.$gebied.'</td>
    		</tr>
    	  </table>
        <table class="general">';
    
    	if($aantallevelen == 0){
    		echo'
    			<tr>
    				<td colspan="2"><p><b>'.$txt['no_attack_or_evolve'].'</b></p></td>
    		 	</tr>';
    	}
    	elseif($aantallevelen > 0){
    		echo'
      		<tr>
      			<td width="100"><p><b>Szint</b></p></td>
      			<td width="100"><p><b>Támadás</b></p></td>
      		</tr>';			
    
      	while($levelen = mysql_fetch_assoc($levelensql)){
        	if($levelen['wat'] == 'att'){
        		echo'
        			<tr>
        				<td><p>'.$levelen['level'].'</p></td>
        				<td><p>'.$levelen['aanval'].'</p></td>
        		 	</tr>';
        	}
          else{
            $evolutie = mysql_fetch_assoc(mysql_query("SELECT wild_id, naam FROM pokemon_wild WHERE wild_id = '".$levelen['nieuw_id']."'"));
          }
          
        	if($levelen['wat'] == 'evo' && $levelen['level'] < 100){
            echo'
              <tr>
              <td>'.$levelen['level'].'</td>
              <td><b>Evolúció:</b> <a rel="nofollow" href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
              </tr>
            ';
        	}
        	elseif($levelen['wat'] == 'evo' && $levelen['stone'] != ''){
        		echo'
        			<tr>
        				<td><img src="http://forum.ragezone.com/images/items/'.$levelen['stone'].'.png" alt="'.$levelen['stone'].'" title="'.$levelen['stone'].'"></td>
        				<td><b>Evolúció:</b> <a rel="nofollow" href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
        		 	</tr>';
        	}
        	elseif($levelen['wat'] == 'evo' && $levelen['trade'] == 1){
        		echo'
        			<tr>
        				<td><img src="http://forum.ragezone.com/images/icons/trade.png" alt="Trade" title="Trade"></td>
        				<td><b>Evolúció:</b> <a rel="nofollow" href="?page=pokedex&pokemon='.$evolutie['wild_id'].'">'.$evolutie['naam'].'</a></td>
        		 	</tr>';
        	}
      	}
    	}
      echo '</table>';
      ?>
      </div>
      </td>
      </tr>
      </table>
      
      </div></div>
    I dont know who coded this as it has Dutch commentary (I'm dutch!) and you're from Hungary.
    Also there are exploits in this script.
    Also:
    PHP TAGS START WITH <?PHP AND END WITH ?>
    YOU CANNOT USE <?!!!!.

    Quote Originally Posted by Raftaar View Post
    i have made my rpg hack proof :D

    i am sharing alot of scripts check them out on my site and pm me if u want any of them

    Pokemon Star
    Yeah on register you already have a exploit. Good Job!

  8. #503
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    exploit .....dafq how ?and fitim how the ,,,.. did u do that

    and hack proof in terms of configuration

  9. #504
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Raftaar View Post
    exploit .....dafq how ?and fitim how the ,,,.. did u do that

    and hack proof in terms of configuration
    Make sure you filter every $_POST and $_GET value with mysql_real_escape_string($_POST['username']);
    Then you're safe ^^
    If you used the pokedex script he probably ran a query through there.

  10. #505
    Apprentice fitim is offline
    MemberRank
    Sep 2011 Join Date
    19Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by tdid View Post
    Make sure you filter every $_POST and $_GET value with mysql_real_escape_string($_POST['username']);
    Then you're safe ^^
    If you used the pokedex script he probably ran a query through there.
    It's not the Pokedex.

  11. #506
    RaGEZONER || Webdevloper KiruHoshino is offline
    MemberRank
    Oct 2011 Join Date
    HungaryLocation
    648Posts

    Re: [Release] Pokemon-Area based browser game

    The error is in the bank.php. Probably something that you can send money to ourselves. I have not figured out how to but if I find out I'll let you. :)

  12. #507
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by KiruHoshino View Post
    The error is in the bank.php. Probably something that you can send money to ourselves. I have not figured out how to but if I find out I'll let you. :)
    What about sending negative values to someone else?

  13. #508
    Novice LegendFoxy is offline
    MemberRank
    Jul 2013 Join Date
    2Posts

    Re: [Release] Pokemon-Area based browser game

    How do i change the layout? it looks not like yours when i uploaded it..

  14. #509
    RaGEZONER || Webdevloper KiruHoshino is offline
    MemberRank
    Oct 2011 Join Date
    HungaryLocation
    648Posts

    Re: [Release] Pokemon-Area based browser game

    Edit the index.php and style.css :)

  15. #510
    Account Upgraded | Title Enabled! felixcruzer is offline
    MemberRank
    May 2012 Join Date
    GermanyLocation
    289Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by KiruHoshino View Post
    Edit the index.php and style.css :)
    Also check the images/layout folder, i think you mean this "dark" design.
    Download this, to make your design shiny and brighten:

    Zippyshare.com - layout.rar

    Replace with folder images/layout.

    Regards



Advertisement