Thread: [Matrix] Making doors open.

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [Matrix] Making doors open. 
    Registered Member
    Join Date
    Oct 2012
    Posts
    66
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Well since i'm new to coding and there isn't a tutorial on this I thought I might make one to help the noobs

    -First off you need the door name. Eg large door, Blacksmith door, Magic guild door.

    Open up objecthandler.java

    Search for
    case "large door":
    And under that add this
    case "NAME OF DOOR":
    -Compile

    Yes this is simple, but a lot of people don't know how to do this.
    If this is wrong section or too simple then please close it just trying to contribute.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2010
    Posts
    1,827
    Thanks given
    18
    Thanks received
    76
    Rep Power
    97
    Was looking for this, thanks
    Since 2010
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Aug 2012
    Age
    29
    Posts
    37
    Thanks given
    4
    Thanks received
    1
    Rep Power
    0
    lmao.
    Reply With Quote  
     

  4. #4  
    Father Of Lies


    Join Date
    May 2012
    Age
    26
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    Pretty sure you can't just use the switch case to switch strings.
    First, you'd declare this:
    Public int
    MAGIC_GUILD_DOOR = doorid;

    Then the case could be:
    case MAGIC_GUILD_DOOR:
    Reply With Quote  
     

  5. #5  
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    603
    Thanks given
    5
    Thanks received
    20
    Rep Power
    10
    Thanks man I needed this
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Dec 2011
    Age
    28
    Posts
    1,323
    Thanks given
    146
    Thanks received
    151
    Rep Power
    0
    Would this work for a Gate? Because my gate opens but it opens very oddly. It opens with the two sides of the door in the middle pointing out. Instead of how a gate should be opened. (double sided gate like varrock gates)
    Reply With Quote  
     

  7. #7  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    1,711
    Thanks given
    109
    Thanks received
    360
    Rep Power
    66
    Quote Originally Posted by Pepsies View Post
    Would this work for a Gate? Because my gate opens but it opens very oddly. It opens with the two sides of the door in the middle pointing out. Instead of how a gate should be opened. (double sided gate like varrock gates)
    I don't think it does.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Dec 2011
    Age
    28
    Posts
    1,323
    Thanks given
    146
    Thanks received
    151
    Rep Power
    0
    Quote Originally Posted by bandoswhips View Post
    I don't think it does.
    I need something to help me open gates correctly.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Feb 2009
    Posts
    56
    Thanks given
    21
    Thanks received
    5
    Rep Power
    54
    Quote Originally Posted by jakeyy View Post
    Pretty sure you can't just use the switch case to switch strings.
    First, you'd declare this:
    Public int
    MAGIC_GUILD_DOOR = doorid;

    Then the case could be:
    case MAGIC_GUILD_DOOR:
    The switch OP is talking about: switch (objectDef.name.toLowerCase())
    Java 7 supports switch(string).

    (Little gravedigging, wanted to clarify this)
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jul 2010
    Posts
    122
    Thanks given
    9
    Thanks received
    5
    Rep Power
    1
    what if the doors already called large door?
    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

Similar Threads

  1. Replies: 3
    Last Post: 09-05-2011, 07:00 AM
  2. [PI] Removing Doors Or Making Them Open
    By ItsGoml in forum Help
    Replies: 1
    Last Post: 06-30-2011, 07:15 PM
  3. Replies: 1
    Last Post: 06-28-2010, 03:38 AM
  4. Replies: 1
    Last Post: 06-24-2010, 04:22 AM
  5. [508] Making Doors Open
    By balonick in forum Tutorials
    Replies: 39
    Last Post: 06-02-2009, 02:50 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
  •