Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Security laden
- include('includes/security.php');
- #Premium security!
- if($gebruiker['in_hand'] == 0) header('location: index.php');
- $map2 = (int) $_GET['map'];
- $ap2= mysql_real_escape_string($map2);
- $map = strip_tags($ap2);
- $uid = (int) $_SESSION['id'];
- if($uid == 1){
- //echo $gebruiker['map_y'];
- }
- //Are player pokemon alive?
- $kill_query = mysql_query("SELECT `opzak`, `leven`, SUM(`leven`) as `endleben` FROM `pokemon_speler` WHERE `user_id`='{$uid}' AND `opzak`='ja'");
- while ($endleben = mysql_fetch_assoc($kill_query)){
- if($endleben['endleben'] <= 0){
- header("Location: ?page=pokemoncenter&pokedead");
- }
- }
- switch ($map) {
- case '1':
- $rand_start_x_16 = rand(8, 13);
- $rand_start_y_16 = rand(17, 20);
- $startX = $rand_start_x_16;
- $startY = $rand_start_y_16;
- $mapTitle = 'Start-Zone';
- if($gebruiker['Forschersack'] == 0 && $gebruiker['Angel'] == 0){
- $tileArray = '
- var map = [
- [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],
- [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],
- [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],
- [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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11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 3],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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, 7],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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]
- ];
- '; break; }
- elseif($gebruiker['Forschersack'] == 1 && $gebruiker['Angel'] == 0){
- $tileArray = '
- var map = [
- [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],
- [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],
- [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],
- [6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 6, 1, 0, 0, 1, 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 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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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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1, 7, 7, 7, 7, 7, 7, 7, 7],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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],
- [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]
- ];
- '; break; }
- elseif($gebruiker['Forschersack'] == 0 && $gebruiker['Angel'] == 1){
- $tileArray = '
- var map = [
- [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],
- [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],
- [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],
- [6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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],
- [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],
- [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],
- [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]
- ];
- '; break; }
- default:
- echo '<META HTTP-EQUIV="Refresh" Content="0; URL=index.php?page=attack/beta_map&map=1">';
- exit;
- break;
- }
- $time = time();
- $tenMinsAgo = $time - (60*10);
- $usersQuery = mysql_query("SELECT * FROM `pb20_14users` WHERE `map_num`='{$map}' AND `map_lastseen`>='{$tenMinsAgo}'");
- $numUsersOnMap = mysql_num_rows($usersQuery);
- $usersArray = array();
- $i = 0; $onMap = false;
- //player sprite direction check
- $directionQuery = mysql_query("SELECT `direction` FROM `pb20_14users` WHERE `user_id`='{$uid}' LIMIT 1");
- $direction = mysql_fetch_assoc($directionQuery);
- $direction = $direction['direction'];
- //following pokemon check
- $pokefollowQuery = mysql_query("SELECT `wild_id` FROM `pokemon_speler` WHERE `user_id`='{$uid}' AND `opzak`='ja' ORDER BY `opzak_nummer` LIMIT 1");
- $pokefollow = mysql_fetch_assoc($pokefollowQuery);
- $pokefollow = $pokefollow['wild_id'];
- mysql_query("UPDATE `pb20_14users` SET `follow`='{$pokefollow}' WHERE `user_id`='{$uid}'");
- //shiny pokemon follow check
- $pokefollowShinycheck = mysql_query("SELECT `wild_id`, `shiny` FROM `pokemon_speler` WHERE `user_id`='{$uid}' AND `opzak`='ja' ORDER BY `opzak_nummer` LIMIT 1");
- $pokeshiny = mysql_fetch_assoc($pokefollowShinycheck);
- $pokeshiny = $pokeshiny['shiny'];
- //shiny check
- if($pokeshiny['shiny'] == "1"){
- $shinypokemon = "/shiny/";
- }
- else
- {
- $shinypokemon = "";
- }
- //player gender check
- if($gebruiker['gender'] == "female"){
- $gender = "female";
- }
- else
- {
- $gender = "male";
- }
- //other players pokemon team
- $player_pokemon = mysql_query("SELECT pokemon_speler.*, pokemon_wild.naam, pokemon_wild.type1, pokemon_wild.type2
- FROM pokemon_speler
- INNER JOIN pokemon_wild
- ON pokemon_speler.wild_id = pokemon_wild.wild_id
- WHERE `user_id`='{$uid}' AND `opzak`='ja' ORDER BY `opzak_nummer` ASC");
- $mySpriteQuery = mysql_query("SELECT `map_sprite` FROM `pb20_14users` WHERE `user_id`='{$uid}' LIMIT 1");
- $mySprite = mysql_fetch_assoc($mySpriteQuery);
- $mySprite = $mySprite['map_sprite'];
- while ($user = mysql_fetch_assoc($usersQuery)) {
- if ($user['user_id'] == $uid) {
- $startX = $user['map_x'];
- $startY = $user['map_y'];
- $onMap = true;
- continue;
- }
- $usersArray[$i]['username'] = $user['username'];
- $usersArray[$i]['id'] = (int) $user['user_id'];
- $usersArray[$i]['x'] = (int) $user['map_x'];
- $usersArray[$i]['y'] = (int) $user['map_y'];
- $usersArray[$i]['sprite'] = (int) $user['map_sprite'];
- $usersArray[$i]['follow'] = (int) $user['follow'];
- $usersArray[$i]['direction'] = $user['direction'];
- $usersArray[$i]['gender'] = $user['gender'];
- $usersArray[$i]['in_battle'] = $user['in_battle'];
- $usersArray[$i]['map_wild'] = (int) $user['map_wild'];
- $usersArray[$i]['admin'] = (int) $user['admin'];
- $usersArray[$i]['emotion'] = (int) $user['emotion'];
- $usersArray[$i]['walk_animation'] = (int) $user['walk_animation'];
- $i++;
- }
- mysql_query("UPDATE `pb20_14users` SET `map_num`='{$map}', `map_x`='{$startX}', `map_y`='{$startY}', `map_lastseen`='{$time}' WHERE `user_id`='{$uid}'");
- if (!$onMap) {
- $numUsersOnMap++;
- }
- $hack_query = mysql_query("SELECT * FROM `fight_pokemon` WHERE `user_id`='{$uid}' ORDER BY `id` DESC LIMIT 1");
- $hack_check = mysql_fetch_assoc($hack_query);
- $gebied = $gebruiker['map_gebied'];
- if($_GET['id'] != "") {
- $wid = $_GET['id'];
- $leveltegenstander = $_GET['level'];
- include("attack/wild/wild-start.php");
- if($_GET['id'] !== $hack_check['pokemon_id']){
- echo "<div class='red'>Fehler!!</div>";
- }
- else if($_GET['level'] !== $hack_check['pokemon_level']){
- echo "<div class='red'>Fehler!!</div>";
- }
- else
- create_new_attack($wid,$leveltegenstander,$gebied);
- if(empty($info['bericht'])) header("Location: ?page=attack/wild/wild-attack");
- else echo "<div class='red'>".$txt['alert_no_pokemon']."</div>";
- }
- $walkrand = rand(1, 2);
- ?>
- <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>
- <?php if ($gebruiker['rank'] < 3){ ?>
- <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>
- <?php } ?>
- <?php if($gebruiker['Alte Krone'] >= 1){ ?>
- <center><div class="rare_notice">
- 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 />
- Die Chance, legendäre Pokémon anzutreffen, ist um das <b>Doppelte</b> erhöht!
- </div></center>
- <?php } ?>
- <script>
- var movements = {
- upleft : {up: -1, left: -1},
- up : {up: -1, left: 0},
- upright : {up: -1, left: 1},
- left : {up: 0, left: -1},
- right : {up: 0, left: 1},
- downleft : {up: 1, left: -1},
- down : {up: 1, left: 0},
- downright : {up: 1, left: 1},
- };
- var x = <?php echo $startX; ?>, y = <?php echo $startY; ?>;
- <?php echo $tileArray; ?>
- 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#);}}"))
- var users = <?php echo json_encode($usersArray); ?>;
- 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> •` 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` +⊤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!);}"))
- </script>
- <?php if($map == 1){ ?>
- <style>
- #button1 { width:64px;height:76px;display:block;background-image: url(images/arrows/up.png);opacity:0.4;}
- #button2 { width:76px;height:64px;display:block;background-image: url(images/arrows/left.png);opacity:0.4;}
- #button3 { width:76px;height:64px;display:block;background-image: url(images/arrows/right.png);opacity:0.4;}
- #button4 { width:64px;height:76px;display:block;background-image: url(images/arrows/down.png);opacity:0.4;}
- #button1:hover { background-image: url(images/arrows/up.png);cursor:pointer;opacity:0.9;}
- #button2:hover { background-image: url(images/arrows/left-hover.png);cursor:pointer;opacity:0.9;}
- #button3:hover { background-image: url(images/arrows/right-hover.png);cursor:pointer;opacity:0.9;}
- #button4:hover { background-image: url(images/arrows/down-hover.png);cursor:pointer;opacity:0.9;}
- #button1:active { background-image: url(images/arrows/up.png);cursor:pointer;opacity:1.0;saturate(50%);}
- #button2:active { background-image: url(images/arrows/left-hover.png);cursor:pointer;opacity:1.0;saturate(50%);}
- #button3:active { background-image: url(images/arrows/right-hover.png);cursor:pointer;opacity:1.0;saturate(50%);}
- #button4:active { background-image: url(images/arrows/down-hover.png);cursor:pointer;opacity:1.0;saturate(50%);}
- #draggy {opacity:0.4;}
- #draggy:hover {;opacity:0.9;}
- #draggy:active {opacity:1.0;saturate(50%);}
- .ui-dialog{
- position:absolute;
- top:70px;
- left:600px;
- z-index:103;
- }
- .ui-widget-overlay{
- z-index:102;
- }
- </style>
- <div id="dialog" title="Achtung!" style="display:none">
- Du benötigst einen <a href="?page=market&shopitem=items"><img src="images/items/Forschersack.png">Forschersack</a>, um den Bereich zu betreten!
- </div>
- <div id="dialog_surfer" title="Achtung!" style="display:none">
- Du benötigst eine <a href="?page=market&shopitem=items"><img src="images/items/Angel.png">Angel</a>, um den Bereich zu betreten!
- </div>
- <div id="dialog_pokecenter" title="Bitte warten..." style="display:none">
- <center> <img src="images/pokecenter.png" /><br>Du betrittst nun das Pokécenter!</center>
- </div>
- <div id="dialog_pokemarkt" title="Bitte warten..." style="display:none">
- <center> <img src="images/pokemarkt.png" /><br>Du betrittst nun den Pokémarkt!</center>
- </div>
- <table id="ziehen" style="position: absolute; z-index:50; left: <?php echo $gebruiker['arrow_x']; ?>px; top: <?php echo $gebruiker['arrow_y']; ?>px;">
- <tbody><tr>
- <td><img src="images/in_battle0.gif"></td>
- <td><img src="images/arrows/up.png" id="button1" tabindex="0" onclick="nachOben();"></td>
- <td><img src="images/in_battle0.gif"></td>
- </tr>
- <tr>
- <td><img src="images/arrows/left.png" id="button2" tabindex="0" onclick="nachLinks();"></td>
- <td style="text-align: center; cursor: move; vertical-align: middle;">
- <img src="images/draggable.png" id="draggy">
- </td>
- <td><img src="images/arrows/right.png" id="button3" tabindex="0" onclick="nachRechts();"></td>
- </tr>
- <tr>
- <td><img src="images/in_battle0.gif"></td>
- <td><img src="images/arrows/down.png" id="button4" tabindex="0" onclick="nachUnten();"></td>
- <td><img src="images/in_battle0.gif"></td>
- </tr>
- </tbody></table>
- <table>
- <tr>
- <td>
- <?php if($map == 1){ ?>
- <div style="background-image: url('images/maps/map1.png'); width: 714px; height: 836px; position: absolute; z-index=1; border:3px solid black;" id="map">
- <?php } else { ?>
- <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">
- <?php } ?>
- <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;" />
- </div>
- <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">
- <div style="clear: both;"></div>
- </td>
- <td>
- <tr id="pInfo" style="display: none;">
- <td>
- <div id="info"></div>
- </td>
- <td> </td>
- </tr>
- </td>
- </tr>
- </table>
- <?php if($map == 1){ ?>
- <?php } else { ?>
- <?php } ?><br><br>
- <div id="result" height="160" style="padding-left: 25px; margin-top: -200px; position:absolute; z-index: 999; float: center;"></div>
- <?php } else { ?>
- <table style="margin: 20px auto; padding: 10px;">
- <tr>
- <td>
- <div style="background-image: url('images/maps/kanto/map<?php echo $map; ?>.png'); width: 400px; height: 560px; position: relative;" id="map">
- <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;" />
- </div>
- <div style="clear: both;"></div>
- </td>
- <td style="width: 250px; text-align: center; vertical-align: top;">
- <table style="margin-left: 40px;">
- <tr>
- <td><img src="images/in_battle0.gif" /></td>
- <td><img src="images/arrows/up.png" id="button1" onclick="nachOben();" /></td>
- <td><img src="images/in_battle0.gif" /></td>
- </tr>
- <tr>
- <td><img src="images/arrows/left.png" id="button2" onclick="nachLinks();" /></td>
- <td style="text-align: center; vertical-align: middle;">
- <img src="images/in_battle0.gif">
- </td>
- <td><img src="images/arrows/right.png" id="button3" onclick="nachRechts();" /></td>
- </tr>
- <tr>
- <td><img src="images/in_battle0.gif" /></td>
- <td><img src="images/arrows/down.png" id="button4" onclick="nachUnten();" /></td>
- <td><img src="images/in_battle0.gif" /></td>
- </tr>
- </table>
- <div id="result" style="height:160px; padding-left: 45px; padding-top: 30px;"></div>
- <tr id="pInfo" style="display: none;">
- <td>
- <div id="info"></div>
- </td>
- <td> </td>
- </tr>
- </td>
- </tr>
- </table>
- <?php } ?>
- <br>
- <center><a href="?page=lvl-choose" class="button1">Pokémon Level Einstellen</a></center><br>
- <center><a href="#" class="button1" onClick="reset_navi()">Navigation zurücksetzen</a></center>
- <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
- <script src="http://code.jquery.com/jquery-git.js"></script>
- <script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
- <script src="javascripts/jquery.ui.touch-punch.min.js"></script>
- <script type="text/javascript">
- function play_single_sound() {
- document.getElementById('door').play();
- }
- function play_single_sound2() {
- document.getElementById('Step').play();
- }
- </script>
- <audio id="door" src="http://www.pokemon-sky.net/audio/Door.WAV" preload="auto"></audio>
- <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