Thread: Npc Chat Dialog

Results 1 to 7 of 7
  1. #1 Npc Chat Dialog 
    Registered Member kiwikillu's Avatar
    Join Date
    Jul 2009
    Posts
    55
    Thanks given
    0
    Thanks received
    0
    Rep Power
    6
    hey, i am looking for a tutorial of adding text (3 lines) then it goes to choices then both choices goes to different text then more text, etc

    i have been looking for ages and i cant seem to find a tutorial...

    Please help me?
    Forum links in pictures aren't allowed.
    Reply With Quote  
     

  2. #2  
    Registered Member apur3slife's Avatar
    Join Date
    Dec 2008
    Posts
    285
    Thanks given
    0
    Thanks received
    6
    Rep Power
    23
    what source are you using?
    Reply With Quote  
     

  3. #3  
    Registered Member kiwikillu's Avatar
    Join Date
    Jul 2009
    Posts
    55
    Thanks given
    0
    Thanks received
    0
    Rep Power
    6
    umm i think its project lmao, czar
    Forum links in pictures aren't allowed.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Dec 2009
    Posts
    833
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    go in your dialouge section and put the next case number:

    case 63:
    talk("Thanks, here. You will have to spin this sheep fur.", 291);
    deleteItem(561, 100);
    addItem(1738, 25);
    break;


    That's just an example, and here's the talk method:
    public void talk(String text, int npc) {
    sendFrame200(4883, 591);
    sendFrame126(GetNpcName(npc), 4884);
    sendFrame126(text, 4885);
    sendFrame126("Click here to continue.", 4886);
    sendFrame75(npc, 4883);
    sendFrame164(4882);
    NpcDialogueSend = true;
    }
    Reply With Quote  
     

  5. #5  
    Registered Member kiwikillu's Avatar
    Join Date
    Jul 2009
    Posts
    55
    Thanks given
    0
    Thanks received
    0
    Rep Power
    6
    but what about going to choices then more text?
    Forum links in pictures aren't allowed.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Dec 2009
    Posts
    833
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    public void choice5(String text, String text2, String text3, String text4, String text5){
    changeText126("Select an Option", 2493);
    changeText126(text, 2494);
    changeText126(text2, 2495);
    changeText126(text3, 2496);
    changeText126(text4, 2497);
    changeText126(text5, 2498);
    sendFrame164(2492);
    }
    public void choice(String text, String text2){
    changeText126("Select an Option", 2460);
    changeText126(text, 2461);
    changeText126(text2, 2462);
    sendFrame164(2459);
    }

    use those for choices:

    and this is example of how it should look:
    case 117:
    choice("Yes.", "No.");
    break;

    case 2537:
    choice5("I want 20 defence please.","I want 40 defence please.","I want 45 defence please.","I want 70 defence please.","I want 75 defence please.");
    break;
    Reply With Quote  
     

  7. #7  
    Registered Member kiwikillu's Avatar
    Join Date
    Jul 2009
    Posts
    55
    Thanks given
    0
    Thanks received
    0
    Rep Power
    6
    how do i amke that go to some more text?
    Forum links in pictures aren't allowed.
    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
  •