Hello, today i will teach you how to get message from npc by typing ::letstalk YOURMESSAGE
Difficult: 1/10
Will work on all sources i think.
add this method:
Code:
public void messageFromNpc(String message, int npctalk)
{
sendFrame200(4883, 591);
sendFrame126("", 4884); //tittle message here
sendFrame126(message , 4885);
sendFrame75(npctalk, 4883);
sendFrame164(4882);
NpcDialogueSend = true;
}
now search for:
and you will see something like this:
Code:
if (command.startsWith("yell") && command.length() > 5)
{
if(muted == 1)
sendMessage("You are muted and cannot yell!");
else
PlayerHandler.messageToAll = playerName+": "+command.substring(5);
}
after last } add this:
Code:
if (command.startsWith("letstalk") && command.length() > 8)
{
messageFromNpc(""+command.substring(8), 945);
}
save compile and run.