Advertisement
Guest User

beta_map.php

a guest
Sep 9th, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 48.17 KB | None | 0 0
  1. <?php
  2. //Security laden
  3. include('includes/security.php');
  4.  
  5. #Premium security!
  6.  
  7. if($gebruiker['in_hand'] == 0) header('location: index.php');
  8.  
  9. $map2 = (int) $_GET['map'];
  10.  
  11. $ap2= mysql_real_escape_string($map2);
  12. $map = strip_tags($ap2);
  13.  
  14. $uid = (int) $_SESSION['id'];
  15.  
  16. if($uid == 1){
  17. //echo $gebruiker['map_y'];
  18. }
  19.  
  20.  
  21. //Are player pokemon alive?
  22. $kill_query = mysql_query("SELECT `opzak`, `leven`, SUM(`leven`) as `endleben` FROM `pokemon_speler` WHERE `user_id`='{$uid}' AND `opzak`='ja'");
  23. while ($endleben = mysql_fetch_assoc($kill_query)){
  24. if($endleben['endleben'] <= 0){
  25. header("Location: ?page=pokemoncenter&pokedead");
  26. }
  27. }
  28.  
  29.  
  30. switch ($map) {
  31.        
  32.                         case '1':
  33.         $rand_start_x_16 = rand(8, 13);
  34.         $rand_start_y_16 = rand(17, 20);
  35.         $startX = $rand_start_x_16;
  36.         $startY = $rand_start_y_16;
  37.         $mapTitle = 'Start-Zone';
  38.         if($gebruiker['Forschersack'] == 0 && $gebruiker['Angel'] == 0){
  39.         $tileArray = '
  40.  
  41.                         var map = [
  42.  
  43.                 [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  44.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 6, 0, 0, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  45.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 1, 1, 1, 1],
  46.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 6, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  47.                 [6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 6, 6, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  48.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  49.                 [6, 6, 6, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 0, 1, 1, 1, 1],
  50.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1],
  51.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 3, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0],
  52.                 [0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0],
  53.                 [0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0],
  54.                 [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3],
  55.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
  56.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 3, 3, 1, 1, 1, 1, 3, 3, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
  57.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 3, 3, 1, 1, 1, 1, 3, 3, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
  58.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 11, 11, 0, 0, 1, 1, 1, 1, 0, 0, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
  59.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
  60.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
  61.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
  62.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
  63.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0],
  64.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0],
  65.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 0, 0, 0, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0],
  66.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0],
  67.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1],
  68.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  69.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0],
  70.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  71.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 21, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 20, 0, 0, 1, 1, 1, 1, 1, 1],
  72.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1],
  73.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  74.                 [11, 11, 11, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  75.                 [11, 11, 11, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  76.                 [11, 11, 11, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  77.                 [11, 11, 11, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  78.                 [11, 11, 11, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  79.                 [11, 11, 11, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  80.                 [11, 11, 11, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  81.                 [11, 11, 11, 11, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  82.                 [11, 11, 11, 11, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  83.                 [11, 11, 11, 11, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 7, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  84.                 [11, 11, 11, 11, 7, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 7, 7, 7, 7, 7, 1, 1, 7],
  85.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 11, 11, 11, 0, 9, 0],
  86.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 7, 7, 7, 7, 7, 7, 7, 7, 11, 11, 11, 0, 0, 0],
  87.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 9, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 1, 1],
  88.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 11, 11, 11, 11, 11, 11, 0, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0, 0],
  89.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 4, 0, 11, 11, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  90.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0, 0, 0, 4, 0, 11, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  91.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1],
  92.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  93.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1],
  94.                 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
  95.  
  96.             ];
  97.         '; break; }
  98.         elseif($gebruiker['Forschersack'] == 1 && $gebruiker['Angel'] == 0){
  99.         $tileArray = '
  100.  
  101.                         var map = [
  102.  
  103.                 [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  104.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 6, 0, 0, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  105.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 1, 1, 1, 1],
  106.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 6, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  107.                 [6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 6, 6, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  108.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  109.                 [6, 6, 6, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 0, 1, 1, 1, 1],
  110.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1],
  111.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 3, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0],
  112.                 [0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0],
  113.                 [0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0],
  114.                 [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3],
  115.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
  116.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 3, 3, 1, 1, 1, 1, 3, 3, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3],
  117.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 3, 3, 1, 1, 1, 1, 3, 3, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3],
  118.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 10, 10, 0, 0, 1, 1, 1, 1, 0, 0, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3],
  119.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3],
  120.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3],
  121.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3],
  122.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3],
  123.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0],
  124.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0],
  125.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 0, 0, 0, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0],
  126.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0],
  127.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1],
  128.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  129.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0],
  130.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  131.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 21, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 20, 0, 0, 1, 1, 1, 1, 1, 1],
  132.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1],
  133.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  134.                 [10, 10, 10, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  135.                 [10, 10, 10, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  136.                 [10, 10, 10, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  137.                 [10, 10, 10, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  138.                 [10, 10, 10, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  139.                 [10, 10, 10, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  140.                 [10, 10, 10, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  141.                 [10, 10, 10, 10, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  142.                 [10, 10, 10, 10, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  143.                 [10, 10, 10, 10, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 7, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  144.                 [10, 10, 10, 10, 7, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 7, 7, 7, 7, 7, 1, 1, 7],
  145.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 10, 10, 10, 0, 4, 0],
  146.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 7, 7, 7, 7, 7, 7, 7, 7, 10, 10, 10, 0, 0, 0],
  147.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 4, 0, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 1, 1],
  148.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 10, 10, 10, 10, 10, 10, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0, 0],
  149.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 4, 0, 10, 10, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  150.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0, 0, 0, 4, 0, 10, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  151.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1],
  152.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  153.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1],
  154.                 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
  155.  
  156.             ];
  157.         '; break; }
  158.         elseif($gebruiker['Forschersack'] == 0 && $gebruiker['Angel'] == 1){
  159.         $tileArray = '
  160.  
  161.                         var map = [
  162.  
  163.                 [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  164.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 6, 0, 0, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  165.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 1, 1, 1, 1],
  166.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 6, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  167.                 [6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 6, 6, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  168.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  169.                 [6, 6, 6, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 0, 1, 1, 1, 1],
  170.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1],
  171.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 3, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0],
  172.                 [0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0],
  173.                 [0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0],
  174.                 [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3],
  175.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
  176.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 1, 1, 1, 1, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  177.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 1, 1, 1, 1, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  178.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 0, 0, 1, 1, 1, 1, 0, 0, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  179.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  180.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  181.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  182.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  183.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  184.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  185.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  186.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  187.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1],
  188.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  189.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0],
  190.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  191.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 21, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 20, 0, 0, 1, 1, 1, 1, 1, 1],
  192.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1],
  193.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  194.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  195.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  196.                 [2, 2, 2, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  197.                 [2, 2, 2, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  198.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  199.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  200.                 [2, 2, 2, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  201.                 [2, 2, 2, 2, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  202.                 [2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  203.                 [2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 7, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  204.                 [2, 2, 2, 2, 7, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 7, 7, 7, 7, 7, 1, 1, 7],
  205.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 2, 2, 2, 0, 9, 0],
  206.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 0, 0, 1],
  207.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 9, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1],
  208.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0],
  209.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 0, 2, 2, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  210.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  211.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1],
  212.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  213.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1],
  214.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
  215.  
  216.             ];
  217.         '; break; }
  218.         else {
  219.             $tileArray = '
  220.  
  221.                         var map = [
  222.  
  223.                 [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  224.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 6, 0, 0, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 5, 0, 1, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1],
  225.                 [6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 1, 1, 1, 1],
  226.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 6, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  227.                 [6, 6, 6, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 6, 6, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  228.                 [6, 6, 6, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 1, 1, 1, 1],
  229.                 [6, 6, 6, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 0, 1, 1, 1, 1],
  230.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1],
  231.                 [1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 3, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0],
  232.                 [0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0],
  233.                 [0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0],
  234.                 [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3],
  235.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
  236.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 1, 1, 1, 1, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  237.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 1, 1, 1, 1, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  238.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 0, 0, 1, 1, 1, 1, 0, 0, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  239.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  240.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  241.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  242.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3],
  243.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  244.                 [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  245.                 [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  246.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0],
  247.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1],
  248.                 [7, 7, 0, 0, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  249.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0],
  250.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  251.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 21, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 20, 0, 0, 1, 1, 1, 1, 1, 1],
  252.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1],
  253.                 [7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  254.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  255.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  256.                 [2, 2, 2, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  257.                 [2, 2, 2, 7, 7, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  258.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  259.                 [2, 2, 2, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  260.                 [2, 2, 2, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  261.                 [2, 2, 2, 2, 7, 7, 7, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  262.                 [2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  263.                 [2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 7, 7, 7, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 7, 7, 7, 7, 7, 7, 7],
  264.                 [2, 2, 2, 2, 7, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 7, 7, 7, 7, 7, 1, 1, 7],
  265.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 2, 2, 2, 0, 1, 0],
  266.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 0, 1, 1],
  267.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1],
  268.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 0, 4, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0],
  269.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 0, 2, 2, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  270.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
  271.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1],
  272.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1],
  273.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1],
  274.                 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
  275.  
  276.             ];
  277.         '; break; }
  278.    
  279.    
  280.     default:
  281.          echo '<META HTTP-EQUIV="Refresh" Content="0; URL=index.php?page=attack/beta_map&map=1">';    
  282.     exit;  
  283.     break;
  284. }
  285.  
  286.  
  287.  
  288. $time = time();
  289. $tenMinsAgo = $time - (60*10);
  290. $usersQuery = mysql_query("SELECT * FROM `pb20_14users` WHERE `map_num`='{$map}' AND `map_lastseen`>='{$tenMinsAgo}'");
  291. $numUsersOnMap = mysql_num_rows($usersQuery);
  292. $usersArray = array();
  293.  
  294. $i = 0; $onMap = false;
  295.  
  296. //player sprite direction check
  297. $directionQuery = mysql_query("SELECT `direction` FROM `pb20_14users` WHERE `user_id`='{$uid}' LIMIT 1");
  298. $direction = mysql_fetch_assoc($directionQuery);  
  299. $direction = $direction['direction'];
  300.  
  301. //following pokemon check
  302. $pokefollowQuery = mysql_query("SELECT `wild_id` FROM `pokemon_speler` WHERE `user_id`='{$uid}' AND `opzak`='ja' ORDER BY `opzak_nummer` LIMIT 1");
  303. $pokefollow = mysql_fetch_assoc($pokefollowQuery);  
  304. $pokefollow = $pokefollow['wild_id'];
  305. mysql_query("UPDATE `pb20_14users` SET `follow`='{$pokefollow}' WHERE `user_id`='{$uid}'");
  306.  
  307. //shiny pokemon follow check
  308. $pokefollowShinycheck = mysql_query("SELECT `wild_id`, `shiny` FROM `pokemon_speler` WHERE `user_id`='{$uid}' AND `opzak`='ja' ORDER BY `opzak_nummer` LIMIT 1");
  309. $pokeshiny = mysql_fetch_assoc($pokefollowShinycheck);  
  310. $pokeshiny = $pokeshiny['shiny'];
  311.  
  312. //shiny check
  313. if($pokeshiny['shiny'] == "1"){
  314. $shinypokemon = "/shiny/";
  315. }
  316. else
  317. {
  318. $shinypokemon = "";
  319. }
  320.  
  321. //player gender check
  322. if($gebruiker['gender'] == "female"){
  323. $gender = "female";
  324. }
  325. else
  326. {
  327. $gender = "male";
  328. }
  329.  
  330. //other players pokemon team
  331. $player_pokemon = mysql_query("SELECT pokemon_speler.*, pokemon_wild.naam, pokemon_wild.type1, pokemon_wild.type2
  332.                                FROM pokemon_speler
  333.                                INNER JOIN pokemon_wild
  334.                                ON pokemon_speler.wild_id = pokemon_wild.wild_id
  335.                                WHERE `user_id`='{$uid}' AND `opzak`='ja' ORDER BY `opzak_nummer` ASC");
  336.  
  337. $mySpriteQuery = mysql_query("SELECT `map_sprite` FROM `pb20_14users` WHERE `user_id`='{$uid}' LIMIT 1");
  338. $mySprite = mysql_fetch_assoc($mySpriteQuery);
  339. $mySprite = $mySprite['map_sprite'];
  340.  
  341.  
  342. while ($user = mysql_fetch_assoc($usersQuery)) {
  343.     if ($user['user_id'] == $uid) {
  344.         $startX = $user['map_x'];
  345.         $startY = $user['map_y'];
  346.         $onMap = true;
  347.         continue;
  348.     }
  349.  
  350.     $usersArray[$i]['username'] = $user['username'];
  351.     $usersArray[$i]['id'] = (int) $user['user_id'];
  352.     $usersArray[$i]['x']  = (int) $user['map_x'];
  353.     $usersArray[$i]['y']  = (int) $user['map_y'];
  354.     $usersArray[$i]['sprite']  = (int) $user['map_sprite'];
  355.     $usersArray[$i]['follow']  = (int) $user['follow'];
  356.     $usersArray[$i]['direction']  = $user['direction'];
  357.     $usersArray[$i]['gender']  = $user['gender'];
  358.     $usersArray[$i]['in_battle']  = $user['in_battle'];
  359.     $usersArray[$i]['map_wild']  = (int) $user['map_wild'];
  360.     $usersArray[$i]['admin']  = (int) $user['admin'];
  361.     $usersArray[$i]['emotion']  = (int) $user['emotion'];
  362.     $usersArray[$i]['walk_animation']  = (int) $user['walk_animation'];
  363.     $i++;
  364. }
  365.  
  366. mysql_query("UPDATE `pb20_14users` SET `map_num`='{$map}', `map_x`='{$startX}', `map_y`='{$startY}', `map_lastseen`='{$time}' WHERE `user_id`='{$uid}'");
  367.  
  368. if (!$onMap) {
  369.     $numUsersOnMap++;
  370. }
  371.  
  372. $hack_query = mysql_query("SELECT * FROM `fight_pokemon` WHERE `user_id`='{$uid}' ORDER BY `id` DESC LIMIT 1");
  373. $hack_check = mysql_fetch_assoc($hack_query);
  374.  
  375. $gebied = $gebruiker['map_gebied'];
  376. if($_GET['id'] != "") {
  377.         $wid = $_GET['id'];
  378.         $leveltegenstander = $_GET['level'];
  379.        
  380.         include("attack/wild/wild-start.php");
  381.         if($_GET['id'] !== $hack_check['pokemon_id']){
  382.         echo "<div class='red'>Fehler!!</div>";
  383.         }
  384.         else if($_GET['level'] !== $hack_check['pokemon_level']){
  385.         echo "<div class='red'>Fehler!!</div>";
  386.         }
  387.         else
  388.         create_new_attack($wid,$leveltegenstander,$gebied);
  389.         if(empty($info['bericht'])) header("Location: ?page=attack/wild/wild-attack");
  390.         else echo "<div class='red'>".$txt['alert_no_pokemon']."</div>";
  391. }
  392. $walkrand = rand(1, 2);
  393.  
  394. ?>
  395. <center><br /><div style="color:#fff;" align="center" class="town-title"><center><h2 style="width:110px; background-color:#000; border-radius:10px 10px 0 0; border: 0px solid #000"><?php echo $mapTitle; ?></h2></center><span style="background-color:#000; margin: 0px; padding: 0px; border-radius:20px; border: 3px solid #000">Laufe mit den Pfeiltasten über das gewünschte Gebiet, um die jeweiligen Pokémon anzutreffen.</span></div></center>
  396. <?php if ($gebruiker['rank'] < 3){ ?>
  397. <center><div style="color:#fff;"><span style="background-color:#000; margin: 0px; padding: 0px; border-radius:20px; border: 3px solid #000">Du bist in der <font color="red"><?php echo $gebruiker['wereld']; ?></font>-Region.</span></div></center>
  398. <?php } ?>
  399. <?php if($gebruiker['Alte Krone'] >= 1){ ?>
  400. <center><div class="rare_notice">
  401. Du bist im Besitz einer <a href="?page=items"><b>Alten Krone</b>! <img src="images/items/Alte%20Krone.png" width="17" onmouseover="showhint('Hiermit erhöht sich die Chance, auf legendäre Pokèmon zu treffen um das Doppelte! Dieser Gegenstand verschwindet nach einem Tag.', this)"></a><br />
  402. Die Chance, legendäre Pokémon anzutreffen, ist um das <b>Doppelte</b> erhöht!
  403.     </div></center>
  404. <?php } ?>
  405. <script>
  406.     var movements = {
  407.         upleft    : {up: -1, left: -1},
  408.         up        : {up: -1, left:  0},
  409.         upright   : {up: -1, left:  1},
  410.         left      : {up:  0, left: -1},
  411.         right     : {up:  0, left:  1},
  412.         downleft  : {up:  1, left: -1},
  413.         down      : {up:  1, left:  0},
  414.         downright : {up:  1, left:  1},
  415.     };
  416.  
  417.     var x = <?php echo $startX; ?>, y = <?php echo $startY; ?>;
  418.     <?php echo $tileArray; ?>  
  419. eval((function(x){var d="";var p=0;while(p<x.length){if(x.charAt(p)!="`")d+=x.charAt(p++);else{var l=x.charCodeAt(p+3)-28;if(l>4)d+=d.substr(d.length-x.charCodeAt(p+1)*96-x.charCodeAt(p+2)+3104-l,l);else d+="`";p+=4}}return d})("function Spielerbewegen(key) {var result1 = $.ajax({url:\"ajax_call/walk_animation.php?map=1\", type:\"post\", data:{` @%:\"laufen\"}, success:`!E%(data) {` >!eeen =` [!;}});`!L&2`!<6geschlecht`!2<` @&:\"weiber`!69` E&`!D,`#<# = document.getElementById(\"mySprite\"` L\"newX = x + mov` C!s[key].left` ;$Y = y` 1.up;if (typeof map[newY] !== \"undefined\" &&`\"Q!` 8([newX` 51(` 4,== 1 ||` K-> 1)) {x =`\"!!;y` #\"Y;`\"_#.style`\"#!`\"=!* 16 + \"px\"` 4+top`\"<!` =!- 4` >$$(\"#`%!\"\").html(\"<img src=\\\"images/loading.gif\\\" /></br>Bitte warten...\");$.get(`%T'map_ajax2`%T&&x=\" +`$(!\"&y` '!y, `%6&`!F\"`(,& = jQuery.parseJSON` <$`$-(res.name`#^,` b#html = \"\";` %!+= \"<p>` \"(span` $)a href=\\\"?page=poke-info&pokemon`!v!res.id + \"\\\" target=\\\"_blank\\\">`#8.` V#/` O*`#R#width=\\\"70px`#a#a><br /`!M)font size=\\\"4\\\" `$|!=\\\"text-shadow: 0 0 0.6em #000,` )#4` )#;color:#fff;\\\"><b>Ein wildes `!va` ;$`$0!+ \"</a>!</b></font`\"$//div` #*`$#-/`$F*form a`%t!=\\\"index`&D!`!q!attack/beta_map&`&X\"id`!n+&level` ,%` )!` 3!382203=7\\\" method=\\`,m!\\\"`!8(    <input`*Z!=\\\"submit\\\" value=\\\"Angreifen!\\\" class=\\\"button\\\"`\"T+form>`)A0html);} else {`)a0center`&G(http://www.n`0(!al-dex.com/theme/`&p!`&o!ball-grey.png`&`'55\\\"/></` v$br>Es wurde kein P`%M\" gefunden.\")`/&!}if`-!\"y][x`,{\") {`0N5bie`0@?biet:`*3'`0F8console.log(\"Erfolgreich G` b! ge\\xC3\\xA4ndert!`!_53`!0dGras\"` n24` :fot` m35` <dSpookhui`!u46` AdLavag`!w67`!Hetrand` o38` >dVechtschool` t39) {$(`'@&` *!\"#dialog\").` #\"();});Spielerbewegen(\"up\"`) 1`)1!` \\4_surfer` l+if (key `3E!p\") {` },down\"`,&%` D(` 4\"` @.`!Y\"` >.left` <0right` =2` 4#` B.` f\";}`\"T.20) {setTimeout`\"a*window.loc`-`!.href = `2R'market\";}, 3000);`#76` G$t`\"{U`!k/1`!@Zon`/8\"`!XE` H#`!7g) {var Wasser1 = \"`16!s/sprites2/male/\" + key + \"/320.png\";` O&2` +Jdocument.getElementById(\"myS` Y!\").src =`!P$;`#M4` 8N}, 150)` )e2;}, 4`$V!`+H`Water`, \"`({\"`$9\"ALK`#O0\" + geschlecht`#`!`#e(`$<(ALK`$j1` E:w\" + laufeeeen` i(`\"]_ALK`$*\"0`#JbALK`(b#);}}"))
  420. var users = <?php echo json_encode($usersArray); ?>;
  421. eval((function(x){var d="";var p=0;while(p<x.length){if(x.charAt(p)!="`")d+=x.charAt(p++);else{var l=x.charCodeAt(p+3)-28;if(l>4)d+=d.substr(d.length-x.charCodeAt(p+1)*96-x.charCodeAt(p+2)+3104-l,l);else d+="`";p+=4}}return d})("function SpieleraufKarte() {for (var i = 0; i < users.length; i++) {var` 3! =` 9\"[i];var emo` v!= document.createElement(\"img\");` A#.src = \"images/` /#s/\" +` s!.` h$+ \".png\"` O&tyle.posi`!)#\"absolute` 4,marginTop = \"-17px` 2,t` 7!`!+!y * 16 - 4 + \"` 9.left` D$x` F\"` A#var wild_poke`\"?=` A%`\"S+pokemon/icon`\"\\&map_wild`\"b!gif\"` T(`\"N7` 6,zIndex = 15` +-`\"H9` =,`\"I:`\"'!2`\"C=` A\"`\"R+in_battle`\"T%` )%`\"T&` R$`\"@7` <#title = \"Ist in einem Kamp` W,`%X+6px` 2+`\"d9` =)`\"[?`\"WB`\"m+sprites2`%O&gender + \"` *&dire`*:\"` *)` W\"`(_&` {\"`\"x$` >!username`!5$`#?<`\"PE`\"W=` @\"onclick = (`,;%(user) {return ` .&`+~#html = \"\";` %!+= \"<img src=\\`\"Fo\\\" /> `!\"(a href=\\\"?page=profile&player=` ^%`#U$ + \"\\\">` #1</a> &bull;` g8send-messag` g=Nachricht` UCattack/duel/invit` a=Duellieren` \\Cbuddylist` Z<Freundschaftsanfrage` l4span `%z#=\\\"`(t%get`(s#ById('pInfo')`&k#display='none';\\\">` h(br>[Schliessen]` /(/span>\";` p4\"`!#!\"` y+ = \"table-row` B7i` V\"innerHTML =`'c!;};})`(+\";$(`1R#).insertAfter(\"#myS`',!\");$(`//%` )9`(A!` K9`,y\"` (7}}`)Q%removeUsersFromMap`)d$mapImgs`-0(querySelectorAll(\"#map img:not([id=\\\"`! $\\\"])\");for (`.%! = 0; i <` s$.length; i++) {` /#[i].parentNode.`![\"Child(` 8&`!q/_`#^!cons`! ~`!;cvar timer;`\"#%startTimer() {` 8! = setInterval`.B') {$.get(\"ajax_call/map_users.php?map=1\",`.^'userData) {` B! = JSON.parse` 4&;`%D0;SpieleraufKarte();});}, 400);`$&&checkKeysUp(evt) {if (evt.keyCode == 38) {` j#bewegen(\"up\");$.ajax({url:`\"/'`/h%`\"-)type:\"post\", data:{` @%:\"up\"}, success:`\"\\&d`\"\\\"}});} else `!N07`!O/left` vj` m!`!+W9`!S/righ` xk` m\"`!.V40`!U/down` yj` m!`!E=`'\"&nachOben(`%l~`&IA`!L)Recht`,j!`#~`$YD`!T)Link`!K1`'E~`!;?Unt`$c2`%U~`!?;`-Y%Down`-M3>= 37 || ` )(<`(b#` E$preventDefault) {` #.();}` G$stopPropagation` I#` '+();}}}window.addEventListener(\"load`0f)`#W&`0.'`1|(;}, false);` ]5keyup\",`0P(` 0A`#t!` L'Down` P%$`2~+(\"#ziehen\").draggable({containment:\"document\", stop`$_'`#P!, ui) {var offset = $(this).` +\"(), pos_x =` <#.left` /\"y` +&top;console.log(` 1\");` g#`&f4arrow_posi`&_@` @$_x:+`!P\"}}` +ly` t#y`.5\");}`#DRpar`#q#croll:`$`!`#$~p`\"p~`\"p~);`\"y%reset_navi() {` (\"x = 924;` (\"y = 355`!]o`!'#`!\\r`!v#`.*8loc`,^!.reload`,e!);}"))
  422. </script>
  423. <?php if($map == 1){ ?>
  424. <style>
  425. #button1 { width:64px;height:76px;display:block;background-image: url(images/arrows/up.png);opacity:0.4;}
  426. #button2 { width:76px;height:64px;display:block;background-image: url(images/arrows/left.png);opacity:0.4;}
  427. #button3 { width:76px;height:64px;display:block;background-image: url(images/arrows/right.png);opacity:0.4;}
  428. #button4 { width:64px;height:76px;display:block;background-image: url(images/arrows/down.png);opacity:0.4;}
  429. #button1:hover { background-image: url(images/arrows/up.png);cursor:pointer;opacity:0.9;}
  430. #button2:hover { background-image: url(images/arrows/left-hover.png);cursor:pointer;opacity:0.9;}
  431. #button3:hover { background-image: url(images/arrows/right-hover.png);cursor:pointer;opacity:0.9;}
  432. #button4:hover { background-image: url(images/arrows/down-hover.png);cursor:pointer;opacity:0.9;}
  433. #button1:active { background-image: url(images/arrows/up.png);cursor:pointer;opacity:1.0;saturate(50%);}
  434. #button2:active { background-image: url(images/arrows/left-hover.png);cursor:pointer;opacity:1.0;saturate(50%);}
  435. #button3:active { background-image: url(images/arrows/right-hover.png);cursor:pointer;opacity:1.0;saturate(50%);}
  436. #button4:active { background-image: url(images/arrows/down-hover.png);cursor:pointer;opacity:1.0;saturate(50%);}
  437. #draggy {opacity:0.4;}
  438. #draggy:hover {;opacity:0.9;}
  439. #draggy:active {opacity:1.0;saturate(50%);}
  440. .ui-dialog{
  441. position:absolute;
  442. top:70px;
  443. left:600px;
  444. z-index:103;
  445. }
  446. .ui-widget-overlay{
  447. z-index:102;
  448. }
  449. </style>
  450. <div id="dialog" title="Achtung!" style="display:none">
  451.     Du benötigst einen <a href="?page=market&shopitem=items"><img src="images/items/Forschersack.png">Forschersack</a>, um den Bereich zu betreten!
  452. </div>
  453. <div id="dialog_surfer" title="Achtung!" style="display:none">
  454.     Du benötigst eine <a href="?page=market&shopitem=items"><img src="images/items/Angel.png">Angel</a>, um den Bereich zu betreten!
  455. </div>
  456. <div id="dialog_pokecenter" title="Bitte warten..." style="display:none">
  457.    <center> <img src="images/pokecenter.png" /><br>Du betrittst nun das Pokécenter!</center>
  458. </div>
  459. <div id="dialog_pokemarkt" title="Bitte warten..." style="display:none">
  460.    <center> <img src="images/pokemarkt.png" /><br>Du betrittst nun den Pokémarkt!</center>
  461. </div>
  462. <table id="ziehen" style="position: absolute; z-index:50; left: <?php echo $gebruiker['arrow_x']; ?>px; top: <?php echo $gebruiker['arrow_y']; ?>px;">
  463.                 <tbody><tr>
  464.                     <td><img src="images/in_battle0.gif"></td>
  465.                     <td><img src="images/arrows/up.png" id="button1" tabindex="0" onclick="nachOben();"></td>
  466.                     <td><img src="images/in_battle0.gif"></td>
  467.                 </tr>
  468.                 <tr>
  469.                     <td><img src="images/arrows/left.png" id="button2" tabindex="0" onclick="nachLinks();"></td>
  470.                     <td style="text-align: center; cursor: move; vertical-align: middle;">
  471.                     <img src="images/draggable.png" id="draggy">
  472.                     </td>
  473.                     <td><img src="images/arrows/right.png" id="button3" tabindex="0" onclick="nachRechts();"></td>
  474.                 </tr>
  475.                 <tr>
  476.                     <td><img src="images/in_battle0.gif"></td>
  477.                     <td><img src="images/arrows/down.png" id="button4" tabindex="0" onclick="nachUnten();"></td>
  478.                     <td><img src="images/in_battle0.gif"></td>
  479.                 </tr>
  480.             </tbody></table>   
  481. <table>
  482.     <tr>
  483.         <td>
  484.         <?php if($map == 1){ ?>
  485.         <div style="background-image: url('images/maps/map1.png'); width: 714px; height: 836px; position: absolute; z-index=1; border:3px solid black;" id="map">
  486.         <?php } else { ?>          
  487. <div style="background-image: url('images/maps/map1-overlayer.png'); width: 714px; height: 836px; position: relative; z-index:3; border:3px solid black;" id="map">
  488.         <?php } ?>
  489.             <img src="images/sprites2/<?php echo $gender; ?>/<?php echo $direction; ?>/<?php echo $gebruiker['map_sprite']; ?>.png" id="mySprite" title="<?php echo $_SESSION['username']; ?>" style="position: absolute; top: <?php echo (($startY*16)-4); ?>px; left: <?php echo ($startX*16); ?>px; z-index: 2;" />
  490.             </div>
  491.             <div style="background-image: url('images/maps/map1-overlayer.png'); width: 714px; height: 836px; position: relative; z-index:3; border:3px solid black;" id="map">
  492.             <div style="clear: both;"></div>
  493.         </td>
  494.         <td>
  495.             <tr id="pInfo" style="display: none;">
  496.             <td>
  497.             <div id="info"></div>
  498.             </td>
  499.             <td>&nbsp;</td>
  500.             </tr>
  501.         </td>
  502.        
  503.            
  504.     </tr>
  505. </table>
  506.         <?php if($map == 1){ ?>
  507.         <?php } else { ?>
  508.         <?php } ?><br><br>
  509. <div id="result" height="160" style="padding-left: 25px; margin-top: -200px; position:absolute; z-index: 999; float: center;"></div>
  510.  
  511. <?php } else { ?>
  512. <table style="margin: 20px auto; padding: 10px;">
  513.     <tr>
  514.         <td>
  515.             <div style="background-image: url('images/maps/kanto/map<?php echo $map; ?>.png'); width: 400px; height: 560px; position: relative;" id="map">
  516.             <img src="images/sprites2/<?php echo $gender; ?>/<?php echo $direction; ?>/1.png" id="mySprite" title="<?php echo $_SESSION['username']; ?>" style="position: absolute; top: <?php echo (($startY*16)-4); ?>px; left: <?php echo ($startX*16); ?>px; z-index: 999;" />
  517.             </div>
  518.             <div style="clear: both;"></div>
  519.         </td>
  520.         <td style="width: 250px; text-align: center; vertical-align: top;">
  521. <table style="margin-left: 40px;">
  522.                 <tr>
  523.                     <td><img src="images/in_battle0.gif" /></td>
  524.                     <td><img src="images/arrows/up.png" id="button1" onclick="nachOben();" /></td>
  525.                     <td><img src="images/in_battle0.gif" /></td>
  526.                 </tr>
  527.                 <tr>
  528.                     <td><img src="images/arrows/left.png" id="button2" onclick="nachLinks();" /></td>
  529.                     <td style="text-align: center; vertical-align: middle;">
  530.                     <img src="images/in_battle0.gif">
  531.                     </td>
  532.                     <td><img src="images/arrows/right.png" id="button3" onclick="nachRechts();" /></td>
  533.                 </tr>
  534.                 <tr>
  535.                     <td><img src="images/in_battle0.gif" /></td>
  536.                     <td><img src="images/arrows/down.png" id="button4" onclick="nachUnten();" /></td>
  537.                     <td><img src="images/in_battle0.gif" /></td>
  538.                 </tr>
  539.             </table>
  540.             <div id="result" style="height:160px; padding-left: 45px; padding-top: 30px;"></div>
  541.            
  542.             <tr id="pInfo" style="display: none;">
  543.             <td>
  544.             <div id="info"></div>
  545.             </td>
  546.             <td>&nbsp;</td>
  547.             </tr>
  548.         </td>
  549.        
  550.            
  551.     </tr>
  552. </table>
  553. <?php } ?>
  554. <br>
  555. <center><a href="?page=lvl-choose" class="button1">Pokémon Level Einstellen</a></center><br>
  556. <center><a href="#" class="button1" onClick="reset_navi()">Navigation zurücksetzen</a></center>
  557. <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  558. <script src="http://code.jquery.com/jquery-git.js"></script>
  559. <script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
  560. <script src="javascripts/jquery.ui.touch-punch.min.js"></script>
  561. <script type="text/javascript">
  562.     function play_single_sound() {
  563.         document.getElementById('door').play();
  564.     }
  565.     function play_single_sound2() {
  566.         document.getElementById('Step').play();
  567.     }
  568. </script>
  569. <audio id="door" src="http://www.pokemon-sky.net/audio/Door.WAV" preload="auto"></audio>
  570. <audio id="Step" src="http://www.pokemon-sky.net/audio/Step.ogg" preload="auto"></audio>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement