Thread: [PI] Making Dialogues

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI] Making Dialogues 
    Registered Member
    Join Date
    Aug 2010
    Posts
    34
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Well, I'm trying to create a Dialogue with an NPC wich will teleport me too the chosen option, but it just keeps failing ;s
    Help me please, NPC is party pete (ID = 659)

    thanks,
    D.
    Reply With Quote  
     

  2. #2  
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    I made that like a month ago

    Here's my party pete tele.

    Code:
    case 20:
    			sendNpcChat4("Would you like to teleport to the", "house of the minigame managers??", "All minigames are started there", "through the respective managers!",
    			c.talkingNpc, "Party Pete");
    			c.nextChat = 21;
    		break;
    		case 21:
    			sendOption2("Yes", "No");
    			c.dialogueAction = 13;
    			c.dialogueId = 21;
    			c.teleAction = -1;
    	        break;
    The teleporting part goes in ClickingButtons.java
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2008
    Posts
    423
    Thanks given
    19
    Thanks received
    9
    Rep Power
    49
    Give use the clickingmost code please.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2010
    Posts
    34
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by ShadowGhost View Post
    I made that like a month ago

    Here's my party pete tele.

    Code:
    case 20:
    			sendNpcChat4("Would you like to teleport to the", "house of the minigame managers??", "All minigames are started there", "through the respective managers!",
    			c.talkingNpc, "Party Pete");
    			c.nextChat = 21;
    		break;
    		case 21:
    			sendOption2("Yes", "No");
    			c.dialogueAction = 13;
    			c.dialogueId = 21;
    			c.teleAction = -1;
    	        break;
    The teleporting part goes in ClickingButtons.java
    Is there only one option available, because I want it like this:
    If you click 'Smithing Area' that he teleports you too the smithing area. and I don't know how to do that
    Reply With Quote  
     

  5. #5  
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    1 option? You only want 1?

    change sendOption2("Yes", "No");
    to
    Code:
    sendOption2("Smithing Area", "");
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Aug 2010
    Posts
    34
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Code:
    src\server\model\players\DialogueHandler.java:94: sendNpcChat4(java.lang.String,
    java.lang.String,java.lang.String,java.lang.String,int,java.lang.String) in serv
    er.model.players.DialogueHandler cannot be applied to (java.lang.String,java.lan
    g.String,java.lang.String,int,java.lang.String)
                            sendNpcChat4("Would you like to teleport to the", "shopp
    ing centre?", "You can buy all your stuff there.", c.talkingNpc, "Party Pete");
                            ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Druk op een toets om door te gaan. . .
    I keep getting this... ;s + Where do I add the teleport?
    Reply With Quote  
     

  7. #7  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Quote Originally Posted by Apocalypto View Post
    Code:
    src\server\model\players\DialogueHandler.java:94: sendNpcChat4(java.lang.String,
    java.lang.String,java.lang.String,java.lang.String,int,java.lang.String) in serv
    er.model.players.DialogueHandler cannot be applied to (java.lang.String,java.lan
    g.String,java.lang.String,int,java.lang.String)
                            sendNpcChat4("Would you like to teleport to the", "shopp
    ing centre?", "You can buy all your stuff there.", c.talkingNpc, "Party Pete");
                            ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Druk op een toets om door te gaan. . .
    I keep getting this... ;s + Where do I add the teleport?
    sendNpcChat4("Would you like to teleport to the", "shopp
    ing centre?", "You can buy all your stuff there.", "", c.talkingNpc, "Party Pete");

    gotta have 4 chats if ur sending 4
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jul 2009
    Posts
    3,999
    Thanks given
    1,003
    Thanks received
    1,028
    Rep Power
    0
    this is basic Knowlege lol.
    Reply With Quote  
     

  9. #9  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Quote Originally Posted by Apocalypto View Post
    Well, I'm trying to create a Dialogue with an NPC wich will teleport me too the chosen option, but it just keeps failing ;s
    Help me please, NPC is party pete (ID = 659)

    thanks,
    D.
    Code:
    case 9157://barrows tele to tunnels
    				if(c.dialogueAction == 1) {
    					int r = 4;
    					//int r = Misc.random(3);
    					switch(r) {
    						case 0:
    							c.getPA().movePlayer(3534, 9677, 0);
    							break;
    						
    						case 1:
    							c.getPA().movePlayer(3534, 9712, 0);
    							break;
    						
    						case 2:
    							c.getPA().movePlayer(3568, 9712, 0);
    							break;
    						
    						case 3:
    							c.getPA().movePlayer(3568, 9677, 0);
    							break;
    						case 4:
    							c.getPA().movePlayer(3551, 9694, 0);
    							break;
    					}
    				} else if (c.dialogueAction == 2) {
    					c.getPA().movePlayer(2507, 4717, 0);		
    				} else if (c.dialogueAction == 5) {
    					c.getSlayer().giveTask();
    				} else if (c.dialogueAction == 6) {
    					c.getSlayer().giveTask2();
                                    } else if (c.dialogueAction == #) {
                                            c.getPA().startTeleport(#, #, #, "modern");
    				} else if (c.dialogueAction == 7) {
    					c.getPA().startTeleport(3088,3933,0,"modern");
    					c.sendMessage("NOTE: You are now in the wilderness...");
    				} else if (c.dialogueAction == 8) {
    					c.getPA().resetBarrows();
    					c.sendMessage("Your barrows have been reset.");
    				}
    				c.dialogueAction = 0;
    				c.getPA().removeAllWindows();
    				break;
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2008
    Posts
    423
    Thanks given
    19
    Thanks received
    9
    Rep Power
    49
    What would be the dialogueaction number then?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •