how did you add your object class?
you should have added it like this
Code:
/**
* Fletching Class
*
* Info:
* In server.java add public static Fletching fletching = new Fletching();
* In the parseincomingpackets method on case 53: add at the end server.fletching.Fletching(this, packetType, packetSize);
*
* @author Lmctruck30
*/
public class Fletching {
public void Fletching(Client p, int packetType, int packetSize) {
switch(packetType) {
/*
* Case 53: Item On Item Packet 53
*/
case 53:
int p4 = 0;
int p6 = 0;
int usedWithSlot = inStream.readUnsignedWord();
int itemUsedSlot = inStream.readUnsignedWordA();
int interface1284 = inStream.readUnsignedWord();
int interfacek = inStream.readUnsignedWord();
int useWith = playerItems[usedWithSlot]-1;
int itemUsed = playerItems[itemUsedSlot]-1;
if(itemUsed == 946 && useWith == 1511) {
p.deleteItem(1511, getItemSlot(1511), 1);
p.addItem(50, 1);
p.sendMessage("you made a unstrung shortbow");
p.addSkillXP(200*playerLevel[9], 9);
}
}
}
}