Thread: [PI] clicking npc opens interface [help]

Results 1 to 10 of 10
  1. #1 [PI] clicking npc opens interface [help] 
    Registered Member 1defk0's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    225
    Thanks given
    5
    Thanks received
    3
    Rep Power
    0
    hello,

    i wanna make when you talk to an npc it opens an interface after you clicked "continue" in the dialogue.

    does anyone has an idea, thnx
    Reply With Quote  
     

  2. #2  
    Registered Member Comets's Avatar
    Join Date
    Jan 2011
    Posts
    287
    Thanks given
    67
    Thanks received
    30
    Rep Power
    0
    Pretty lengthy code. I'm quite positive noone feels like sitting here and explaining it to you, but you can read up on a Dialogue tutorial. It should help you about 90% of the way, the rest is self explanatory.

    Hold on and i'll try and find it for you.
    Reply With Quote  
     

  3. #3  
    Registered Member 1defk0's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    225
    Thanks given
    5
    Thanks received
    3
    Rep Power
    0
    bump
    Reply With Quote  
     

  4. #4  
    Respected Member

    Situations's Avatar
    Join Date
    Sep 2008
    Posts
    3,903
    Thanks given
    230
    Thanks received
    1,695
    Rep Power
    5000
    Dialogue.java & ClickingButtons.java, I suggest looking at their and learn how to do it. You're not going to learn anything if I give you a copy & pate tutorial.
    Reply With Quote  
     

  5. #5  
    Registered Member 1defk0's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    225
    Thanks given
    5
    Thanks received
    3
    Rep Power
    0
    when i click continue it doesn`t say what case it is
    Reply With Quote  
     

  6. #6  
    Registered Member 1defk0's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    225
    Thanks given
    5
    Thanks received
    3
    Rep Power
    0
    tryd everything wont open interface when click continue
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    hmmm not sure if this would work,havent tested it yet, but try this

    case 111:
    //stuff here
    c.nextChat = 112;
    break;

    case 112:
    //add your showing interface method here
    break;
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Quote Originally Posted by Situations View Post
    Dialogue.java & ClickingButtons.java, I suggest looking at their and learn how to do it. You're not going to learn anything if I give you a copy & pate tutorial.
    you would only have to edit clickingbuttons if you do sendOption but hes saying when you click "click here to continue"
    Reply With Quote  
     

  10. #9  
    Registered Member 1defk0's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    225
    Thanks given
    5
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by relex lawl View Post
    hmmm not sure if this would work,havent tested it yet, but try this

    case 111:
    //stuff here
    c.nextChat = 112;
    break;

    case 112:
    //add your showing interface method here
    break;
    Working, what a shame for me i couldn`t realise this tnank you mate
    Reply With Quote  
     

  11. #10  
    - Mark Lore -
    Join Date
    Jun 2010
    Posts
    304
    Thanks given
    19
    Thanks received
    16
    Rep Power
    28
    Actionhandler look for switch(npcType)

    Then add case NPCID:
    c.getPA().showInterface(INTERFACEID);
    break;
    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. interface opens in screen
    By kopjekoffiee in forum Help
    Replies: 2
    Last Post: 12-22-2010, 12:10 AM
  2. Help on interface clicking
    By myK- in forum Help
    Replies: 3
    Last Post: 11-16-2010, 02:05 PM
  3. Interface clicking help
    By Groovy in forum Help
    Replies: 0
    Last Post: 05-22-2010, 09:39 PM
  4. Replies: 1
    Last Post: 10-21-2009, 09:19 PM
  5. Replies: 0
    Last Post: 05-03-2009, 09:07 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •