Thread: Teleporting Npc clicking won't teleport?

Results 1 to 4 of 4
  1. #1 Teleporting Npc clicking won't teleport? 
    Banned

    Join Date
    Aug 2012
    Posts
    2,963
    Thanks given
    1,197
    Thanks received
    643
    Rep Power
    0
    Alright so here's my codes, my first one is fully functional, I don't know why my second one won't work, it's a random area I found and I'm going to put Corp beast at and I click the 2nd option which is "Corporeal Beast", and it doesn't go there, the first option works and takes me to where I wanted it to. Is there anything wrong with my codes?

    Code:
                                  } else if (c.dialogueAction == 10) {
    				c.getPA().spellTeleport(3335, 3023, 0);
    				} else if (c.dialogueAction == 10) {
    				c.getPA().spellTeleport(2825, 3282, 0);
    				} else if (c.dialogueAction == 10) {
    				c.getPA().spellTeleport(2151, 5100, 0);
    				} else if (c.getPA().dialogueAction(8)) {
    				c.getPA().spellTeleport(2585, 4573, 0);
    				} else if (c.getPA().dialogueAction(8)) {
    				c.getPA().spellTeleport(2862, 3726, 0);
    				} else if (c.getPA().dialogueAction(8)) {
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Aug 2012
    Posts
    2,963
    Thanks given
    1,197
    Thanks received
    643
    Rep Power
    0
    Edited code..
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Aug 2012
    Posts
    2,963
    Thanks given
    1,197
    Thanks received
    643
    Rep Power
    0
    Updated code again, how do I make it so the functions work in the dialogue? The first line works, the last 4 don't?
    Reply With Quote  
     

  4. #4  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    519
    Thanks given
    21
    Thanks received
    7
    Rep Power
    59
    :\... why have it in dialoguehandler.java??

    U can just put it into actionhandler.java, and if you want it to have options, u gotta insert options into dialoguehandler, and then code the options to teleport you in clickingbuttons.java.
    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. How Do i make a Teleporting NPC? [REP+]
    By S M I T E D in forum Help
    Replies: 0
    Last Post: 07-20-2010, 09:47 PM
  2. When i teleport npcs don't reload?
    By travisman26 in forum Help
    Replies: 0
    Last Post: 07-16-2010, 12:04 AM
  3. teleporting NPC's
    By Eternal Darknes in forum Help
    Replies: 2
    Last Post: 06-21-2010, 11:57 AM
  4. Replies: 11
    Last Post: 02-16-2009, 12:25 PM
  5. How do i make npc's so they teleport me
    By xvfy in forum Tutorials
    Replies: 5
    Last Post: 04-15-2008, 05:12 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
  •