Thread: [508] Adding a text for examine a object[508]

Results 1 to 9 of 9
  1. #1 [508] Adding a text for examine a object[508] 
    Registered Member
    Join Date
    Mar 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Ok First go to your PacketManager.java

    and find
    Code:
    Object examining.
    There you should find something like this

    Code:
    int objectId = p.stream.readUnsignedWordA();
    break;
    Now to add the text you want to write this code

    Code:
    int objectId = p.stream.readUnsignedWordA();
    if (objectId == (ITEM CODE HERE)) {
    			p.frames.sendMessage(p, "TEXT HERE.");
    			}
    			else {
                p.frames.sendMessage(p, "An object.");
    break;
    }
    Save and Compile

    What its doing is that if the objectID equals of what you wrote it will send a message to the frames. And if there is no object that equals what you wrote then it will say "An Object". To add more object examine's just cope and past and change the ObjectID.
    Reply With Quote  
     

  2. #2  
    🍥🍥🍥


    Join Date
    Dec 2008
    Posts
    1,702
    Thanks given
    664
    Thanks received
    293
    Rep Power
    621
    Wrong Sectionn
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    29
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    Quote Originally Posted by Genesis. View Post
    Wrong Sectionn
    yup wrong section, anyways looks good
    Reply With Quote  
     

  4. #4  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    C'est un fail de la epiiiiiiiiiiic
    Quote Originally Posted by Gator God View Post
    The use of small code like this is what makes a server great.
    Quote Originally Posted by Shoes View Post
    First of all, that's my code. Second of all it is more efficient in many ways, they may not be big but it's the little things that count.
    Quote Originally Posted by Luke132 View Post
    A thread's age doesn't mean anything if the information in the topic is still relevant.
    Why is gravedigging disallowed then?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Mar 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Then what section is it?!
    Reply With Quote  
     

  6. #6  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    Quote Originally Posted by secter-12 View Post
    then what section is it?!
    503 + ?
    Quote Originally Posted by Gator God View Post
    The use of small code like this is what makes a server great.
    Quote Originally Posted by Shoes View Post
    First of all, that's my code. Second of all it is more efficient in many ways, they may not be big but it's the little things that count.
    Quote Originally Posted by Luke132 View Post
    A thread's age doesn't mean anything if the information in the topic is still relevant.
    Why is gravedigging disallowed then?
    Reply With Quote  
     

  7. #7  
    🍥🍥🍥


    Join Date
    Dec 2008
    Posts
    1,702
    Thanks given
    664
    Thanks received
    293
    Rep Power
    621
    Quote Originally Posted by Secter-12 View Post
    Then what section is it?!
    Fail..
    Attached image
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jul 2009
    Posts
    915
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    stop flaming him and just tell him its the wrong section...what's wrong with you guys?

    good job btw kid.
    Reply With Quote  
     

  9. #9  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Quote Originally Posted by Pytherion View Post
    stop flaming him and just tell him its the wrong section...what's wrong with you guys?

    good job btw kid.
    Well, that's fucking ironic.

    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

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
  •