Thread: Adding Npc Teleports

Results 1 to 6 of 6
  1. #1 Adding Npc Teleports 
    Registered Member
    Join Date
    Jun 2010
    Posts
    296
    Thanks given
    2
    Thanks received
    2
    Rep Power
    37
    Basically tried to add them myself but got confused when it came to clickingbuttons how to declare each one.

    This was my attempt.

    Code:
    case 42:
    			sendOption4("Edgeville Pking", "Bork", "Nomad", "Tormented Demons");
    			c.dialogueAction = 21;
    			break;
    Code:
    case 943:
    				c.getDH().sendDialogues(42, npcType);                         
    		    break;
    then when it comes to clicking buttons im just all like o.o i was thinking if it would be possible to do each option individually and maybe do this.


    Code:
    case ***:
    if (c.getPA().dialogueAction(21)) {
    					c.getPA().movePlayer(2670, 3712, 0);
    				} else if (c.getPA().dialogueAction(22)) {
    					c.getPA().movePlayer(3369, 3268, 0);
    				} else if (c.getPA().dialogueAction(23)) {
    					c.getPA().movePlayer(3369, 3268, 0);
    				}
                                    break;
    				}
    but that failed.
    could someone maybe walk me through this part.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    Click the dialogue, check the actionbutton id in the cmd and bobs your uncle.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Posts
    296
    Thanks given
    2
    Thanks received
    2
    Rep Power
    37
    so i can set a case for each action button?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    Yes, for each actionbutton id you would set a case
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2010
    Posts
    296
    Thanks given
    2
    Thanks received
    2
    Rep Power
    37
    nothing comes up in the run.bat only thing that is displayed is in the top left corner of the client.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2010
    Posts
    296
    Thanks given
    2
    Thanks received
    2
    Rep Power
    37
    like i tried this for the numbers being displayed.

    Code:
    case 2482://teleport npc
                                    if (c.getPA().dialogueAction(21)) {
    					c.getPA().movePlayer(3555, 9943, 0);
                                    }
                                    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. Adding teleports [pi]
    By Mickt3 in forum Help
    Replies: 12
    Last Post: 04-24-2011, 02:49 AM
  2. [pi] adding more button on teleports
    By Monster in forum Help
    Replies: 0
    Last Post: 11-17-2010, 12:14 PM
  3. [Help] Adding Teleports - Rep++
    By Razulo in forum Help
    Replies: 5
    Last Post: 07-06-2010, 06:13 PM
  4. Adding Objects + teleports
    By fazed in forum Help
    Replies: 8
    Last Post: 07-04-2009, 07:44 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
  •