-
Member
any ideas on how to make npcs talk
-
-
Zalachenko
edit the html files ;) hehe if u want another npc to talk and sell something for ex create an htm file with the id of the npc in the merchants folder and edit it :)
-
Member
opps ok let me repraze how to make npc's chat like the cabalebuffers
-
Zalachenko
look, tell me, what do u want to do with the npc? ex... u want it to sell? to tell news? etc? tell me plz so i can help u... in other words, be mor specific :D
-
Member
if ((npcId >= 8093 && npcId <= 8094) ||
(npcId >= 8172 && npcId <= 8201) ||
(npcId >= 8239 && npcId <= 8254))
return;
// Get the text of the selected HTML file in function of the npcId and of the page number
filename = (getHtmlPath(npcId, val));
break;
case 8132:
case 8133:
case 8134:
case 8135:
case 8136: // Festival Witches
case 8142:
case 8143:
case 8144:
case 8145:
case 8146:
filename += "festival/festival_witch.htm";
}
// Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance
NpcHtmlMessage html = new NpcHtmlMessage(1);
html.setFile(filename);
//String word = "npc-"+npcId+(val>0 ? "-"+val : "" )+"-dialog-append";
ok this is were the server tells the clinet to make the cabalebuffers chat right now at this point i need to know if the text chat is client side or server side i can not find this htm and if it is client side it would make it very much easyer lol because all mobs thats chat we can just add there spawn id with a few edits. i hate going in and modding the client because it adds alot of work and i think we all agree just manageing a server with your personal mod is enuff. :evil: