[Release] Pokemon-Area based browser game

Page 55 of 78 FirstFirst ... 545474849505152535455565758596061626365 ... LastLast
Results 811 to 825 of 1163
  1. #811
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    oh k nevermind

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

    Re: [Release] Pokemon-Area based browser game

    I can't add Background Image for the message box

    Screenshot by Lightshot

    - - - Updated - - -

    I have 2 Bugs ...
    whenever i catch a pokemon it goes in my team instead of house

    http://prntscr.com/2bix4k

    2nd i need to refresh for each turn in the battles ( all WIld , Trainer , Duel)

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

    Re: [Release] Pokemon-Area based browser game

    Lol a sql injection ( i missed 1) and my site went down :? :(

  4. #814
    Enthusiast SimaoMP is offline
    MemberRank
    Dec 2013 Join Date
    26Posts

    Re: [Release] Pokemon-Area based browser game

    your server were attacked???

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

    Re: [Release] Pokemon-Area based browser game

    Yea .. i fixed almost all the bugs but forgot the ones in the activate .php

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

    Re: [Release] Pokemon-Area based browser game

    can someone explain what to do with this file (copy_the_cron_day_php_file.txt)



    regards

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

    Re: [Release] Pokemon-Area based browser game

    Copy that in the cron_day.php

    - - - Updated - - -

    F##k This shit .. i am recoding whole of star once again

    THIS TIME IMMA TRANSLATE THE SHIT WITH NO F$$% BUGS !!
    WILL SHARE ALOT OF STUFF TOO
    STAY TUNED !

    - - - Updated - - -

    HMMM
    ok i need some help with the Moving maps

    I am done with the basic ajax

    So anyone wanna help me develop it ?

    We both will share equal credit to make it

    - - - Updated - - -

    a simple ajax
    Not ready yet
    still if you want to contribute then PM ME


    Code:
    <?php
    
    require_once 'includes/config.php';
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    if (!isset($_GET['x'])) {
    
    
    	$fh = @fopen('map_ajax_stuff.txt', 'a') or die();
    
    
    	fwrite($fh, "{$_SESSION['user_id']} - {$_SESSION['username']} - ". date('l jS \of F Y h:i:s A') ." - ". time() . PHP_EOL);
    
    
    	fclose($fh);
    
    
    }
    
    
    
    
    
    
    
    
    
    
    $map = (int) $_GET['map'];
    
    
    $uid = (int) $_SESSION['user_id'];
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    switch ($map) {
    
    
    	case '1':
    
    
    	
    
    
    		// grass
    
    
    		$wildPokemon = array(
    
    
    			 'Gligar', 'Pidgey', 'Weedle', 'Nidoran (f)', 'Nidoran (m)', 'Exeggcute', 
    
    
    			 'Foongus', 'Karrablast', 'Kricketot', 'Combee', 'Nincada', 'Sewaddle', 'Caterpie'
    
    
    		);
    
    
    		
    
    
    		$legends = array(
    
    
    			'Rayquaza', 'Azelf', 'Mesprit', 'Shaymin', 'Shaymin (Sky)', 'Virizion', 'Celebi',
    
    
    			'Mew', 'Tornadus', 'Thunderus', 'Jirachi', 'Latias', 'Latios', 'Raikou',
    
    
    		
    
    
    			
    
    
    		);
    
    
    	break;
    
    
    	
    
    
    	case '2':
    
    
    		//water
    
    
    		$wildPokemon = array(
    
    
    			'Krabby', 'Shellder', 'Seel', 'Slowpoke', 'Tentacool', 'Poliwag', 'Psyduck', 'Squirtle', 'Horsea',
    
    
    			'Goldeen', 'Staryu', 'Magikarp', 'Lapras', 'Vaporeon', 'Chinchou', 'Lanturn', 'Krabby', 'Azurill',
    
    
    			'Remoraid', 'Wingull', 'Shellos (West)', 'Shellos (East)', 'Mantyke', 'Tympole', 'Buizel', 'Cubchoo',
    
    
    			'Panpour', 'Wailmer', 'Mudkip'
    
    
    		);
    
    
    		
    
    
    		$legends = array(
    
    
    			'Keldeo', 'Tornadus (Therian)', 'Kyogre', 'Suicune', 'Azelf', 'Azelf', 'Uxie', 'Latias', 'Latios', 'Raikou', 'Manaphy', 'Phione'
    
    
    		);
    
    
    	break;
    
    
    	
    
    
    	case '3':
    
    
    		//rock
    
    
    		$wildPokemon = array(
    
    
    			'Onix', 'Geodude', 'Omanyte', 'Kabuto', 'Aerodactyl', 'Larvitar', 'Archen', 'Lunatone', 'Shieldon', 
    
    
    			'Solrock', 'Lileep', 'Anorith', 'Dratini', 'Charmander', 'Rattata', 'Spearow', 'Ekans', 'Igglybuff',
    
    
    			'Zubat', 'Meowth', 'Mankey', 'Abra', 'Gastly', 'Cubone', 'Rhyhorn', 'Kangaskhan', 'Ditto', 'Shuckle',
    
    
    			'Riolu', 'Roggenrola', 'Pawniard', 'Phanpy', 'Bagon', 'Golett', 'Deino', 'Scraggy', 'Durant', 'Cleffa',
    
    
    			'Mawile', 'Trapinch', 'Shieldon', 'Sandile', 'Axew', 'Druddigon'
    
    
    		);
    
    
    		
    
    
    		$legends = array(
    
    
    			'Entei', 'Raikou', 'Heatran', 'Reshiram', 'Moltres', 'Zekrom', 'Genesect', 'Darkrai', 'Rayquaza',
    
    
    			'Giratina', 'Groudon', 'Regice', 'Regirock', 'Registeel', 'Jirachi', 'Mew', 'Mewtwo', 'Ho-oh',
    
    
    			'Dialga', 'Palkia', 'Landorus', 'Victini', 'Terrakion', 'Cobalion', 'Landorus (Therian)' , 'Crystalic Wynaut'
    
    
    		);
    
    
    	break;
    
    
    	
    
    
    	case '4':
    
    
    		//ice
    
    
    		$wildPokemon = array(
    
    
    			'Jynx', 'Lapras', 'Cloyster', 'Swinub', 'Delibird', 'Smoochum', 'Spheal', 'Froslass',
    
    
    			'Sneasel', 'Wynaut', 'Vanillite', 'Jynx', 'Seel', 'Bronzor', 'Smoochum', 'Nincada', 'Swinub',
    
    
    			'Unown (A)', 'Unown (B)', 'Unown (C)', 'Unown (D)', 'Unown (E)', 'Unown (Em)', 'Unown (F)',
    
    
    			'Unown (G)', 'Unown (H)', 'Unown (I)', 'Unown (J)', 'Unown (K)', 'Unown (L)', 'Unown (M)',
    
    
    			'Unown (N)', 'Unown (O)', 'Unown (P)', 'Unown (Q)', 'Unown (Qm)', 'Unown (R)', 'Unown (S)',
    
    
    			'Unown (T)', 'Unown (U)', 'Unown (V)', 'Unown (W)', 'Unown (X)', 'Unown (Y)', 'Unown (Z)'
    
    
    		);
    
    
    		
    
    
    		$legends = array(
    
    
    			'Regice', 'Lugia', 'Suicune', 'Deoxys', 'Kyurem', 'Rotom', 'Thundurus (Therian)',
    
    
    		);
    
    
    	break;
    
    
    	
    
    
    	case '5':
    
    
    		//ghost
    
    
    		$wildPokemon = array(
    
    
    			'Gastly', 'Golurk', 'Misdreavus', 'Shuppet', 'Cofagrigus',
    
    
    			'Drifloon', 'Litwick', 'Frillish', 'Duskull'
    
    
    			
    
    
    		);
    
    
    		
    
    
    		$legends = array(
    
    
    			'Darkrai', 'Giratina', 'Kyurem (Black)'
    
    
    		);
    
    
    	break;
    
    
      
    
    
            case '41':
    
    
    		//legend
    
    
    		$wildPokemon = array(
    
    
    			'Gengar'
    
    
    		);
    
    
    		
    
    
    		$legends = array(
    
    
    			'Darkrai', 'Giratina'
    
    
    		);
    
    
    	break;
    
    
    	
    
    
    	
    
    
    	case '6':
    
    
    		// Flying Throne
    
    
    		$wildPokemon = array(
    
    
    			 'Scyther', 'Pidgey', 'Gligar', 'Drifloon', 'Archen', 'Emolga', 
    
    
    			 'Rufflet', 'Woobat', 'Mothim', 'Combee', 'Delibird', 'Swablu', 'Yanma',
    
    
    			 'Starly', 'Pidove', 'Zubat', 'Hoothoot',
    
    
    			 
    
    
    		);
    
    
    		
    
    
    		$legends = array(
    
    
    			'Crystalic Gligar', 'Azelf', 'Crystalic Gligar', 'Thundurus', 'Landorus', 'Tornadus', 'Celebi',
    
    
    			'Mew', 'Tornadus', 'Thunderus', 'Rayquaza', 'Latias', 'Latios', 'Moltres', 'Crystalic Gligar'
    
    
    		);
    
    
    	break;
    
    
    
    
    
    
            default:
    
    
    		die();
    
    
    	break;
    
    
    }
    
    
    
    
    
    
    $x = (int) $_GET['x'];
    
    
    $x = $x < 0 || $x > 25 ? 3 : $x;
    
    
    
    
    
    
    $y = (int) $_GET['y'];
    
    
    $y = $y < 0 || $y > 25 ? 3 : $y;
    
    
    
    
    
    
    $time = time();
    
    
    
    
    
    
    mysql_query("UPDATE `gebruikers` SET `map_num`='{$map}', `map_x`='{$x}', `map_y`='{$y}', `map_lastseen`='{$time}' WHERE `user_id`='{$uid}'");
    
    
    
    
    
    
    if (rand(1,5) == 3) {
    
    
    	$type = rand(1, 300) == 3 ? 'Shiny ' : '1' ;
    
    
    
    
    	$isLegend = rand(1, 150) == 100 ? true : false ;
    
    
    
    
    
    
    	
    
    
    	
    
    
    	
     if {
    
    
    		$randomPokemon = $wildPokemon[ array_rand($wildPokemon) ];
    
    
    		$randomLevel = rand(5, 15);
    
    
    	}
    
    
    	
    
    
    	$query = mysql_query("SELECT * FROM `pokemon_wild` WHERE `naam`='{$randomPokemon}' LIMIT 1");
    
    
    	
    
    
    	if (mysql_num_rows($query) == 1) {
    
    
    		$pokeRow = mysql_fetch_assoc($query);
    
    
    		
     if(($gebruiker['rank'] > 15) && (!empty($gebruiker['lvl_choose']))){
              $level = explode("-", $gebruiker['lvl_choose']);
              $leveltegenstander = rand($level[0],$level[1]);
            }
            else $leveltegenstander = rankpokemon($gebruiker['rank']);
             include("attack/wild/wild-start.php");
              $info = create_new_attack($query['wild_id'],$leveltegenstander,$gebied);
              if(empty($info['bericht'])) header("Location: ?page=attack/wild/wild-attack");
              else echo "<div class='red'>".$txt['alert_no_pokemon']."</div>";
    
    
    	
    
    
    		$query = mysql_query("SELECT * FROM `pokemon_speler` WHERE `name`='{$type}{$randomPokemon}' AND `user_id`='{$uid}' LIMIT 1");	
    
    
    		
    
    
    		$json = array('name'=>$type.$randomPokemon, 'level'=>$randomLevel, 'caught'=>mysql_num_rows($query));
    
    
    		echo json_encode($json);
    
    
    	} else {
    
    
    		$fh = @fopen('map_errors.txt', 'a') or die();
    
    
    		fwrite($fh, "Failed to find: '{$randomPokemon}' ". time() . PHP_EOL);
    
    
    		fclose($fh);
    
    
    	
    
    
    		echo json_encode(array());
    
    
    	}
    
    
    } elseif (rand(1,10) == 3) {
    
    
    	$randMoney = rand(1, 20);
    
    
    	mysql_query("UPDATE `gebruikers` SET `silver`=`silver`+{$randSilver} WHERE `user_id`='{$uid}'");
    
    
    	
    
    
    	$json = array('money'=>$randSilver);
    
    
    	echo json_encode($json);
    
    
    } else {
    
    
    	echo json_encode(array());
    
    
    }
    
    
    
    
    
    
    ?>
    - - - Updated - - -

    Database :http://prntscr.com/2bkrwf

    - - - Updated - - -

    If anyone wants to ContriBute you CAN Message me or add me on Facebook
    https://www.facebook.com/Super.Neil.Sharma

    - - - Updated - - -

    i am done with the maps as well

    Dunno why they don't work :/

    - - - Updated - - -
    @felixcruzer .. wanna help ?

    - - - Updated - - -
    @Mugaru @SimaoMP

    - - - Updated - - -
    @lilsnow

    - - - Updated - - -

    Its not working :/

    http://prntscr.com/2bl1yg

    - - - Updated - - -

    so contributors :/

  8. #818
    Enthusiast SimaoMP is offline
    MemberRank
    Dec 2013 Join Date
    26Posts

    Re: [Release] Pokemon-Area based browser game

    i can help if u want...

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

    Re: [Release] Pokemon-Area based browser game

    Add me on Facebook then or pm me here

  10. #820
    Apprentice lilsnow is offline
    MemberRank
    Mar 2012 Join Date
    19Posts

    Re: [Release] Pokemon-Area based browser game

    @KiruHoshino: thanks for share ur new adminstrator sector, but I have a favor to ask you, can u help me with translation? .. i dont understand Hungarian :/

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

    Re: [Release] Pokemon-Area based browser game

    @lilsnow do u want the english language files ?

  12. #822
    Apprentice lilsnow is offline
    MemberRank
    Mar 2012 Join Date
    19Posts

    Re: [Release] Pokemon-Area based browser game

    @Raftaar: yes please :)

  13. #823
    Enthusiast SimaoMP is offline
    MemberRank
    Dec 2013 Join Date
    26Posts

    Re: [Release] Pokemon-Area based browser game

    lilsnow*, what help u need with translating?
    Last edited by SimaoMP; 16-12-13 at 04:53 PM.

  14. #824
    Apprentice lilsnow is offline
    MemberRank
    Mar 2012 Join Date
    19Posts

    Re: [Release] Pokemon-Area based browser game

    @SimaoMP: hungarian to english ... also i think u mean that..

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

    Re: [Release] Pokemon-Area based browser game

    I will give Tom morning I need to sleep now



Advertisement