Thread: Need Help with Teleports

Results 1 to 8 of 8
  1. #1 Need Help with Teleports 
    Registered Member
    Join Date
    Dec 2012
    Posts
    38
    Thanks given
    0
    Thanks received
    0
    Rep Power
    17
    Hey im trying to make multiple teleports for my PvP Server and im fairly certain i put everything in correctly and asigned it to the right dialogue but it keeps opening the PvP Shop please tell me if there is anything wrong with it i'd highly appreciate it

    Dialogue
    Code:
    case 696:
    		c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East");
    		c.teleAction = 1;
    		break;
    Teleport
    Code:
    case 9158:
    				if(c.getPA().dialogueAction(696)) {
    					c.getPA().startTeleport(2617, 3334, 0, "modern");
    				}
    				if(c.getPA().dialogueAction(0)) {
    					c.getShops().openShop(4);
    				}
    				if (c.getPA().dialogueAction(276)) {
    					c.getPA().removeAllWindows();
    				}
    				else {
    				c.dialogueAction = 0;
    				c.getPA().removeAllWindows();
    				} if (c.dialogueAction == 1327) {
    				c.getDungeoneering().leaveDung(c);
    				}
    				break;
    Quote Originally Posted by Aceypoo
    WHOREEEE
    Reply With Quote  
     

  2. #2  
    Registered Member
    Markian's Avatar
    Join Date
    Apr 2009
    Posts
    613
    Thanks given
    17
    Thanks received
    26
    Rep Power
    373
    Remove this statement:

    Code:
    				if(c.getPA().dialogueAction(0)) {
    					c.getShops().openShop(4);
    				}
    Reply With Quote  
     

  3. #3  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    28
    Posts
    1,318
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    You realize you also have 2 teleport options but only one teleport location?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by Visuall View Post
    You realize you also have 2 teleport options but only one teleport location?
    9158 is the 2nd option/button in a sendoption2 statement so that teleport is for his ardougne southeast.

    try making this

    Code:
    case 696:
    		c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East");
    		c.teleAction = 1;
    		break;
    this

    Code:
    case 696:
    		c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East");
    		c.dialogueAction = 696;
    		c.teleAction = -1;
    		break;
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2012
    Posts
    38
    Thanks given
    0
    Thanks received
    0
    Rep Power
    17
    @Visuall you do realize im just showing one of the teleports right
    Quote Originally Posted by Aceypoo
    WHOREEEE
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2012
    Posts
    38
    Thanks given
    0
    Thanks received
    0
    Rep Power
    17
    Quote Originally Posted by Karma_K View Post
    9158 is the 2nd option/button in a sendoption2 statement so that teleport is for his ardougne southeast.

    try making this

    Code:
    case 696:
    		c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East");
    		c.teleAction = 1;
    		break;
    this

    Code:
    case 696:
    		c.getDH().sendOption2("Ardounge North-West", "Ardounge South-East");
    		c.dialogueAction = 696;
    		c.teleAction = -1;
    		break;
    it still opens the shop m8
    Quote Originally Posted by Aceypoo
    WHOREEEE
    Reply With Quote  
     

  7. #7  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Then you'll have to add a break; somewhere between
    Reply With Quote  
     

  8. #8  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    28
    Posts
    1,318
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    My bad, I didn't recognize the case number.

    OT: Just to clarify, it when you click on the teleport option it opens the shop, or when you click on the NPC?
    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. Need help with teleports
    By Hells Harmony in forum Help
    Replies: 0
    Last Post: 03-25-2012, 06:04 PM
  2. Need Help with teleport glitch.
    By ItsDanny in forum Help
    Replies: 3
    Last Post: 06-09-2011, 11:36 PM
  3. Need help with teleports! [DELTA]
    By rocky2k10 in forum Help
    Replies: 1
    Last Post: 02-18-2011, 10:56 AM
  4. Need help with teleports on Devolution 2.4
    By jordan641 in forum Help
    Replies: 1
    Last Post: 04-09-2010, 02:15 AM
  5. Need help with teleportation glitch
    By stone warior in forum Help
    Replies: 6
    Last Post: 04-01-2009, 01:15 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
  •