Pokemon-Area Source (Discussion, Share and Support)

Page 1 of 4 1234 LastLast
Results 1 to 15 of 59
  1. #1
    RaGEZONER || Webdevloper KiruHoshino is offline
    MemberRank
    Oct 2011 Join Date
    HungaryLocation
    648Posts

    Pokemon-Area Source (Discussion, Share and Support)

    Since the original topic has been closed (which I agree with 100%) to open this topic would also support and discussion will take place.
    Dispute and Showoff excluded. These users will be reported to the moderator.

    Original Forum Thread: http://forum.ragezone.com/f705/relea...r-game-897861/

    Thanks.


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

    Re: Pokemon-Area Source (Discussion, Share and Support)

    I'm sorry, in the last thread i shared some not perfect Code.
    With this, you can prevent players from seeing pages in your game, if their pokemon are defeated.
    This is a better version of the "Player Pokémon Alive?" script:

    Spoiler:

    //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");
    }
    }


    The problem was, if 1 pokemon in team was defeated, you also got send to pokemoncenter, although other pokemon in your team has some life left.
    Now this should be fixed, i can't find any issue..
    Have fun with this

  3. #3
    Apprentice AglarCZ is offline
    MemberRank
    Feb 2013 Join Date
    15Posts

    Re: Pokemon-Area Source (Discussion, Share and Support)

    Is there any option to make faster "account leveling" ? I cant find it..

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

    Re: Pokemon-Area Source (Discussion, Share and Support)

    check the database "rank" table and edit "punten"

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

    Re: Pokemon-Area Source (Discussion, Share and Support)

    Quote Originally Posted by felixcruzer View Post
    check the database "rank" table and edit "punten"
    No. Open includes/ingame.inc.php and search this line and edit.
    Code:
    #Kijken wat speler gedaan heeft
      if($soort == "race") $soort = 1;
      elseif($soort == "werken") $soort = 2;
      elseif($soort == "whoisitquiz") $soort = 2;
      elseif($soort == "attack") $soort = 3;
      elseif($soort == "jail") $soort = 3;
      elseif($soort == "trainer") $soort = 4;
      elseif($soort == "gym") $soort = 5;
      elseif($soort == "duel") $soort = 5;
      //Kijken als speler niet boven de max zit.
      $spelerrank = mysql_fetch_assoc(mysql_query("SELECT `username`, `land`, `rankexp`, `rankexpnodig`, `rank` FROM `gebruikers` WHERE `user_id`='".$_SESSION['id']."'"));
      $rank = rank($spelerrank['rank']);
      $uitkomst = round((($rank['ranknummer']/0.11)*$soort)/3);
      mysql_query("UPDATE `gebruikers` SET `rankexp`=`rankexp`+'".$uitkomst."' WHERE `user_id`='".$_SESSION['id']."'");

  6. #6
    Account Upgraded | Title Enabled! Mugaru is offline
    MemberRank
    Feb 2012 Join Date
    190Posts

    Re: Pokemon-Area Source (Discussion, Share and Support)

    What Kiru said, you can also build in an double exp event in that line of code :-)
    Last edited by Mugaru; 15-05-14 at 11:02 AM.

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

    Re: Pokemon-Area Source (Discussion, Share and Support)

    @KiruHoshino

    check your messages its important its about moving maps

    its about whoever who is using soulless / Planet's map as base...

    please check

  8. #8
    Apprentice Marcelo Vitor is offline
    MemberRank
    Mar 2013 Join Date
    24Posts

    Re: Pokemon-Area Source (Discussion, Share and Support)

    @felixcruzer

    You will provide the player on mobile system or it will not be made ​​available to the public?

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

    Re: Pokemon-Area Source (Discussion, Share and Support)


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

    Re: Pokemon-Area Source (Discussion, Share and Support)

    New Admin feature - Account Delete

    Code:
    <?php
    include("includes/security.php");
    
    if($gebruiker['admin'] < 3) header("Location: index.php?page=home");
    
    if(isset($_POST['delete'])){
    	$user_id = $_POST['id'];
    	if($icon == "none"){
    		$msg = '<div class="red"><img src="http://forum.ragezone.com/images/icons/red.png"> Nem választottál ki senkit.</div>';
        }else{
    		mysql_query("DELETE FROM `gebruikers` WHERE `user_id`='".$user_id."'");
    		mysql_query("DELETE FROM `gebruikers_item` WHERE `user_id`='".$user_id."'");
    		mysql_query("DELETE FROM `gebruikers_badges` WHERE `user_id`='".$user_id."'");
    		mysql_query("DELETE FROM `pokemon_speler` WHERE `user_id`='".$user_id."'");
    		mysql_query("DELETE FROM `pokemon_gezien` WHERE `user_id`='".$user_id."'");
    		mysql_query("DELETE FROM `transferlijst` WHERE `userid`='".$user_id."'");
    		$msg = '<div class="green">Fiók rörölve!</div>';
    	}
    }
    ?>
    <center><img src="http://forum.ragezone.com/images/layout/logo.png"></br><h2>Fiók törlése</h2><hr></center>
    <?php echo $msg; ?>
    <form method="post">
    <table width="350">
    			<td><select name="id" class="text_select">
    				<option value="none">Válasz</option>
    				<?php 
                      $usersql = mysql_query("SELECT user_id, username FROM gebruikers WHERE `account_code`='1' ORDER BY username ASC");
                      while($user = mysql_fetch_array($usersql)){
                          echo '<option value="'.$user['user_id'].'">'.$user['username'].'</option>';
                      }
                    ?>
    			</select></td>
    			<td><input type="submit" name="delete" value="Törlés" class="button" /></td>
    </table>
    </form>
    Have nice day.
    Last edited by KiruHoshino; 21-05-14 at 10:27 PM.

  11. #11
    Apprentice Roy Rakestraw is offline
    MemberRank
    Apr 2013 Join Date
    9Posts

    Re: Pokemon-Area Source (Discussion, Share and Support)

    how do we up the exp u earn from battle for pokemon

  12. #12
    Member Snok is offline
    MemberRank
    Sep 2010 Join Date
    IsraelLocation
    80Posts

    Re: Pokemon-Area Source (Discussion, Share and Support)

    Quote Originally Posted by Roy Rakestraw View Post
    how do we up the exp u earn from battle for pokemon
    open "attack/attack.inc.php"search for this line and edit it:
    PHP Code:
              $ret['exp'] = round(((($computer_info['base_exp']*$computer_info['level'])*$extra_exp*1)/7)/$aantal); 

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

    Re: Pokemon-Area Source (Discussion, Share and Support)

    Quote Originally Posted by KiruHoshino View Post
    New Admin feature - Account Delete

    Code:
    
    
    Have nice day.
    Nice exploitable code!

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

    Re: Pokemon-Area Source (Discussion, Share and Support)

    How the javascript request[X] in the wild-attack file are working?
    From where do the requests come from?

    //got it
    Last edited by felixcruzer; 08-06-14 at 04:19 PM.

  15. #15
    Member Raggaer is offline
    MemberRank
    Jun 2013 Join Date
    96Posts

    Re: Pokemon-Area Source (Discussion, Share and Support)

    Ever heard of switch? my god those if statements killing me



Page 1 of 4 1234 LastLast

Advertisement