Thread: [Renamed]: Making player invisible and visible, correctly.

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1 [Renamed]: Making player invisible and visible, correctly. 
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Difficulty: 1
    Base used: Renamed client.
    About: This will allow you to make the player invisible and visible the CORRECT way jagex does it.
    _____________________________________________

    Client Side:
    Step One
    Open up Player.java and find,
    Code:
    visible = true;
    Step Two
    Replace that with,
    Code:
            /*
             * Gnarly: Reading what the server said to make the player,
             * visible, or not visible, if integer is 1 player is visible
             * if integer is 0 player is not visible.
             */
            int visibleInt = stream.readUnsignedWord();
            if (visibleInt == 1) {
            	visible = true;
            } else {
            	visible = false;
            }
    Server Side:
    Step one
    Open up Player.java and declare this,
    Code:
    public int playerIsVisible = 1; // Gnarly: Player is visible, 1 = true, 0 = false.
    Step two
    Now find this,
    Code:
    str.writeByteC(playerProps.currentOffset);
    Step three
    ABOVE that add this,
    Code:
    playerProps.writeWord(playerIsVisible);
    Usage
    To use this, do the following.
    Code:
    playerIsVisible = 0; // Gnarly: Since it's making it ZERO it would make the player be unvisible, if it's at 1, it will make the player visible again.
    updateRequired = true;
    Picture


    Credits
    • Gnarly/Me

    If you use this, please give me credit for it. ^_^
    Reply With Quote  
     

  2. #2  
    Ben
    Guest
    If it was 100 %, it would be implemented in the 317 protocol. But it's not. There will be problems, i guarantee it.
    Reply With Quote  
     

  3. #3  
    Renown Programmer


    Join Date
    Dec 2006
    Posts
    1,715
    Thanks given
    268
    Thanks received
    217
    Rep Power
    1836
    ur doin it wrong

    you can just not update the players appearance.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    I don't understand what this is really doing, making them invisible..? One quick question for you though, on Webber's client, the loginbox is set for only one kind, and I want it to be normal rs one. Could you post your loginbox method or something?
    Back for now...
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Quote Originally Posted by Firefight View Post
    I don't understand what this is really doing, making them invisible..? One quick question for you though, on Webber's client, the loginbox is set for only one kind, and I want it to be normal rs one. Could you post your loginbox method or something?
    Look at the usage part of the tutorial.

    Like in fightpits for viewing orbs, most people make the person a invisible npc, but that's not the correct way, they can still talk and their Dot on the minimap still shows up, doing it this way, completely disables chatting, minimap dot, character rendering. This is the way Jagex does it, well maybe it's different now in the 530, but when Runescape was 377 this is how it was done. ( Yes 377 not 317, because 317 it was not finished, it was finished in 377, but since we only have 317 sources, i finished it on the 317. )
    Reply With Quote  
     

  6. #6  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    lol? Your dot is still on the minimap...Its under the fountain logo thing lawl.
    Reply With Quote  
     

  7. #7  
    Ben
    Guest
    Quote Originally Posted by pro k0er View Post
    lol? Your dot is still on the minimap...Its under the fountain logo thing lawl.
    For others he means.
    Reply With Quote  
     

  8. #8  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Oh, alright then nice.
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Oh thanks.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    31
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Rep Power
    927
    Nice job like always
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Tags for this Thread

View Tag Cloud

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