Thread: Kronos PID Shuffling ReWork

Results 1 to 3 of 3
  1. #1 Kronos PID Shuffling ReWork 
    Registered Member
    Join Date
    May 2018
    Posts
    19
    Thanks given
    2
    Thanks received
    2
    Rep Power
    23
    pretty much what this does is checks if the player isinduel() sends to server so that pid remains true to player of priority prior to when the duel was accepted
    also other shit, pretty similar to kronos existing shuffle just better.

    Code:
        public void scramble() {
            boolean[] indexes = new boolean[this.indexes.length];
            for (int i = 0; i < indexes.length; i++) {
                int index = this.indexes[i];
                T entity = entityList[index];
    
                if(entity instanceof Player) {
                    Player player = entity.player;
                    if(player.getDuel().isAccepted()) {
                        indexes[i] = true;
                        System.out.println(player.getName() + " - " + player.getDuel().isAccepted());
                    }
                }
    
            }
    
            scramble(indexes);
    
        }
    Code:
       public void scramble(boolean[] ignoredIndexes) {
            int offset, temp;
            for(int i = count - 1; i > 0; i--) {
                offset = Random.get(i);
                if(ignoredIndexes[indexes[offset]])
                    continue;
                temp = indexes[offset];
                indexes[offset] = indexes[i];
                indexes[i] = temp;
            }
        }
    shoutout to Javatar for showing me and explaining, and helping me write this.
    Reply With Quote  
     

  2. #2  
    Skotos Founder


    Join Date
    Jan 2017
    Age
    24
    Posts
    954
    Thanks given
    178
    Thanks received
    191
    Rep Power
    199
    Cheers man
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Retro


    Join Date
    Mar 2008
    Posts
    63
    Thanks given
    30
    Thanks received
    23
    Rep Power
    93
    Nice contribution.
    Reply With Quote  
     

  5. Thankful user:



Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Handcannon remake+reworked
    By istory in forum Models
    Replies: 18
    Last Post: 06-21-2010, 01:25 PM
  2. Shuffle or Jumpstyle?
    By ByteBlast in forum Chat
    Replies: 6
    Last Post: 10-22-2009, 10:40 PM
  3. Melbourne Shuffle
    By Mint in forum Music
    Replies: 26
    Last Post: 04-24-2009, 10:28 AM
  4. Username request to: Kronos
    By LAMT in forum Usernames
    Replies: 1
    Last Post: 12-02-2008, 08:24 AM
  5. Gameframe - Runescape HD (Reworked)
    By Legend Rene in forum Graphics
    Replies: 11
    Last Post: 07-07-2008, 03:03 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •