Thread: Pi gnomeball

Results 1 to 4 of 4
  1. #1 Pi gnomeball 
    Registered Member
    Join Date
    Aug 2008
    Posts
    129
    Thanks given
    3
    Thanks received
    0
    Rep Power
    20
    Hey I'm trying to get a working gnomeball to throw around on my server and I could use some help.
    When I use the ball on someone it freezes the person who used the ball and says unhanded packet size
    Also I want it to be able to throw from 10 spaces out instead of run up to 1 space.

    This code doesn't work, but its what I put together while trying to get this to work. This goes in an ItemOnPlayer class that I got from a tutorial

    Code:
    		case 751: //gnomeball
    		Client usedOn = (Client) Server.playerHandler.players[playerId];
    						Server.playerHandler.players[playerId].freezeTimer = 3;// Change to the amount of seconds to stop movement
    						Server.playerHandler.players[playerId].stopMovement();//stop player from moving
                                                    c.playerEquipment[c.playerWeapon] = 751; //I want to make the player equip the gnomeball
    						usedOn.freezeTimer = 3;  
    						usedOn.stopMovement();
    						c.startAnimation(440); //just a test animation
                                                       //have to add projectile gfx here
    
    						c.getItems().deleteItem(751, 1);
    						usedOn.getItems().addItem(751,1);
    						usedOn.playerEquipment[c.playerWeapon] = 751;
    						usedOn.startAnimation(430); //just a test animation
    			break;
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2008
    Posts
    129
    Thanks given
    3
    Thanks received
    0
    Rep Power
    20
    bump
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Did you even do the packet size part of the itemonplayer packet tutorial
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2008
    Posts
    129
    Thanks given
    3
    Thanks received
    0
    Rep Power
    20
    yes i did
    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

Similar Threads

  1. Gnomeball
    By Noobface128 in forum Requests
    Replies: 10
    Last Post: 02-16-2015, 03:55 AM
  2. Pi: π
    By Colby in forum Chat
    Replies: 7
    Last Post: 10-23-2009, 04:41 AM
  3. Some pi error??????
    By Oh my gawd in forum Help
    Replies: 20
    Last Post: 05-08-2009, 03:19 PM
  4. player item pi
    By Ishana in forum Help
    Replies: 4
    Last Post: 05-06-2009, 09:17 PM
  5. PI day!!!!!
    By HvSxTornado in forum Chat
    Replies: 5
    Last Post: 03-15-2009, 11:36 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
  •