Thread: Npc Dialogue 718

Results 1 to 3 of 3
  1. #1 Npc Dialogue 718 
    Registered Member
    Join Date
    Feb 2012
    Posts
    65
    Thanks given
    4
    Thanks received
    6
    Rep Power
    11
    Alright, so i want an npc to have a dialogue but
    i want to have the npc only say the dialogue when on a certain spot.

    if (npc.getId() == CUSTOMNPC)
    player.getDialogueManager().startDialogue("DIALOGU E", npc.getId());

    so i have that but how would i make it only work on a certain spot so that i can have the same npc multiple times but only one would say a dialogue

    i saw this in my objecthandler:

    } else if (id == 37928 && object.getX() == 2883
    && object.getY() == 4370 && object.getPlane() == 0) {

    but i cant seem to figure out how to do that same for an npc?

    any ideas?
    thanks - Daemon504

    ---------------------------------
    update: i found it out

    for anyone that wants to know

    if (npc.getId() == NPCID && npc.getX() == 1111
    && npc.getY() == 1111 && npc.getPlane() == 0)
    player.getDialogueManager().startDialogue("DIALOGU E",
    npc.getId());

    Last edited by daemon504; 06-29-2015 at 06:30 PM. Reason: Found Out
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    Quote Originally Posted by daemon504 View Post
    Alright, so i want an npc to have a dialogue but
    i want to have the npc only say the dialogue when on a certain spot.

    if (npc.getId() == CUSTOMNPC)
    player.getDialogueManager().startDialogue("DIALOGU E", npc.getId());

    so i have that but how would i make it only work on a certain spot so that i can have the same npc multiple times but only one would say a dialogue

    i saw this in my objecthandler:

    } else if (id == 37928 && object.getX() == 2883
    && object.getY() == 4370 && object.getPlane() == 0) {

    but i cant seem to figure out how to do that same for an npc?

    any ideas?
    thanks - Daemon504
    You should probably reword that whole OP. It's unreadable and makes no logical sense as to what you're wanting help on. I'll help, but you need to clarify better what you're trying to get help on.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2012
    Posts
    65
    Thanks given
    4
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by lilquickguy View Post
    You should probably reword that whole OP. It's unreadable and makes no logical sense as to what you're wanting help on. I'll help, but you need to clarify better what you're trying to get help on.
    yeah that was worded terribly but i found it out 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

Similar Threads

  1. [718] NPC Dialogue Expressions
    By Arham in forum Configuration
    Replies: 21
    Last Post: 06-17-2015, 08:01 PM
  2. [718] NPC Dialogues
    By DJAlup in forum Snippets
    Replies: 10
    Last Post: 02-13-2015, 03:40 PM
  3. [718] NPC Dialogue Face's
    By Equity in forum Help
    Replies: 3
    Last Post: 09-03-2014, 06:43 PM
  4. 718 NPC Dialogue Options Close Dialogue
    By Bernie Sanders in forum Help
    Replies: 0
    Last Post: 07-16-2014, 08:13 AM
  5. Npc Actions through Dialogue? [718]
    By TheMike in forum Help
    Replies: 3
    Last Post: 04-13-2014, 08:52 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
  •