Hey, ive never added a new.java file before and im makeing one to test it out and to clean out my client.java
i just deleted 100kb of nasty fletching code and now im makeing a fletching.java
how would i make this do what i want it to?
as in if a player uses knife on log
if i have it imported through client.java will it instantly read it from fletching.java?
not useing delta.
also here is my fletching.java its not complete i want to know if this is close to what you need?
sorry if the conventions fail im useing the ones my teacher tought me in my c++ class
these are my errorCode:// Dark Abyss Fletching.java
// made by dadabehh of rune-server
import java.io.*;
public class fletching extends Player implements Runnable
{
public void fletching()
{
switch(packetType)
{
case 53: // Use Item on another Item
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);
}
}
}
}
Code:Fletching.java:11: Fletching is not abstract and does not override abstract meth
od sendpm(long,int,byte[],int) in Player
public class Fletching extends Player implements Runnable
^
Fletching.java:15: cannot find symbol
symbol : variable packetType
location: class Fletching
switch(packetType)
^
Fletching.java:22: cannot find symbol
symbol : variable inStream
location: class Fletching
int usedWithSlot = inStream.readUnsignedWord();
^
Fletching.java:23: cannot find symbol
symbol : variable inStream
location: class Fletching
int itemUsedSlot = inStream.readUnsignedWordA();
^
Fletching.java:24: cannot find symbol
symbol : variable inStream
location: class Fletching
int interface1284 = inStream.readUnsignedWord();
^
Fletching.java:25: cannot find symbol
symbol : variable inStream
location: class Fletching
int interfacek = inStream.readUnsignedWord();
^
Fletching.java:31: cannot find symbol
symbol : method getItemSlot(int)
location: class Fletching
p.deleteItem(1511, getItemSlot(1511), 1)
;
^
Fletching.java:31: cannot find symbol
symbol : variable p
location: class Fletching
p.deleteItem(1511, getItemSlot(1511), 1)
;
^
Fletching.java:32: cannot find symbol
symbol : variable p
location: class Fletching
p.addItem(50, 1);
^
Fletching.java:33: cannot find symbol
symbol : variable p
location: class Fletching
p.sendMessage("you made a unstrung short
bow");
^
Fletching.java:34: cannot find symbol
symbol : variable p
location: class Fletching
p.addSkillXP(200*playerLevel[9], 9);
^
Note: stream.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
11 errors
Press any key to continue . . .
