-
NPC dialogue (my way)
Info: this is a simple and easy and simple way to make npc's talk.
classes modified: client.java
source recommended: devolution v1-v7 A.K.A dodian (should work on all)
Difficulty: 0/10
firsts step: open up your client.java.
step 2: search for it should look like this:
Code:
case 155:
// first Click npc
NPCSlot = inStream.readSignedWordBigEndian();
if (NPCSlot < 0 || NPCSlot >= server.npcHandler.npcs.length || server.npcHandler.npcs[NPCSlot] == null)
break;
NPCID = server.npcHandler.npcs[NPCSlot].npcType;
boolean FishingGo = false;
boolean PutNPCCoords = false;
if (NPCID == 804) {
openTan();
}
step 3: under the last } add this:
Code:
else if(NPCID == #) { // npc name here
sendFrame200(4901, 591);
sendFrame126(GetNpcName($), 4902);
sendFrame126("line one", 4903);
sendFrame126("line two", 4904);
sendFrame126("line three, 4905);
sendFrame126("line four", 4906);
sendFrame75(%, 4901);
sendFrame164(4900);
NpcDialogueSend = true;
}
% = the npc id's face (picture you want to show up while talking to them)
$ = the npc id's name (the name of the npc you want for it. for example put number 1 and it will be a man)
# = the npc's actual id (the actual id of the npc)
plz comment. hope ya like it.