Thread: [PI] Christmas Cracker.

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [PI] Christmas Cracker. 
    Registered Member
    Join Date
    Jul 2011
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    [PI] Christmas crackers + ItemOnPlayer [PI]

    I follow this tutorial and I always get one error.
    Code:
    	public static final int PACKET_SIZES[] = { 
    			0, 0, 0, 1, -1, 0, 0, 0, 0, 0, // 0
    			0, 0, 0, 0, 8, 0, 6, 2, 2, 0, // 10
    			0, 2, 0, 6, 0, 12, 0, 0, 0, 0, // 20
    			0, 0, 0, 0, 0, 8, 4, 0, 0, 2, // 30
    			2, 6, 0, 6, 0, -1, 0, 0, 0, 0, // 40
    			0, 0, 0, 12, 0, 0, 0, 8, 8, 12, // 50
    			8, 8, 0, 0, 0, 0, 0, 0, 0, 0, // 60
    			6, 0, 2, 2, 8, 6, 0, -1, 0, 6, // 70
    			0, 0, 0, 0, 0, 1, 4, 6, 0, 0, // 80
    			0, 0, 0, 0, 0, 3, 0, 0, -1, 0, // 90
    			0, 13, 0, -1, 0, 0, 0, 0, 0, 0,// 100
    			0, 0, 0, 0, 0, 0, 0, 6, 0, 0, // 110
    			1, 0, 6, 0, 0, 0, -1, 0, 2, 6, // 120
    			0, 4, 6, 8, 0, 6, 0, 0, 0, 2, // 130
    			0, 0, 0, 0, 0, 6, 0, 0, 0, 0, // 140
    			0, 0, 1, 2, 0, 2, 6, 0, 0, 0, // 150
    			0, 0, 0, 0, -1, -1, 0, 0, 0, 0,// 160
    			0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 170
    			0, 8, 0, 3, 0, 2, 0, 0, 8, 1, // 180
    			0, 0, 12, 0, 0, 0, 0, 0, 0, 0, // 190
    			2, 0, 0, 0, 0, 0, 0, 0, 4, 0, // 200
    			4, 0, 0, 0, 7, 8, 0, 0, 10, 0, // 210
    			0, 0, 0, 0, 0, 0, -1, 0, 6, 0, // 220
    			1, 0, 0, 0, 6, 0, 6, 8, 1, 0, // 230
    			0, 4, 0, 0, 0, 0, -1, 0, -1, 4,// 240
    			0, 0, 6, 6, 0, 0, 0 // 250
    	};
    When I got into my client.java in my client I dont have any of this, Anyone got any ideas?

    Code:
    src\server\model\players\PacketHandler.java:86: cannot find symbol
    symbol  : class ItemOnPlayer
    location: class server.model.players.PacketHandler
                    packetId[14] = new ItemOnPlayer();
                                       ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    Is the error I get.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    import the class..

    import server.model.players.packets.ItemOnPlayer;
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2011
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I'm New to coding, could you please explain how? Like import it to my client.java folder?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by Bluntarific View Post
    I'm New to coding, could you please explain how? Like import it to my client.java folder?
    go to packethandler.java you see alot of imports put it there its okay, welcome
    Reply With Quote  
     

  5. #5 :) 
    Registered Member
    Join Date
    Jul 2011
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Allstar+- View Post
    go to packethandler.java you see alot of imports put it there its okay, welcome
    Worked Like a charm! Thanks! Quick question, any idea why I dc everytime I use the cracker on someone?
    Reply With Quote  
     

  6. #6  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    What's the error you get when it Dced you
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2011
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Harlan View Post
    What's the error you get when it Dced you
    Code:
    Error: T1 - 123,0 - 36,36
    And this is the error i get when i try to compile my client.
    Code:
    client.java:5387: ';' expected
                                    stream.createFrame(14)
                                                          ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  8. #8  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    read the error

    Code:
    stream.createFrame(14);
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jul 2011
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Yeah i needed that facepalm haha, I feel stupid but everyone starts somewhere
    Reply With Quote  
     

  10. #10  
    Registered Member Comets's Avatar
    Join Date
    Jan 2011
    Posts
    287
    Thanks given
    67
    Thanks received
    30
    Rep Power
    0
    You've not replaced the packet. Go to the 14th array, and change the '8' to a '4'.

    Edit, Nevermind. I didn't read the thread completely.
    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. Christmas Cracker Emote & GFX
    By Abyssal Noob in forum Requests
    Replies: 3
    Last Post: 06-20-2013, 12:45 AM
  2. [PI] Christmas Cracker
    By TheRedArmy in forum Snippets
    Replies: 26
    Last Post: 08-17-2011, 04:06 AM
  3. [PI] Christmas Cracker Error [PI]
    By Kickyamom in forum Help
    Replies: 8
    Last Post: 01-22-2011, 03:23 PM
  4. Christmas Cracker.
    By Jeff in forum Requests
    Replies: 2
    Last Post: 03-06-2010, 03:42 AM
  5. Find the Christmas Cracker!
    By Bridget7298 in forum Advertise
    Replies: 12
    Last Post: 07-15-2009, 08:43 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
  •