Thread: Portals

Results 1 to 5 of 5
  1. #1 Portals 
    Donator

    Sir Lethal's Avatar
    Join Date
    Mar 2008
    Posts
    2,286
    Thanks given
    9
    Thanks received
    74
    Rep Power
    426
    I know how to make a portal and how to make it teleport to places but how could I make it teleport to multiple places?

    Yes,I am using situations pk base (Based off Delta)
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2006
    Posts
    299
    Thanks given
    1
    Thanks received
    8
    Rep Power
    77
    Do you mean You click the portal and you can choose from either place A,B,C?
    Reply With Quote  
     

  3. #3  
    Donator

    Sir Lethal's Avatar
    Join Date
    Mar 2008
    Posts
    2,286
    Thanks given
    9
    Thanks received
    74
    Rep Power
    426
    Quote Originally Posted by Minx View Post
    Do you mean You click the portal and you can choose from either place A,B,C?
    Yes,thats what I'm talking about.
    Reply With Quote  
     

  4. #4  
    Donator

    Sir Lethal's Avatar
    Join Date
    Mar 2008
    Posts
    2,286
    Thanks given
    9
    Thanks received
    74
    Rep Power
    426
    Well,does anyone know how to add this?

    Or when you talk to a npc it offers different places you can teleport to?
    Reply With Quote  
     

  5. #5  
    Registered Member Stapler's Avatar
    Join Date
    Jul 2009
    Posts
    250
    Thanks given
    4
    Thanks received
    1
    Rep Power
    18
    I do, here it is

    Open ClickingMost.java
    add this:
    Code:
    if(c.NpcDialogue == ###){
    				c.teleEffect = 1;
    				c.sendQuest("Where do you wish to go?", 2470);
    				c.sendQuest("Falador", 2471);
    				c.sendQuest("Varrock", 2472);
    				c.sendQuest("No where", 2473);
                                    c.sendFrame164(2469);
    NpcDialogue == ### - The Npc dialogue you want the multi opitions to come on.
    Then

    Under case 9167 add this:
    Code:
    if (c.teleEffect == 3)
    				c.triggerTele(YOURTELEPORTCORDx + Misc.random(2), YOURTELEPORTCORDSY + Misc.random(2), 0);
    Under case 9168 add this:
    Code:
    if (c.teleEffect == 3)
    				c.triggerTele(YOURTELEPORTCORDx + Misc.random(2), YOURTELEPORTCORDSY + Misc.random(2), 0);
    Under case 9169 add this:
    if (c.teleEffect == 3)
    c.closeInterface()
    Ok the case's are the Button Ids, and the TeleEffect are what makes the button tele you, if your last teleEffect was 2, You would add under it teleeffect 3.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •