Thread: SwitchItemslook command

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 SwitchItemslook command 
    Registered Member Sherlock's Avatar
    Join Date
    Jun 2014
    Posts
    101
    Thanks given
    8
    Thanks received
    7
    Rep Power
    14
    Haven't seen this command in a few of the new realeases so i'm just going to post it, no h8

    Commands.java

    Code:
    if (cmd[0].equalsIgnoreCase("switchitemslook")) {
    				player.switchItemsLook();
    				player.getPackets().sendGameMessage("You are now playing with " + (player.isOldItemsLook() ? "old" : "new") + " item looks.");
    				return true; 
    			}
    Player.java

    Code:
    private boolean oldItemsLook;
    
    public boolean isOldItemsLook() {
    		return oldItemsLook;
    	}
    
    	public void switchItemsLook() {
    		oldItemsLook = !oldItemsLook;
    		getPackets().sendItemsLook();
    	}
    WorldPacketsEncoder.java

    Code:
    public void sendItemsLook() {
    		OutputStream stream = new OutputStream(2);
    		stream.writePacket(player, 159);
    		stream.writeByte(player.isOldItemsLook() ? 1 : 0);
    		session.write(stream);
    	}


    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    25
    Posts
    4,432
    Thanks given
    892
    Thanks received
    1,525
    Rep Power
    3228
    Thanks for the contribution.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #3  
    ÅutoᎦcape©╫Ðєѵєʟoƿєя™
    Joey_'s Avatar
    Join Date
    Feb 2014
    Posts
    87
    Thanks given
    4
    Thanks received
    6
    Rep Power
    13
    Thanks for the contribution.
    Reply With Quote  
     

  5. #4  
    Scrub Lord
    _Will's Avatar
    Join Date
    Aug 2012
    Posts
    537
    Thanks given
    60
    Thanks received
    61
    Rep Power
    34
    Matrix had this.
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Donator

    Join Date
    Jan 2014
    Posts
    1,618
    Thanks given
    8
    Thanks received
    195
    Rep Power
    39
    Matrix has this.
    But thanks anyway.
    Reply With Quote  
     

  8. #6  
    Registered Member
    Join Date
    Aug 2014
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    where abouts do i paste the code inside the files? [Really nooby question, sorry.]
    Reply With Quote  
     

  9. #7  
    Donator

    Join Date
    Dec 2012
    Posts
    541
    Thanks given
    42
    Thanks received
    47
    Rep Power
    27
    I feel sorry for this guy ↑
    :: Making money is not the point, it is the community that matters in the end. ::
    > Unless your name is Pim or Kevin of course.
    Reply With Quote  
     

  10. #8  
    Registered Member
    Join Date
    Aug 2014
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I'm good now ↑
    Reply With Quote  
     

  11. #9  
    Donator

    Join Date
    Dec 2012
    Posts
    541
    Thanks given
    42
    Thanks received
    47
    Rep Power
    27
    Quote Originally Posted by MaxyRSPS View Post
    I'm good now ↑
    Alright.
    :: Making money is not the point, it is the community that matters in the end. ::
    > Unless your name is Pim or Kevin of course.
    Reply With Quote  
     

  12. #10  
    48 0x69

    Pax M's Avatar
    Join Date
    Oct 2013
    Posts
    2,012
    Thanks given
    36
    Thanks received
    488
    Discord
    View profile
    Rep Power
    2245
    I've seen this in several help-request threads.
    Reply With Quote  
     

Page 1 of 2 12 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. [Matrix] Switchitemslook Command
    By sdaehrevo in forum Help
    Replies: 13
    Last Post: 03-23-2014, 03:25 AM
  2. Replies: 1
    Last Post: 10-22-2013, 04:58 AM
  3. Replies: 4
    Last Post: 06-24-2013, 10:56 PM
  4. 667 ::switchitemslook command ($20)
    By Zombie in forum Buying
    Replies: 1
    Last Post: 06-16-2013, 09:50 PM
  5. Replies: 1
    Last Post: 03-21-2013, 01:31 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •