Im adding it so that when you fail to pickpocket an npc the npc says "What do you think you're doing?" but i get this error when i compile:
Code:
src\server\model\players\skills\Thieving.java:36: non-static method forceChat(ja
va.lang.String) cannot be referenced from a static context
NPC.forceChat("What do you think you're doing?");
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .
I had been getting 2 errors before but i changed my code from:
Code:
npcs.forceChat("What do you think you're doing?");
to:
Code:
NPC.forceChat("What do you think you're doing?");
and added this import:
Code:
import server.model.npcs.NPC;
Any help would be appreciated, will rep++
Thanks,
Arran