Thread: [525] Drop problem

Results 1 to 5 of 5
  1. #1 [525] Drop problem 
    Renown Programmer

    Nikki's Avatar
    Join Date
    Aug 2008
    Posts
    3,992
    Thanks given
    553
    Thanks received
    1,078
    Rep Power
    5000
    Thanks bang, Fixed
    Please don't add/pm me asking for RSPS help!

    Links:
    - Pastebin
    - Sleeksnap

    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2009
    Posts
    160
    Thanks given
    1
    Thanks received
    0
    Rep Power
    68
    Edit: Nvm didnt read the method correct

    public Player getOpponent() {
    for (Player pl : World.getInstance().getPlayerList()) {
    if (pl != null) {
    if (pl.getIndex() == enemyIndex) {
    return pl;
    }
    }
    }
    return null;
    }

    use that method instead of getP2() and change some stuff cause Im using a clean source for 525 rs2hd and I made most off the stuff


    Reply With Quote  
     

  3. #3  
    Renown Programmer

    Nikki's Avatar
    Join Date
    Aug 2008
    Posts
    3,992
    Thanks given
    553
    Thanks received
    1,078
    Rep Power
    5000
    Quote Originally Posted by bang View Post
    Edit: Nvm didnt read the method correct

    public Player getOpponent() {
    for (Player pl : World.getInstance().getPlayerList()) {
    if (pl != null) {
    if (pl.getIndex() == enemyIndex) {
    return pl;
    }
    }
    }
    return null;
    }

    use that method instead of getP2() and change some stuff cause Im using a clean source for 525 rs2hd and I made most off the stuff
    Looks the same to me =\
    Please don't add/pm me asking for RSPS help!

    Links:
    - Pastebin
    - Sleeksnap

    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Feb 2009
    Posts
    1,533
    Thanks given
    4
    Thanks received
    34
    Rep Power
    0
    You shouldn't be putting those methods in the Player class...
    Reply With Quote  
     

  5. #5  
    Renown Programmer

    Nikki's Avatar
    Join Date
    Aug 2008
    Posts
    3,992
    Thanks given
    553
    Thanks received
    1,078
    Rep Power
    5000
    Quote Originally Posted by popbob View Post
    You shouldn't be putting those methods in the Player class...
    W/e, fixed.
    Also moved methods, cleaned up player class a bit
    Please don't add/pm me asking for RSPS help!

    Links:
    - Pastebin
    - Sleeksnap

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •