bump
|
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;
bump
Did you even do the packet size part of the itemonplayer packet tutorial
yes i did
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |