Thread: NPC Dialouge help?????

Results 1 to 4 of 4
  1. #1 NPC Dialouge help????? 
    Registered Member
    Join Date
    Dec 2007
    Posts
    165
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I'm trying to make a Desert Treasure quest on my server, but for some reason it's only saying three out of the whatever dialouges there are...HELP?
    Code:
                case 138:
    		if (playerLevel[11] >= 50 && playerLevel[6] >= 50 && playerLevel[17] >= 53 && playerLevel[18] >= 10) {    
                    sendFrame200(974, 612);
                    sendFrame126(playerName, 975);
                    sendFrame126("Hello there.", 976);
                    sendFrame126("", 977);
                    sendFrame185(974);
                    sendFrame164(973);
                    NpcDialogueSend = true;
    		} else {
    		sendMessage("He doesn't seem interested in talking.");
    		}
                    break;
                case 139:
                    sendFrame200(4901, 591);
                    sendFrame126("Archaeologist", 4902);
                    sendFrame126("", 4903);
                    sendFrame126("Howdy stranger. What brings you out to these parts?", 4904);
                    sendFrame126("", 4906);
                    sendFrame75(NpcTalkTo, 4901);
                    sendFrame164(4900);
                    NpcDialogueSend = true;
                    break;
                case 140:
                    sendFrame200(974, 612);
                    sendFrame126(playerName, 975);
                    sendFrame126("Do you have any quests? Call it a hunch but you", 976);
                    sendFrame126("look like the type of man who might have one.", 977);
                    sendFrame185(974);
                    sendFrame164(973);
                    NpcDialogueSend = true;
                    break;
                case 141:
                    sendFrame200(4901, 591);
                    sendFrame126("Archaeologist", 4902);
                    sendFrame126("Well, it's funny you should say that.", 4903);
                    sendFrame126("I'm not sure if I would really call it a quest as such", 4904);
                    sendFrame126("But I found this ancient stone tablet in one of my", 4905);
                    sendFrame126("excavations, and it would really help me out if you,", 4906); 
                    sendFrame75(NpcTalkTo, 4901);
                    sendFrame164(4900);
                    NpcDialogueSend = true;
                    break;
                case 142:
                    sendFrame200(4901, 591);
                    sendFrame126("Archaeologist", 4902);
                    sendFrame126("could go and take it back to the digsite for me and get", 4903);
                    sendFrame126("it examined.", 4904);
                    sendFrame126("", 4905);
                    sendFrame75(NpcTalkTo, 4901);
                    sendFrame164(4900);
                    NpcDialogueSend = true;
                    break;
                case 143:
                    sendFrame200(4901, 591);
                    sendFrame126("Archaeologist", 4902);
                    sendFrame126("", 4903);
                    sendFrame126("It's very old and I don't recognise any of the", 4904);
                    sendFrame126("inscriptions on it. ", 4905); 
                    sendFrame75(NpcTalkTo, 4901);
                    sendFrame164(4900);
                    NpcDialogueSend = true;
                    break;
                case 144:
                    sendFrame200(974, 612);
                    sendFrame126(playerName, 975);
                    sendFrame126("Sure, I was heading that way anyway.", 976);
                    sendFrame126("Any particular person I should talk to?", 977);
                    sendFrame185(974);
                    sendFrame164(973);
                    NpcDialogueSend = true;
                    break;
                case 145:
                    sendFrame200(4901, 591);
                    sendFrame126("Archaeologist", 4902);
                    sendFrame126("His name's Terry Balando. Give it to nobody but him.", 4903);
                    sendFrame126("I'm sorry, I can't entrust you with the actual tablet I", 4904);
                    sendFrame126("found, it is far too valuable to give away, but these", 4905); 
                    sendFrame126("etchings should be enough for him to figure it out.", 4906); 
                    sendFrame75(1918, 4901);
                    sendFrame164(4900);
          		qstage[3] = 0;
    		addItem(4654, 1);
                    loadquestinterface();
                    NpcDialogueSend = true;
                    break;
    That's the code but it's only saying these three:
    Code:
                case 138:
    		if (playerLevel[11] >= 50 && playerLevel[6] >= 50 && playerLevel[17] >= 53 && playerLevel[18] >= 10) {    
                    sendFrame200(974, 612);
                    sendFrame126(playerName, 975);
                    sendFrame126("Hello there.", 976);
                    sendFrame126("", 977);
                    sendFrame185(974);
                    sendFrame164(973);
                    NpcDialogueSend = true;
    		} else {
    		sendMessage("He doesn't seem interested in talking.");
    		}
                    break;
                case 139:
                    sendFrame200(4901, 591);
                    sendFrame126("Archaeologist", 4902);
                    sendFrame126("", 4903);
                    sendFrame126("Howdy stranger. What brings you out to these parts?", 4904);
                    sendFrame126("", 4906);
                    sendFrame75(NpcTalkTo, 4901);
                    sendFrame164(4900);
                    NpcDialogueSend = true;
                    break;
                case 140:
                    sendFrame200(974, 612);
                    sendFrame126(playerName, 975);
                    sendFrame126("Do you have any quests? Call it a hunch but you", 976);
                    sendFrame126("look like the type of man who might have one.", 977);
                    sendFrame185(974);
                    sendFrame164(973);
                    NpcDialogueSend = true;
                    break;
    I compile and I get no errors, but yet this is still happening..
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jun 2008
    Posts
    225
    Thanks given
    0
    Thanks received
    0
    Rep Power
    137
    where is your methods for going to the new dialogue?
    Reply With Quote  
     

  3. #3  
    cwg452003
    Guest
    Under this
    Code:
    public void parseIncomingPackets()
    Find
    Code:
    case 40:
    and under the first if you see where it's like
    Code:
    NpcDialogue == 945 || NpcDialogue == 946 || NpcDialogue == 1
    add
    Code:
    NpcDialogue == 141 || NpcDialogue == 142 || NpcDialogue == 143 || NpcDialogue == 144
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2007
    Posts
    165
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I fixed this already but thanks.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •