[Tut] Making npc's talk with interfrace

Results 1 to 1 of 1
  1. #1
    Member ~Bullet is offline
    MemberRank
    Jan 2008 Join Date
    53Posts

    [Tut] Making npc's talk with interfrace

    1.First of all go to autospawn.cfg and add in your npc....heres a example:

    Code:
    spawn = xxxx	xxxx	xxxx	0	2696	9560	2696	9560
    Where the x's are put your info

    2/Now head to client java and search this:

    Code:
      public void UpdateNPCChat() {
    
        /* sendFrame126("", 4902);
        sendFrame126("", 4903);
        sendFrame126("", 4904);
        sendFrame126("", 4905);
        sendFrame126("", 4906);*/
        sendFrame126("", 976);
        switch (NpcDialogue) {
          case 1:
    3.Now under that add this if you want the npc to talk to you

    Code:
    case 100:
    sendFrame200(4883, 591);
    sendFrame126(GetNpcName(NpcTalkTo), 4884);
    sendFrame126("Npc talking", 4885);
    sendFrame126("Click here to continue", 4886);
    sendFrame75(NpcTalkTo, 4883);
    sendFrame164(4882);
    NpcDialogueSend = true;
    break;
    You can change the case and change where it says npc talking

    4.Search up:

    Code:
    First click npc
    5.Now in there add this

    Code:
             else if (NPCID == xxxx) {
                skillX = server.npcHandler.npcs[NPCSlot].absX;
                skillY = server.npcHandler.npcs[NPCSlot].absY;
                NpcWanneTalk = 100;
            }
    Where it says npcwannetalk i put 100 because that was the case number.So say for the case you put 501 then for npcwanne talk put 501

    Here are some other talking interfrances:

    Code:
    case 100:
    sendFrame200(615, 974);
    sendFrame126(playerName, 975);
    sendFrame126("Player talking", 976);
    sendFrame126("Click here to continue", 977);
    sendFrame185(974);
    sendFrame164(973);
    NpcDialogueSend = true;
    break;
    And this is for a option

    Code:
    case 100:
    sendFrame200(615, 974);
    sendFrame126(playerName, 975);
    sendFrame126("", 976);
    sendFrame126("", 977);
    sendFrame185(974);
    sendFrame164(973);
    NpcDialogueSend = true;
    break;
    Enjoy
    ~Bullet
    Last edited by ~Bullet; 19-01-08 at 08:04 PM. Reason: Some errors




Advertisement