Thread: Flashing Partyhat

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11  
    WEEEEEWOOOOWEEEEEWOOOOWEEEEWOOOO-----[[#]]---[[8]]--[[8]]------[[8]]----[[8]]------[[8]]
    sIlly gOOse's Avatar
    Join Date
    Nov 2012
    Posts
    3,235
    Thanks given
    1,352
    Thanks received
    2,408
    Rep Power
    5000
    brb seizure
    Attached image
    Spoiler for Come under my wing:

    Spoiler for sb lol!:
    Attached image
    Attached image
    Attached image
    Attached image
    Attached image

    Oldschool Runescape progress thread is here!
    Reply With Quote  
     

  2. #12  
    Donator


    Join Date
    Mar 2012
    Posts
    1,023
    Thanks given
    221
    Thanks received
    299
    Rep Power
    605
    Quote Originally Posted by SILLY goose View Post
    brb seizure
    don't come back just seizure cya

    Quote Originally Posted by Zion View Post
    Damn dude, I legit just did something like this, but with like 4 lines of code lol
    You can use 3 lines of code, The rest just sloppily makes sure that the colors of multiple players partyhats change separately.

    Code:
    Partyhat partyhat = new Partyhat(this.name, this, equipment, anIntArray1700);                 
    ItemDef.forID(ID).modified_color[0] = partyhat.randomColor(1 + (int)(Math.random() * ((6 - 1) + 1)));                 
    model_1 = null;
    Reply With Quote  
     

  3. #13  
    Registered Member Stevenhax's Avatar
    Join Date
    Jul 2014
    Posts
    387
    Thanks given
    55
    Thanks received
    64
    Rep Power
    42
    Kinda wonder how they did it on Ikov, I remember it took them awhile to optimize it enough to release it.
    Reply With Quote  
     

  4. #14  
    Donator


    Join Date
    Mar 2012
    Posts
    1,023
    Thanks given
    221
    Thanks received
    299
    Rep Power
    605
    Quote Originally Posted by Stevenhax View Post
    Kinda wonder how they did it on Ikov, I remember it took them awhile to optimize it enough to release it.
    Owner Blade where are thou? I've done everything he's done but knowing him, he's always done it a little better.
    Reply With Quote  
     

  5. #15  
    Donator


    Join Date
    Aug 2013
    Posts
    610
    Thanks given
    288
    Thanks received
    123
    Rep Power
    162
    Quote Originally Posted by nucleon View Post
    Owner Blade where are thou? I've done everything he's done but knowing him, he's always done it a little better.
    Your good but I doubt you've done everything hes done blade is on another level lol.
    Reply With Quote  
     

  6. #16  
    Banned

    Join Date
    May 2016
    Age
    55
    Posts
    1,137
    Thanks given
    565
    Thanks received
    600
    Rep Power
    0
    thanks for the share.
    Reply With Quote  
     

  7. #17  
    Banned
    Join Date
    Jan 2013
    Posts
    59
    Thanks given
    25
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by nucleon View Post

    Flashing Ugly Partyhat

    Attached image


    Information

    - If you want your cheesy server to have more cheesy items this is for you.
    - This certainly isn't the correct way but it definitely achieved the result that I wanted.
    - I don't recommend more than 10 people have this item; it forces the player head model to reload every frame.

    Code

    In Player class under "Model model_1 = (Model) mruNodes.insertFromCache(l);"

    Code:
          if ((equipment[0] - 512) == *put the partyhat ID here*) {
                     Partyhat partyhat = new Partyhat(this.name, this, equipment, anIntArray1700);
                     ItemDef.forID(*put the partyhat ID here*).modified_color[0] = partyhat.randomColor(1 + (int)(Math.random() * ((6 - 1) + 1)));
                     model_1 = null;
                     if (Client.getSingleton().active_list.size() < 1) {
                      Client.getSingleton().active_list.add(partyhat);
                     }
                     for (Partyhat player: Client.getSingleton().active_list) {
                      if (!name.equals(player.player_name)) {
                       if (!Client.getSingleton().active_list.contains(player)) {
                        player = new Partyhat(name, this, equipment, anIntArray1700);
                        Client.getSingleton().active_list.add(player);
                       }
                      }
                     }
                    } else {
                     for (Partyhat partyhat: Client.getSingleton().active_list) {
                      if (this.name.equals(partyhat.getPlayer_name())) {
                       Client.getSingleton().active_list.remove(partyhat);
                      }
                     }
                    }
    In Client class just add:

    Code:
        public ArrayList<Partyhat> active_list = new ArrayList<>();
    Make a new class Partyhat:

    Code:
     ublic class Partyhat {
    
        public String player_name;
        private Model model;
        public Player player;
        private int stream_currentOffset;
        private int anInt1702;
        private EntityDef desc;
        private int team;
        private int[] equipment = new int[12];
        private int equipmentValueSetter;
        private int[] anIntArray1700 = new int[5];
        public boolean readyToUpdate = false;
        private final long aLong1718 = 0L;
        
        public Partyhat(String name, Player p, int[] equipment, int[] anIntArray1700) {
            this.player_name = name;
            this.player = p;
            this.equipment = equipment;
            this.anIntArray1700 = anIntArray1700;
        }
    
        public void setOffset(int offset) {
            this.stream_currentOffset = offset;;
        }
    
     
        public void setEquipmentValues(int array_index, int value) {
            this.equipment[array_index] = value;
            
        }
        
        public void setDesc(EntityDef desc) {
            this.desc = desc;
        }
        
        public void setAnIntArray1700(int array_index, int anIntArray1700) {
            this.anIntArray1700[array_index] = anIntArray1700;
        }
    
        /**
         * @return the player_name
         */
        public String getPlayer_name() {
            return player_name;
        }
    
        /**
         * @return the model
         */
        public Model getModel() {
            return model;
        }
    
        /**
         * @return the player
         */
        public Player getP() {
            return player;
        }
    
        /**
         * @return the stream_currentOffset
         */
        public int getStream_currentOffset() {
            return stream_currentOffset;
        }
    
        /**
         * @return the equipment
         */
        public int getEquipment(int array_index) {
            return equipment[array_index];
        }
    
        /**
         * @return the equipmentValueSetter
         */
        public int getEquipmentValueSetter() {
            return equipmentValueSetter;
        }
    
        /**
         * @return the anIntArray1700
         */
        public int getAnIntArray1700(int array_index) {
            return anIntArray1700[array_index];
        }
        
        public int randomColor(int random) {
            switch (random) {
                case 1:
                    return 11200;
                case 2: 
                    return 43968;
                case 3:
                    return 22464;
                case 4: 
                    return 51136;
                case 5: 
                    return 127;
                case 6: 
                    return 926;
            }
            return 0xffffff;
        }
    }

    This is so ugly please don't add it
    o shit its nucleon
    Reply With Quote  
     

  8. #18  
    Registered Member graardorrsps's Avatar
    Join Date
    Nov 2016
    Posts
    126
    Thanks given
    41
    Thanks received
    32
    Rep Power
    0
    Thank you, my CPU usage has increased from 2% to 101%.
    Reply With Quote  
     

  9. Thankful user:


  10. #19  
    Registered Member

    Join Date
    Oct 2011
    Posts
    2,084
    Thanks given
    0
    Thanks received
    1,043
    Rep Power
    3608
    Quote Originally Posted by graardorrsps View Post
    Thank you, my CPU usage has increased from 2% to 101%.
    are you sure it wasn't like that to begin?
    Reply With Quote  
     

  11. Thankful user:


  12. #20  
    YouTuber

    Join Date
    Jan 2017
    Posts
    85
    Thanks given
    18
    Thanks received
    32
    Rep Power
    49
    its ugly... dont add
    Reply With Quote  
     

Page 2 of 3 FirstFirst 123 LastLast

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. Flashing Partyhat
    By Casey in forum Models
    Replies: 6
    Last Post: 12-26-2013, 02:00 AM
  2. Flash Jab
    By DrDiablo in forum Tutorials
    Replies: 5
    Last Post: 08-21-2009, 05:15 AM
  3. Flashing icons
    By God Rubin in forum Tutorials
    Replies: 12
    Last Post: 08-17-2007, 02:43 AM
  4. Some Flash stuff
    By jonyo in forum Showcase
    Replies: 0
    Last Post: 08-02-2007, 11:26 PM
  5. Make the flashing | work
    By KillaReborn in forum Tutorials
    Replies: 2
    Last Post: 05-15-2007, 09:42 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
  •