Thread: Cannot proceed until you've spoken to an npc. [Help]

Results 1 to 7 of 7
  1. #1 Cannot proceed until you've spoken to an npc. [Help] 
    Registered Member
    Join Date
    Aug 2012
    Posts
    40
    Thanks given
    1
    Thanks received
    0
    Rep Power
    53
    I'd like to make it so that you cannot continue down a staircase until dialogue has been completed with an npc. For instance, you spawn in a room upstairs with a butler and a staircase. You cannot go down the staircase until you've spoken to the butler.

    How can I make that possible?

    Also, I'd like to add after that: You cannot speak to one NPC until you've spoken to another.

    For instance, man 1 and man 2 are in a room. If you speak to man 2, he tells you that you had better speak to man 1 first. After you speak to man 1, you may now speak to man 2.

    Any help please?
    Reply With Quote  
     

  2. #2  
    Extreme Donator Market Banned Market Banned



    Join Date
    Dec 2010
    Age
    24
    Posts
    6,071
    Thanks given
    1,691
    Thanks received
    1,234
    Discord
    View profile
    Rep Power
    1704
    public void spokentoNPC() {
    spoketonpc +1;
    }

    if (spoketonpc >= 1) {
    proceed here

    if (spoketonpc <= 0) {
    c.sendMessage("You may not proceed.");
    return;


    It's very simple mate.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2012
    Posts
    40
    Thanks given
    1
    Thanks received
    0
    Rep Power
    53
    Quote Originally Posted by Kharazi View Post
    public void spokentoNPC() {
    spoketonpc +1;
    }

    if (spoketonpc >= 1) {
    proceed here

    if (spoketonpc <= 0) {
    c.sendMessage("You may not proceed.");
    return;
    And I would just put this in the "staircase.java" or "man1.java" in server\src\com\rs\game\player\dialogues?
    Reply With Quote  
     

  4. #4  
    Extreme Donator Market Banned Market Banned



    Join Date
    Dec 2010
    Age
    24
    Posts
    6,071
    Thanks given
    1,691
    Thanks received
    1,234
    Discord
    View profile
    Rep Power
    1704
    I only gave you an idea of what it would look like, don't use that or your a true leecher.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2012
    Posts
    40
    Thanks given
    1
    Thanks received
    0
    Rep Power
    53
    I'm no expert with 667s. =\ I appreciate what you've given me, but could you please elaborate just a little bit more?
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Aug 2012
    Age
    26
    Posts
    125
    Thanks given
    6
    Thanks received
    19
    Rep Power
    0
    Quote Originally Posted by Push View Post
    And I would just put this in the "staircase.java" or "man1.java" in server\src\com\rs\game\player\dialogues?
    Your asking where to put it, Figure out what dialogue you want before you add it or just add it in Player.java.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2012
    Posts
    40
    Thanks given
    1
    Thanks received
    0
    Rep Power
    53
    I've got all the dialogues finished, I just don't know exactly what to do with this, and exactly how to write it.
    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

Similar Threads

  1. Spoken Dialogue - RezoScape 718
    By RezoScape in forum Show-off
    Replies: 15
    Last Post: 05-28-2012, 12:20 AM
  2. Replies: 8
    Last Post: 05-07-2010, 03:28 AM
  3. Replies: 0
    Last Post: 05-05-2010, 04:21 AM
  4. The chocolate has spoken.
    By Sir John in forum Usernames
    Replies: 1
    Last Post: 01-28-2009, 10:03 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •