Thread: Errors when i compile, tried to make an npc that teleports you! please help!

Results 1 to 8 of 8
  1. #1 Errors when i compile, tried to make an npc that teleports you! please help! 
    Registered Member Blood_Barrage's Avatar
    Join Date
    Jul 2013
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11



    idk what this error is, no idea what so ever.
    Reply With Quote  
     

  2. #2  
    Registered Member walid's Avatar
    Join Date
    Nov 2008
    Posts
    379
    Thanks given
    6
    Thanks received
    8
    Rep Power
    3
    Please post the code where the error is. (should give the error line on the compiler) Also can't see any image that you linked
    Reply With Quote  
     

  3. #3  
    Registered Member Blood_Barrage's Avatar
    Join Date
    Jul 2013
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by walid View Post
    Please post the code where the error is. (should give the error line on the compiler) Also can't see any image that you linked


    i added the image!
    Reply With Quote  
     

  4. #4  
    Registered Member walid's Avatar
    Join Date
    Nov 2008
    Posts
    379
    Thanks given
    6
    Thanks received
    8
    Rep Power
    3
    Alright, can you post that bit of code/method here?
    Reply With Quote  
     

  5. #5  
    Registered Member Blood_Barrage's Avatar
    Join Date
    Jul 2013
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by walid View Post
    Alright, can you post that bit of code/method here?

    @Override
    public void run(int interfaceId, int componentId) {
    if (stage == 0) {
    stage = 0;
    sendDialogue(SEND_2_OPTIONS,
    "Do you want me to teleport you to Mithril Dragons?");
    "Yes please"; "Stay here";
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2012
    Posts
    357
    Thanks given
    16
    Thanks received
    29
    Rep Power
    31
    Replace ;'s with ,'s....
    Reply With Quote  
     

  7. #7  
    squared

    Join Date
    Jun 2013
    Posts
    355
    Thanks given
    38
    Thanks received
    27
    Rep Power
    30
    I'm pretty sure they need to be brackets?

    "Do you want me to teleport you to Mithril Dragons?");
    ("Yes please"); ("Stay here");[/code]

    See whether this code works. The red is where you went wrong, and the green is what you need to add. You need to keep the red bracket also.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jun 2012
    Posts
    357
    Thanks given
    16
    Thanks received
    29
    Rep Power
    31
    sendDialogue(SEND_2_OPTIONS,
    "Do you want me to teleport you to Mithril Dragons?");
    "Yes please"; "Stay here";


    Replace with

    Code:
                        sendDialogue(SEND_2_TEXT_INFO, "Would you like to be teleported to Mithril Dragons?");
            }
    
            @Override
            public void run(int interfaceId, int componentId) {
                    if (stage == 1) {
                            sendEntityDialogue(SEND_2_TEXT_CHAT,
                                            new String[] { player.getDisplayName(), "Yes", "No"},
                                            IS_PLAYER, player.getIndex(), 9827);
    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. Trying to make an NPC eat and heal.
    By Wtf Rofl in forum Help
    Replies: 10
    Last Post: 11-18-2012, 05:14 AM
  2. Replies: 97
    Last Post: 10-11-2009, 08:21 PM
  3. How To Make An NPC Dialogue
    By Vegeta in forum Tutorials
    Replies: 11
    Last Post: 01-15-2009, 10:45 PM
  4. How To Make An Npc Hit!
    By paintballe99 in forum Tutorials
    Replies: 17
    Last Post: 10-29-2007, 08:50 AM
  5. Replies: 17
    Last Post: 05-21-2007, 10:50 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
  •